/[web]/templates/bugzilla/trunk/account/prefs/permissions.html.tmpl
ViewVC logotype

Contents of /templates/bugzilla/trunk/account/prefs/permissions.html.tmpl

Parent Directory Parent Directory | Revision Log Revision Log


Revision 48 - (show annotations) (download)
Fri Nov 26 14:56:29 2010 UTC (13 years, 4 months ago) by dmorgan
File size: 3215 byte(s)
Add custom template with identity support
1 [%# The contents of this file are subject to the Mozilla Public
2 # License Version 1.1 (the "License"); you may not use this file
3 # except in compliance with the License. You may obtain a copy of
4 # the License at http://www.mozilla.org/MPL/
5 #
6 # Software distributed under the License is distributed on an "AS
7 # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
8 # implied. See the License for the specific language governing
9 # rights and limitations under the License.
10 #
11 # The Original Code is the Bugzilla Bug Tracking System.
12 #
13 # The Initial Developer of the Original Code is Netscape Communications
14 # Corporation. Portions created by Netscape are
15 # Copyright (C) 1998 Netscape Communications Corporation. All
16 # Rights Reserved.
17 #
18 # Contributor(s): Gervase Markham <gerv@gerv.net>
19 #%]
20
21 [%# INTERFACE:
22 # has_bits: array of hashes. May be empty.
23 # name => Names of the permissions the user has.
24 # desc => Descriptions of the permissions the user has.
25 # set_bits: array of hashes. May be empty.
26 # name => Names of the permissions the user can set for
27 # other people.
28 # desc => Descriptions of the permissions the user can set for
29 # other people.
30 #%]
31
32 [% PROCESS global/variables.none.tmpl %]
33
34 <table align="center">
35 <tr>
36 <td>
37 [% IF has_bits.size %]
38 You have the following permission bits set on your account:
39 <table align="center">
40 [% FOREACH bit_description = has_bits %]
41 <tr>
42 <td>[% bit_description.name FILTER html %]</td>
43 <td>[% bit_description.desc FILTER html_light %]</td>
44 </tr>
45 [% END %]
46 </table>
47
48 [% FOREACH privs = ["editcomponents", "canconfirm", "editbugs"] %]
49 [% SET products = ${"local_$privs"} %]
50 [% IF products && products.size %]
51 <br>
52 <p>
53 You also have local '[% privs FILTER html %]' privileges
54 for the following products:
55 </p>
56 <p>
57 [% FOREACH product = products %]
58 [% product.name FILTER html %]<br>
59 [% END %]
60 </p>
61 [% END %]
62 [% END %]
63
64 [% ELSE %]
65 There are no permission bits set on your account.
66 [% END %]
67
68 [% IF user.in_group('editusers') %]
69 <br>
70 You have editusers privileges. You can turn on and off
71 all permissions for all users.
72 [% ELSIF set_bits.size %]
73 <br>
74 And you can turn on or off the following bits for
75 <a href="editusers.cgi">other users</a>:
76 <table align="center">
77 [% FOREACH bit_description = set_bits %]
78 <tr>
79 <td>[% bit_description.name FILTER html %]</td>
80 <td>[% bit_description.desc FILTER html_light %]</td>
81 </tr>
82 [% END %]
83 </table>
84 [% END %]
85
86 [% IF user.in_group('bz_sudoers') %]
87 <br>
88 You are a member of the <b>bz_sudoers</b> group, so you can
89 <a href="relogin.cgi?action=prepare-sudo">impersonate someone else</a>.
90 [% END %]
91 </td>
92 </tr>
93 </table>

  ViewVC Help
Powered by ViewVC 1.1.30