1
[%# 1.0@bugzilla.org %]
2
[%# The contents of this file are subject to the Mozilla Public
3
# License Version 1.1 (the "License"); you may not use this file
4
# except in compliance with the License. You may obtain a copy of
5
# the License at http://www.mozilla.org/MPL/
7
# Software distributed under the License is distributed on an "AS
8
# IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
9
# implied. See the License for the specific language governing
10
# rights and limitations under the License.
12
# The Original Code is the Bugzilla Bug Tracking System.
14
# The Initial Developer of the Original Code is Netscape Communications
15
# Corporation. Portions created by Netscape are
16
# Copyright (C) 1998 Netscape Communications Corporation. All
19
# Contributor(s): Toms Baugis <toms.baugis@tietoenator.com>
20
# Gervase Markham <gerv@gerv.net>
24
# bug_list: list of integers. List of bug numbers of current query (if any).
25
# bug.bug_id: integer. Number of current bug (for navigation purposes)
28
[% PROCESS global/variables.none.tmpl %]
31
[% cgi = Bugzilla.cgi %]
33
[% IF NOT (cgi.user_agent("MSIE [1-6]") OR cgi.user_agent("Mozilla/4")) %]
34
<link rel="Top" href="[% Param('urlbase') %]">
36
[%# *** Bug List Navigation *** %]
37
[% IF bug && bug_list && bug_list.size > 0 %]
38
<link rel="Up" href="buglist.cgi?regetlastlist=1">
40
[% current_bug_idx = lsearch(bug_list, bug.bug_id) %]
42
[% IF current_bug_idx > 0 %]
43
<link rel="First" href="show_bug.cgi?id=[% bug_list.first %]">
44
[% prev_bug = current_bug_idx - 1 %]
45
<link rel="Prev" href="show_bug.cgi?id=[% bug_list.$prev_bug %]">
48
[% IF current_bug_idx + 1 < bug_list.size %]
49
[% next_bug = current_bug_idx + 1 %]
50
<link rel="Next" href="show_bug.cgi?id=[% bug_list.$next_bug %]">
51
<link rel="Last" href="show_bug.cgi?id=[% bug_list.last %]">
56
[%# *** Dependencies, Votes, Activity, Print-version *** %]
58
<link rel="Show" title="Dependency Tree"
59
href="showdependencytree.cgi?id=[% bug.bug_id %]">
60
<link rel="Show" title="Dependency Graph"
61
href="showdependencygraph.cgi?id=[% bug.bug_id %]">
64
<link rel="Show" title="Votes ([% bug.votes %])"
65
href="votes.cgi?action=show_bug&bug_id=[% bug.bug_id %]">
68
<link rel="Show" title="[% terms.Bug %] Activity"
69
href="show_activity.cgi?id=[% bug.bug_id %]">
70
<link rel="Show" title="Printer-Friendly Version"
71
href="long_list.cgi?buglist=[% bug.bug_id %]">
75
[%# *** Saved Searches *** %]
76
[% IF user.showmybugslink %]
77
[% user_login = user.login FILTER url_quote %]
78
<link rel="Saved Searches" title="My [% terms.Bugs %]"
79
href="[% Param('mybugstemplate').replace('%userid%', user_login) %]">
82
[% FOREACH q = user.queries %]
83
<link rel="Saved Searches"
84
title="[% q.name FILTER html %]"
85
href="buglist.cgi?cmdtype=runnamed&namedcmd=[% q.name FILTER url_quote %]">
88
[%# *** Bugzilla Administration Tools *** %]
90
[% '<link rel="Administration" title="Parameters"
91
href="editparams.cgi">' IF user.groups.tweakparams %]
92
[% '<link rel="Administration" title="Users"
93
href="editusers.cgi">' IF user.groups.editusers %]
94
[% '<link rel="Administration" title="Products"
95
href="editproducts.cgi">' IF user.groups.editcomponents %]
96
[% '<link rel="Administration" title="Flag Types"
97
href="editflagtypes.cgi">' IF user.groups.editcomponents %]
98
[% '<link rel="Administration" title="Groups"
99
href="editgroups.cgi">' IF user.groups.creategroups %]
100
[% '<link rel="Administration" title="Keywords"
101
href="editkeywords.cgi">' IF user.groups.editkeywords %]
102
[% '<link rel="Administration" title="Sanity Check"
103
href="sanitycheck.cgi">' IF user.groups.tweakparams %]