From 5802599c4c23b92aee027d763d73002d1880e31e Mon Sep 17 00:00:00 2001 From: Frédéric Buclin Date: Thu, 11 Sep 2014 01:49:24 +0200 Subject: Bug 1041306: Kill global/site-navigation.html.tmpl to conform to the HTML5 spec about valid keywords r=dkl a=sgreen --- .../en/default/account/auth/login-small.html.tmpl | 3 + template/en/default/filterexceptions.pl | 4 -- template/en/default/global/header.html.tmpl | 2 - .../en/default/global/site-navigation.html.tmpl | 75 ---------------------- 4 files changed, 3 insertions(+), 81 deletions(-) delete mode 100644 template/en/default/global/site-navigation.html.tmpl (limited to 'template') diff --git a/template/en/default/account/auth/login-small.html.tmpl b/template/en/default/account/auth/login-small.html.tmpl index 5868b8671..790c135bf 100644 --- a/template/en/default/account/auth/login-small.html.tmpl +++ b/template/en/default/account/auth/login-small.html.tmpl @@ -9,6 +9,9 @@ [%# Use the current script name. If an empty name is returned, # then we are accessing the home page. %] +[% USE Bugzilla %] +[% cgi = Bugzilla.cgi %] + [% login_target = cgi.url("-relative" => 1, "-query" => 1) %] [% IF !login_target OR login_target.match("^token.cgi") %] [% login_target = "index.cgi" %] diff --git a/template/en/default/filterexceptions.pl b/template/en/default/filterexceptions.pl index 0b65414d7..93c4a42a9 100644 --- a/template/en/default/filterexceptions.pl +++ b/template/en/default/filterexceptions.pl @@ -190,10 +190,6 @@ 'script', ], -'global/site-navigation.html.tmpl' => [ - 'bug.bug_id', -], - 'bug/comments.html.tmpl' => [ 'comment.id', 'comment.count', diff --git a/template/en/default/global/header.html.tmpl b/template/en/default/global/header.html.tmpl index 5740016a6..4f6e187d8 100644 --- a/template/en/default/global/header.html.tmpl +++ b/template/en/default/global/header.html.tmpl @@ -85,8 +85,6 @@ [% END %] - [% PROCESS "global/site-navigation.html.tmpl" %] - [% PROCESS 'global/setting-descs.none.tmpl' %] [% SET yui = yui_resolve_deps(yui, yui_deps) %] diff --git a/template/en/default/global/site-navigation.html.tmpl b/template/en/default/global/site-navigation.html.tmpl deleted file mode 100644 index 5c68ad7f6..000000000 --- a/template/en/default/global/site-navigation.html.tmpl +++ /dev/null @@ -1,75 +0,0 @@ -[%# This Source Code Form is subject to the terms of the Mozilla Public - # License, v. 2.0. If a copy of the MPL was not distributed with this - # file, You can obtain one at http://mozilla.org/MPL/2.0/. - # - # This Source Code Form is "Incompatible With Secondary Licenses", as - # defined by the Mozilla Public License, v. 2.0. - #%] - -[%# INTERFACE: - # bug.bug_id: integer. Number of current bug (for navigation purposes) - #%] - -[% USE Bugzilla %] -[% cgi = Bugzilla.cgi %] - -[% IF NOT (cgi.user_agent("MSIE [1-6]") OR cgi.user_agent("Mozilla/4")) %] - - - [%# *** Attachment *** %] - [% IF attachment && attachment.bug_id %] - - [% END %] - - - [%# *** Dependencies, Activity, Print-version *** %] - [% IF bug %] - - [% IF Param('webdotbase') %] - - [% END %] - - - - [% END %] - - - [%# *** Saved Searches *** %] - [% IF user.showmybugslink %] - [% user_login = user.login FILTER uri %] - - [% END %] - - [% FOREACH q = user.queries_subscribed %] - - [% END %] - - [%# *** Bugzilla Administration Tools *** %] - [% IF user.login %] - [% '' IF user.in_group('tweakparams') %] - [% '' IF user.in_group('editusers') %] - [% '' - IF user.in_group('editcomponents') || user.get_products_by_permission("editcomponents").size %] - [% '' IF user.in_group('editcomponents') %] - [% '' IF user.in_group('creategroups') %] - [% '' IF user.in_group('editkeywords') %] - [% '' IF user.in_group('bz_canusewhines') %] - [% '' IF user.in_group('editcomponents') %] - [% END %] -[% END %] -- cgit v1.2.3-24-g4f1b