~ubuntu-branches/ubuntu/edgy/bugzilla/edgy

« back to all changes in this revision

Viewing changes to template/en/default/global/site-navigation.html.tmpl

  • Committer: Bazaar Package Importer
  • Author(s): Alexis Sukrieh
  • Date: 2005-10-03 16:51:01 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20051003165101-38n0y5qofd68vole
Tags: 2.18.4-1
* New upstream minor release
  + Fixed a security issue: It was possible to bypass the "user
    visibility groups" restrictions if user-matching was turned on
    in "substring" mode.
  + Fixed a security issue: config.cgi exposed information to users who
    weren't logged in, even when "requirelogin" was turned on in Bugzilla.
  (closes: #331206)

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
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/
 
6
  #
 
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.
 
11
  #
 
12
  # The Original Code is the Bugzilla Bug Tracking System.
 
13
  #
 
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
 
17
  # Rights Reserved.
 
18
  #
 
19
  # Contributor(s): Toms Baugis <toms.baugis@tietoenator.com>
 
20
  #                 Gervase Markham <gerv@gerv.net>
 
21
  #%]
 
22
 
 
23
[%# INTERFACE:
 
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)
 
26
  #%]
 
27
 
 
28
[% PROCESS global/variables.none.tmpl %]
 
29
 
 
30
[% USE Bugzilla %]
 
31
[% cgi = Bugzilla.cgi %]
 
32
 
 
33
[% IF NOT (cgi.user_agent("MSIE [1-6]") OR cgi.user_agent("Mozilla/4")) %]
 
34
  <link rel="Top" href="[% Param('urlbase') %]">
 
35
 
 
36
  [%# *** Bug List Navigation *** %]
 
37
  [% IF bug && bug_list && bug_list.size > 0 %]
 
38
    <link rel="Up" href="buglist.cgi?regetlastlist=1">
 
39
 
 
40
    [% current_bug_idx = lsearch(bug_list, bug.bug_id) %]
 
41
 
 
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 %]">
 
46
    [% END %]
 
47
 
 
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 %]">
 
52
    [% END %]
 
53
  [% END %]
 
54
 
 
55
 
 
56
  [%# *** Dependencies, Votes, Activity, Print-version *** %]
 
57
  [% IF bug %]
 
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 %]">
 
62
 
 
63
    [% IF use_votes %]
 
64
      <link rel="Show" title="Votes ([% bug.votes %])"
 
65
            href="votes.cgi?action=show_bug&amp;bug_id=[% bug.bug_id %]">
 
66
    [% END %]
 
67
 
 
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 %]">
 
72
  [% END %]
 
73
 
 
74
 
 
75
  [%# *** Saved Searches *** %]
 
76
  [% IF user.showmybugslink %]
 
77
    [% user_login = user.login FILTER url_quote %]
 
78
    <link rel="Saved&nbsp;Searches" title="My [% terms.Bugs %]"
 
79
          href="[% Param('mybugstemplate').replace('%userid%', user_login) %]">
 
80
  [% END %]
 
81
 
 
82
  [% FOREACH q = user.queries %]
 
83
    <link rel="Saved&nbsp;Searches" 
 
84
          title="[% q.name FILTER html %]"
 
85
          href="buglist.cgi?cmdtype=runnamed&amp;namedcmd=[% q.name FILTER url_quote %]">
 
86
  [% END %]
 
87
 
 
88
  [%# *** Bugzilla Administration Tools *** %]
 
89
  [% IF user.login %] 
 
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 %]
 
104
  [% END %]  
 
105
[% END %]