From 6c64d00a569bb404a8a7f41affc26d662bde2772 Mon Sep 17 00:00:00 2001 From: "lpsolit%gmail.com" <> Date: Thu, 5 Apr 2007 23:18:06 +0000 Subject: Bug 286338: Remove admin options from footer in favor of a single link to Admin Options - Patch by Frédéric Buclin r=justdave a=LpSolit MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- template/en/default/admin/admin.html.tmpl | 126 ++++++++++++++++++++++ template/en/default/filterexceptions.pl | 4 + template/en/default/global/common-links.html.tmpl | 7 ++ template/en/default/global/useful-links.html.tmpl | 60 +---------- template/en/default/global/user-error.html.tmpl | 4 +- 5 files changed, 141 insertions(+), 60 deletions(-) create mode 100644 template/en/default/admin/admin.html.tmpl (limited to 'template/en/default') diff --git a/template/en/default/admin/admin.html.tmpl b/template/en/default/admin/admin.html.tmpl new file mode 100644 index 000000000..15316ed64 --- /dev/null +++ b/template/en/default/admin/admin.html.tmpl @@ -0,0 +1,126 @@ +[%# 1.0@bugzilla.org %] +[%# The contents of this file are subject to the Mozilla Public + # License Version 1.1 (the "License"); you may not use this file + # except in compliance with the License. You may obtain a copy of + # the License at http://www.mozilla.org/MPL/ + # + # Software distributed under the License is distributed on an "AS + # IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or + # implied. See the License for the specific language governing + # rights and limitations under the License. + # + # The Original Code is the Bugzilla Bug Tracking System. + # + # Contributor(s): Frédéric Buclin + #%] + +[% PROCESS global/variables.none.tmpl %] + +[% title = BLOCK %] + Administrate your installation ([% terms.Bugzilla %] + [%+ constants.BUGZILLA_VERSION FILTER html %]) +[% END %] + +[% PROCESS global/header.html.tmpl title = title + style_urls = ['skins/standard/admin.css'] +%] + +
+ This page is only accessible to empowered users. You can access administrive pages + from here (based on your privileges), letting you configure different aspects of + this installation. Note: some sections may not be accessible to you and are marked + using a lighter color. +
+ + + + + + + +
+ +[% PROCESS global/footer.html.tmpl %] diff --git a/template/en/default/filterexceptions.pl b/template/en/default/filterexceptions.pl index 231ad98f5..72ab1550a 100644 --- a/template/en/default/filterexceptions.pl +++ b/template/en/default/filterexceptions.pl @@ -460,6 +460,10 @@ 'section_num' ], +'admin/admin.html.tmpl' => [ + 'class' +], + 'admin/table.html.tmpl' => [ 'link_uri' ], diff --git a/template/en/default/global/common-links.html.tmpl b/template/en/default/global/common-links.html.tmpl index dca5d7262..937f7a955 100644 --- a/template/en/default/global/common-links.html.tmpl +++ b/template/en/default/global/common-links.html.tmpl @@ -55,6 +55,13 @@ [% IF user.login %]
  • | Preferences
  • + [% 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 + || user.get_products_by_permission("editcomponents").size %] +
  • | Administration
  • + [% END %]
  • | [% IF user.authorizer.can_logout %] diff --git a/template/en/default/global/useful-links.html.tmpl b/template/en/default/global/useful-links.html.tmpl index 5dff3d578..998b5a67a 100644 --- a/template/en/default/global/useful-links.html.tmpl +++ b/template/en/default/global/useful-links.html.tmpl @@ -32,65 +32,7 @@ [% PROCESS "global/common-links.html.tmpl" btn_id = "find_bottom" %]
  • - [%# We have no other choices than enumerating all required privileges to have - # at least one link in this section. %] - [% IF user.login - && (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) %] - - [% print_pipe = 0 %] - - [% END %] - - [%# Saved searches %] + [%# Saved searches %] [% IF user.showmybugslink OR user.queries.size OR user.queries_subscribed.size diff --git a/template/en/default/global/user-error.html.tmpl b/template/en/default/global/user-error.html.tmpl index 7452ab8d1..171eb9c20 100644 --- a/template/en/default/global/user-error.html.tmpl +++ b/template/en/default/global/user-error.html.tmpl @@ -148,7 +148,9 @@ use [% END %] - [% IF object == "attachment" %] + [% IF object == "administrative_pages" %] + administrative pages + [% ELSIF object == "attachment" %] this attachment [% ELSIF object == "bugs" %] [%+ terms.bugs %] -- cgit v1.2.3-24-g4f1b