summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/account/prefs/permissions.html.tmpl4
-rw-r--r--template/en/default/admin/admin.html.tmpl20
-rw-r--r--template/en/default/admin/fieldvalues/confirm-delete.html.tmpl2
-rw-r--r--template/en/default/admin/users/confirm-delete.html.tmpl4
-rw-r--r--template/en/default/admin/users/userdata.html.tmpl2
-rw-r--r--template/en/default/attachment/edit.html.tmpl2
-rw-r--r--template/en/default/bug/dependency-tree.html.tmpl2
-rw-r--r--template/en/default/global/common-links.html.tmpl8
-rw-r--r--template/en/default/global/site-navigation.html.tmpl16
-rw-r--r--template/en/default/global/user-error.html.tmpl2
-rw-r--r--template/en/default/list/quips.html.tmpl4
-rw-r--r--template/en/default/pages/sudo.html.tmpl4
-rw-r--r--template/en/default/sidebar.xul.tmpl16
13 files changed, 43 insertions, 43 deletions
diff --git a/template/en/default/account/prefs/permissions.html.tmpl b/template/en/default/account/prefs/permissions.html.tmpl
index 4a097e2f2..5e8dc9ca2 100644
--- a/template/en/default/account/prefs/permissions.html.tmpl
+++ b/template/en/default/account/prefs/permissions.html.tmpl
@@ -65,7 +65,7 @@
There are no permission bits set on your account.
[% END %]
- [% IF user.groups.editusers %]
+ [% IF user.in_group('editusers') %]
<br>
You have editusers privileges. You can turn on and off
all permissions for all users.
@@ -83,7 +83,7 @@
</table>
[% END %]
- [% IF user.groups.bz_sudoers %]
+ [% IF user.in_group('bz_sudoers') %]
<br>
You are a member of the <b>bz_sudoers</b> group, so you can
<a href="relogin.cgi?action=prepare-sudo">impersonate someone else</a>.
diff --git a/template/en/default/admin/admin.html.tmpl b/template/en/default/admin/admin.html.tmpl
index c681767b5..15f126ba5 100644
--- a/template/en/default/admin/admin.html.tmpl
+++ b/template/en/default/admin/admin.html.tmpl
@@ -36,7 +36,7 @@
<tr>
<td class="admin_links">
<dl>
- [% class = user.groups.tweakparams ? "" : "forbidden" %]
+ [% class = user.in_group('tweakparams') ? "" : "forbidden" %]
<dt class="[% class %]"><a href="editparams.cgi">Parameters</a></dt>
<dd class="[% class %]">Set core parameters of the installation. That's the
place where you specify the URL to access this installation, determine how
@@ -49,25 +49,25 @@
which will be used by default for all users. Users will be able to edit their
own preferences from the <a href="userprefs.cgi?tab=settings">Preferences</a>.</dd>
- [% class = user.groups.editcomponents ? "" : "forbidden" %]
+ [% class = user.in_group('editcomponents') ? "" : "forbidden" %]
<dt class="[% class %]"><a href="sanitycheck.cgi">Sanity Check</a></dt>
<dd class="[% class %]">Run sanity checks to locate problems in your database.
This may take several tens of minutes depending on the size of your installation.
You can also automate this check by running <tt>sanitycheck.pl</tt> from a cron job.
A notification will be sent per email to the specified user if errors are detected.</dd>
- [% class = (user.groups.editusers || user.can_bless) ? "" : "forbidden" %]
+ [% class = (user.in_group('editusers') || user.can_bless) ? "" : "forbidden" %]
<dt class="[% class %]"><a href="editusers.cgi">Users</a></dt>
<dd class="[% class %]">Create new user accounts or edit existing ones. You can
also add and remove users from groups (also known as "user privileges").</dd>
- [% class = (Param('useclassification') && user.groups.editclassifications) ? "" : "forbidden" %]
+ [% class = (Param('useclassification') && user.in_group('editclassifications')) ? "" : "forbidden" %]
<dt class="[% class %]"><a href="editclassifications.cgi">Classifications</a></dt>
<dd class="[% class %]">If your installation has to manage many products at once,
it's a good idea to group these products into distinct categories. This lets users
find information more easily when doing searches or when filing new [% terms.bugs %].</dd>
- [% class = (user.groups.editcomponents
+ [% class = (user.in_group('editcomponents')
|| user.get_products_by_permission("editcomponents").size) ? "" : "forbidden" %]
<dt class="[% class %]"><a href="editproducts.cgi">Products</a></dt>
<dd class="[% class %]">Edit all aspects of products, including group restrictions
@@ -76,7 +76,7 @@
<a href="editcomponents.cgi">components</a>, <a href="editversions.cgi">versions</a>
and <a href="editmilestones.cgi">milestones</a> directly.</dd>
- [% class = user.groups.editcomponents ? "" : "forbidden" %]
+ [% class = user.in_group('editcomponents') ? "" : "forbidden" %]
<dt class="[% class %]"><a href="editflagtypes.cgi">Flags</a></dt>
<dd class="[% class %]">A flag is a custom 4-states attribute of [% terms.bugs %]
and/or attachments. These states are: granted, denied, requested and undefined.
@@ -87,7 +87,7 @@
<td class="admin_links">
<dl>
- [% class = user.groups.admin ? "" : "forbidden" %]
+ [% class = user.in_group('admin') ? "" : "forbidden" %]
<dt class="[% class %]"><a href="editfields.cgi">Custom Fields</a></dt>
<dd class="[% class %]">[% terms.Bugzilla %] lets you define fields which are
not implemented by default, based on your local and specific requirements.
@@ -107,18 +107,18 @@
statuses available on [% terms.bug %] creation and allowed [% terms.bug %] status
transitions when editing existing [% terms.bugs %].</dd>
- [% class = user.groups.creategroups ? "" : "forbidden" %]
+ [% class = user.in_group('creategroups') ? "" : "forbidden" %]
<dt class="[% class %]"><a href="editgroups.cgi">Groups</a></dt>
<dd class="[% class %]">Define groups which will be used in the installation.
They can either be used to define new user privileges or to restrict the access
to some [% terms.bugs %].</dd>
- [% class = user.groups.editkeywords ? "" : "forbidden" %]
+ [% class = user.in_group('editkeywords') ? "" : "forbidden" %]
<dt class="[% class %]"><a href="editkeywords.cgi">Keywords</a></dt>
<dd class="[% class %]">Set keywords to be used with [% terms.bugs %]. Keywords
are an easy way to "tag" [% terms.bugs %] to let you find them more easily later.</dd>
- [% class = user.groups.bz_canusewhines ? "" : "forbidden" %]
+ [% class = user.in_group('bz_canusewhines') ? "" : "forbidden" %]
<dt class="[% class %]"><a href="editwhines.cgi">Whining</a></dt>
<dd class="[% class %]">Set queries which will be run at some specified date
and time, and get the result of these queries directly per email. This is a
diff --git a/template/en/default/admin/fieldvalues/confirm-delete.html.tmpl b/template/en/default/admin/fieldvalues/confirm-delete.html.tmpl
index 3320ae48f..d18e03a53 100644
--- a/template/en/default/admin/fieldvalues/confirm-delete.html.tmpl
+++ b/template/en/default/admin/fieldvalues/confirm-delete.html.tmpl
@@ -71,7 +71,7 @@
[% IF param_name.defined && Param(param_name) == value %]
<li>'[% value FILTER html %]' is the default value for
the '[% field.description FILTER html %]' field.
- [% IF user.groups.tweakparams %]
+ [% IF user.in_group('tweakparams') %]
You first have to <a href="editparams.cgi?section=bugfields#
[%- param_name FILTER url_quote %]">change the default value</a> for
this field before you can delete this value.
diff --git a/template/en/default/admin/users/confirm-delete.html.tmpl b/template/en/default/admin/users/confirm-delete.html.tmpl
index 218775dca..77d6772a6 100644
--- a/template/en/default/admin/users/confirm-delete.html.tmpl
+++ b/template/en/default/admin/users/confirm-delete.html.tmpl
@@ -69,8 +69,8 @@
<td>
[% IF otheruser.groups.size %]
<ul>
- [% FOREACH group = otheruser.groups.keys %]
- <li>[% group FILTER html %]</li>
+ [% FOREACH group = otheruser.groups %]
+ <li>[% group.name FILTER html %]</li>
[% END %]
</ul>
[% ELSE %]
diff --git a/template/en/default/admin/users/userdata.html.tmpl b/template/en/default/admin/users/userdata.html.tmpl
index feee4c5d6..f23aa1b85 100644
--- a/template/en/default/admin/users/userdata.html.tmpl
+++ b/template/en/default/admin/users/userdata.html.tmpl
@@ -27,7 +27,7 @@
<input size="64" maxlength="255" name="login"
id="login" value="[% otheruser.login FILTER html %]" />
[% IF editform %]
- [% IF !otheruser.groups.bz_sudo_protect %]
+ [% IF !otheruser.in_group('bz_sudo_protect') %]
<br />
<a href="relogin.cgi?action=prepare-sudo&amp;target_login=
[%- otheruser.login FILTER url_quote %]">Impersonate this user</a>
diff --git a/template/en/default/attachment/edit.html.tmpl b/template/en/default/attachment/edit.html.tmpl
index 7989dc7c9..49c28aa64 100644
--- a/template/en/default/attachment/edit.html.tmpl
+++ b/template/en/default/attachment/edit.html.tmpl
@@ -274,7 +274,7 @@
| <a href="attachment.cgi?id=[% attachment.id %]&amp;action=diff">Diff</a>
[% END %]
[% IF Param("allow_attachment_deletion")
- && user.groups.admin
+ && user.in_group('admin')
&& attachment.datasize > 0 %]
| <a href="attachment.cgi?id=[% attachment.id %]&amp;action=delete">Delete</a>
[% END %]
diff --git a/template/en/default/bug/dependency-tree.html.tmpl b/template/en/default/bug/dependency-tree.html.tmpl
index cc49d2fa4..adabf8ea2 100644
--- a/template/en/default/bug/dependency-tree.html.tmpl
+++ b/template/en/default/bug/dependency-tree.html.tmpl
@@ -83,7 +83,7 @@
[% IF ids.size %]
([% IF maxdepth -%]Up to [% maxdepth %] level[% "s" IF maxdepth > 1 %] deep | [% END -%]
<a href="buglist.cgi?bug_id=[% ids.join(",") %]">view as [% terms.bug %] list</a>
- [% IF user.groups.editbugs && ids.size > 1 %]
+ [% IF user.in_group('editbugs') && ids.size > 1 %]
| <a href="buglist.cgi?bug_id=[% ids.join(",") %]&amp;tweak=1">change several</a>
[% END %])
<ul class="tree">
diff --git a/template/en/default/global/common-links.html.tmpl b/template/en/default/global/common-links.html.tmpl
index bfd18af4d..4690d177a 100644
--- a/template/en/default/global/common-links.html.tmpl
+++ b/template/en/default/global/common-links.html.tmpl
@@ -56,10 +56,10 @@
[% IF user.login %]
<li><span class="separator">| </span><a href="userprefs.cgi">Preferences</a></li>
- [% IF user.groups.tweakparams || user.groups.editusers || user.can_bless
- || (Param('useclassification') && user.groups.editclassifications)
- || user.groups.editcomponents || user.groups.admin || user.groups.creategroups
- || user.groups.editkeywords || user.groups.bz_canusewhines
+ [% IF user.in_group('tweakparams') || user.in_group('editusers') || user.can_bless
+ || (Param('useclassification') && user.in_group('editclassifications'))
+ || user.in_group('editcomponents') || user.in_group('admin') || user.in_group('creategroups')
+ || user.in_group('editkeywords') || user.in_group('bz_canusewhines')
|| user.get_products_by_permission("editcomponents").size %]
<li><span class="separator">| </span><a href="admin.cgi">Administration</a></li>
[% END %]
diff --git a/template/en/default/global/site-navigation.html.tmpl b/template/en/default/global/site-navigation.html.tmpl
index 2acbcf44d..5440fe1f8 100644
--- a/template/en/default/global/site-navigation.html.tmpl
+++ b/template/en/default/global/site-navigation.html.tmpl
@@ -108,20 +108,20 @@
[%# *** Bugzilla Administration Tools *** %]
[% IF user.login %]
[% '<link rel="Administration" title="Parameters"
- href="editparams.cgi">' IF user.groups.tweakparams %]
+ href="editparams.cgi">' IF user.in_group('tweakparams') %]
[% '<link rel="Administration" title="Users"
- href="editusers.cgi">' IF user.groups.editusers %]
+ href="editusers.cgi">' IF user.in_group('editusers') %]
[% '<link rel="Administration" title="Products" href="editproducts.cgi">'
- IF user.groups.editcomponents || user.get_products_by_permission("editcomponents").size %]
+ IF user.in_group('editcomponents') || user.get_products_by_permission("editcomponents").size %]
[% '<link rel="Administration" title="Flag Types"
- href="editflagtypes.cgi">' IF user.groups.editcomponents %]
+ href="editflagtypes.cgi">' IF user.in_group('editcomponents') %]
[% '<link rel="Administration" title="Groups"
- href="editgroups.cgi">' IF user.groups.creategroups %]
+ href="editgroups.cgi">' IF user.in_group('creategroups') %]
[% '<link rel="Administration" title="Keywords"
- href="editkeywords.cgi">' IF user.groups.editkeywords %]
+ href="editkeywords.cgi">' IF user.in_group('editkeywords') %]
[% '<link rel="Administration" title="Whining"
- href="editwhines.cgi">' IF user.groups.bz_canusewhines %]
+ href="editwhines.cgi">' IF user.in_group('bz_canusewhines') %]
[% '<link rel="Administration" title="Sanity Check"
- href="sanitycheck.cgi">' IF user.groups.editcomponents %]
+ href="sanitycheck.cgi">' IF user.in_group('editcomponents') %]
[% END %]
[% END %]
diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl
index 09d40272c..b04c9e7dc 100644
--- a/template/en/default/global/user-error.html.tmpl
+++ b/template/en/default/global/user-error.html.tmpl
@@ -443,7 +443,7 @@
[% title = "Specified Field Value Is Default" %]
'[% value FILTER html %]' is the default value for
the '[% field.description FILTER html %]' field and cannot be deleted.
- [% IF user.groups.tweakparams %]
+ [% IF user.in_group('tweakparams') %]
You have to <a href="editparams.cgi?section=bugfields#
[%- param_name FILTER url_quote %]">change</a> the default value first.
[% END %]
diff --git a/template/en/default/list/quips.html.tmpl b/template/en/default/list/quips.html.tmpl
index 14cecb26e..b8359ffc6 100644
--- a/template/en/default/list/quips.html.tmpl
+++ b/template/en/default/list/quips.html.tmpl
@@ -37,7 +37,7 @@
<p>
<font color="red">
Your quip '<tt>[% added_quip FILTER html %]</tt>' has been added.
- [% IF Param("quip_list_entry_control") == "moderated" AND !user.groups.admin %]
+ [% IF Param("quip_list_entry_control") == "moderated" AND !user.in_group('admin') %]
It will be used as soon as it gets approved.
[% END %]
</font>
@@ -66,7 +66,7 @@
<p>
You can extend the quip list. Type in something clever or funny or boring
(but not obscene or offensive, please) and bonk on the button.
- [% IF Param("quip_list_entry_control") == "moderated" AND !user.groups.admin %]
+ [% IF Param("quip_list_entry_control") == "moderated" AND !user.in_group('admin') %]
Note that your quip has to be approved before it is used.
[% END %]
</p>
diff --git a/template/en/default/pages/sudo.html.tmpl b/template/en/default/pages/sudo.html.tmpl
index dff2d7d87..c790ff1ab 100644
--- a/template/en/default/pages/sudo.html.tmpl
+++ b/template/en/default/pages/sudo.html.tmpl
@@ -51,14 +51,14 @@ doing the impersonating has the appropriate privileges.
</p>
<p id="message">
- [% IF user.groups.bz_sudoers %]
+ [% IF user.in_group('bz_sudoers') %]
You are a member of the <b>bz_sudoers</b> group. You may use this
feature to impersonate others.
[% ELSE %]
You are not a member of an appropriate group. You may not use this
feature.
[% END %]
- [% IF user.groups.bz_sudo_protect %]
+ [% IF user.in_group('bz_sudo_protect') %]
<br>
You are a member of the <b>bz_sudo_protect</b> group. Other people will
not be able to use this feature to impersonate you.
diff --git a/template/en/default/sidebar.xul.tmpl b/template/en/default/sidebar.xul.tmpl
index 31c14729f..8035c8298 100644
--- a/template/en/default/sidebar.xul.tmpl
+++ b/template/en/default/sidebar.xul.tmpl
@@ -69,31 +69,31 @@ function normal_keypress_handler( aEvent ) {
[% IF user.id %]
<text class="text-link" onclick="load_relative_url('userprefs.cgi')" value="edit prefs"/>
- [%- IF user.groups.tweakparams %]
+ [%- IF user.in_group('tweakparams') %]
<text class="text-link" onclick="load_relative_url('editparams.cgi')" value="edit params"/>
<text class="text-link" onclick="load_relative_url('editsettings.cgi')" value="edit default preferences"/>
[%- END %]
- [%- IF user.groups.editusers || user.can_bless %]
+ [%- IF user.in_group('editusers') || user.can_bless %]
<text class="text-link" onclick="load_relative_url('editusers.cgi')" value="edit users"/>
[%- END %]
- [%- IF Param('useclassification') && user.groups.editclassifications %]
+ [%- IF Param('useclassification') && user.in_group('editclassifications') %]
<text class="text-link" onclick="load_relative_url('editclassifications.cgi')" value="edit classifications"/>
[%- END %]
- [%- IF user.groups.editcomponents %]
+ [%- IF user.in_group('editcomponents') %]
<text class="text-link" onclick="load_relative_url('editcomponents.cgi')" value="edit components"/>
<text class="text-link" onclick="load_relative_url('editflagtypes.cgi')" value="edit flags"/>
<text class="text-link" onclick="load_relative_url('editvalues.cgi')" value="edit field values"/>
[%- END %]
- [%- IF user.groups.creategroups %]
+ [%- IF user.in_group('creategroups') %]
<text class="text-link" onclick="load_relative_url('editgroups.cgi')" value="edit groups"/>
[%- END %]
- [%- IF user.groups.editkeywords %]
+ [%- IF user.in_group('editkeywords') %]
<text class="text-link" onclick="load_relative_url('editkeywords.cgi')" value="edit keywords"/>
[%- END %]
- [%- IF user.groups.bz_canusewhines %]
+ [%- IF user.in_group('bz_canusewhines') %]
<text class="text-link" onclick="load_relative_url('editwhines.cgi')" value="edit whining"/>
[%- END %]
- [%- IF user.groups.editcomponents %]
+ [%- IF user.in_group('editcomponents') %]
<text class="text-link" onclick="load_relative_url('sanitycheck.cgi')" value="sanity check"/>
[%- END %]
[%- IF user.authorizer.can_logout %]