~ubuntu-branches/debian/sid/bugzilla/sid

« back to all changes in this revision

Viewing changes to template/en/default/account/prefs/permissions.html.tmpl

  • Committer: Bazaar Package Importer
  • Author(s): Raphael Bossek
  • Date: 2008-06-27 22:34:34 UTC
  • mfrom: (1.1.7 upstream)
  • Revision ID: james.westby@ubuntu.com-20080627223434-0ib57vstn43bb4a3
Tags: 3.0.4.1-1
* Update of French, Russian and German translations. (closes: #488251)
* Added Bulgarian and Belarusian translations.

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): Gervase Markham <gerv@gerv.net>
20
 
  #%]
21
 
 
22
 
[%# INTERFACE:
23
 
  # has_bits: array of hashes. May be empty.
24
 
  #           name => Names of the permissions the user has.
25
 
  #           desc => Descriptions of the permissions the user has.
26
 
  # set_bits: array of hashes. May be empty.
27
 
  #           name => Names of the permissions the user can set for
28
 
  #           other people.
29
 
  #           desc => Descriptions of the permissions the user can set for
30
 
  #           other people.
31
 
  #%]
32
 
 
33
 
[% PROCESS global/variables.none.tmpl %]
34
 
 
35
 
<table align="center">
36
 
  <tr>
37
 
    <td>
38
 
      [% IF has_bits.size %]
39
 
        You have the following permission [% terms.bits %] set on your account:
40
 
        <table align="center">
41
 
          [% FOREACH bit_description = has_bits %]
42
 
            <tr>
43
 
              <td>[% bit_description.name FILTER html %]</td>
44
 
              <td>[% bit_description.desc FILTER html_light %]</td>
45
 
            </tr>
46
 
          [% END %]
47
 
        </table>
48
 
 
49
 
        [% FOREACH privs = ["editcomponents", "canconfirm", "editbugs"] %]
50
 
          [% SET products = ${"local_$privs"} %]
51
 
          [% IF products && products.size %]
52
 
            <br>
53
 
            <p>
54
 
              You also have local '[% privs FILTER html %]' privileges
55
 
              for the following products:
56
 
            </p>
57
 
            <p>
58
 
              [% FOREACH product = products %]
59
 
                [% product.name FILTER html %]<br>
60
 
              [% END %]
61
 
            </p>
62
 
          [% END %]
63
 
        [% END %]
64
 
 
65
 
      [% ELSE %]
66
 
        There are no permission [% terms.bits %] set on your account.
67
 
      [% END %]
68
 
 
69
 
      [% IF user.groups.editusers %]
70
 
        <br>
71
 
        You have editusers privileges.  You can turn on and off
72
 
        all permissions for all users.
73
 
      [% ELSIF set_bits.size %]
74
 
        <br>
75
 
        And you can turn on or off the following [% terms.bits %] for
76
 
        <a href="editusers.cgi">other users</a>:
77
 
          <table align="center">
78
 
          [% FOREACH bit_description = set_bits %]
79
 
            <tr>
80
 
              <td>[% bit_description.name FILTER html %]</td>
81
 
              <td>[% bit_description.desc FILTER html_light %]</td>
82
 
            </tr>
83
 
          [% END %]
84
 
          </table>
85
 
      [% END %]
86
 
 
87
 
      [% IF user.groups.bz_sudoers %]
88
 
        <br>
89
 
        You are a member of the <b>bz_sudoers</b> group, so you can 
90
 
        <a href="relogin.cgi?action=prepare-sudo">impersonate someone else</a>.
91
 
      [% END %]
92
 
    </td>
93
 
  </tr>
94
 
</table>