diff options
author | lpsolit%gmail.com <> | 2008-02-06 20:34:49 +0100 |
---|---|---|
committer | lpsolit%gmail.com <> | 2008-02-06 20:34:49 +0100 |
commit | 8474e73b2aed9342d7ffe12aaf40adf085fdc606 (patch) | |
tree | c9575f2e53ed14d5725fdb050be4d6da3e44fc68 /template | |
parent | 90bf2307e3f5f19171e5f60bfe34d7c90ad1bf10 (diff) | |
download | bugzilla-8474e73b2aed9342d7ffe12aaf40adf085fdc606.tar.gz bugzilla-8474e73b2aed9342d7ffe12aaf40adf085fdc606.tar.xz |
Bug 359943: Prev/Next <link rel>s not working on process_bug.cgi page - Patch by Frédéric Buclin <LpSolit@gmail.com> r=wurblzap a=LpSolit
Diffstat (limited to 'template')
-rw-r--r-- | template/en/default/bug/process/header.html.tmpl | 5 | ||||
-rw-r--r-- | template/en/default/bug/show.html.tmpl | 4 | ||||
-rw-r--r-- | template/en/default/global/site-navigation.html.tmpl | 23 |
3 files changed, 17 insertions, 15 deletions
diff --git a/template/en/default/bug/process/header.html.tmpl b/template/en/default/bug/process/header.html.tmpl index f31a9f8e4..5472aa7dd 100644 --- a/template/en/default/bug/process/header.html.tmpl +++ b/template/en/default/bug/process/header.html.tmpl @@ -44,5 +44,6 @@ [% PROCESS global/header.html.tmpl javascript_urls = [ "js/util.js", "js/keyword-chooser.js", "js/field.js", "js/yui/yahoo-dom-event.js", "js/yui/calendar.js" ] - style_urls = [ "skins/standard/yui/calendar.css", "skins/standard/show_bug.css" ] - %] + style_urls = [ "skins/standard/yui/calendar.css", "skins/standard/show_bug.css" ] + doc_section = "bug_page.html" +%] diff --git a/template/en/default/bug/show.html.tmpl b/template/en/default/bug/show.html.tmpl index a6f9e8b97..78d166537 100644 --- a/template/en/default/bug/show.html.tmpl +++ b/template/en/default/bug/show.html.tmpl @@ -41,8 +41,8 @@ ] javascript_urls = [ "js/util.js", "js/keyword-chooser.js", "js/field.js", "js/yui/yahoo-dom-event.js", "js/yui/calendar.js" ] - style_urls = [ "skins/standard/yui/calendar.css", "skins/standard/show_bug.css" ] -doc_section = "bug_page.html" + style_urls = [ "skins/standard/yui/calendar.css", "skins/standard/show_bug.css" ] + doc_section = "bug_page.html" %] [% END %] diff --git a/template/en/default/global/site-navigation.html.tmpl b/template/en/default/global/site-navigation.html.tmpl index d533627a3..2acbcf44d 100644 --- a/template/en/default/global/site-navigation.html.tmpl +++ b/template/en/default/global/site-navigation.html.tmpl @@ -33,26 +33,27 @@ <link rel="Top" href="[% urlbase FILTER html %]"> [%# *** Bug List Navigation *** %] - [% IF bug && bug_list && bug_list.size > 0 %] + [% IF bug_list && bug_list.size > 0 %] <link rel="Up" href="buglist.cgi?regetlastlist=1"> <link rel="First" href="show_bug.cgi?id=[% bug_list.first %]"> <link rel="Last" href="show_bug.cgi?id=[% bug_list.last %]"> - [% current_bug_idx = lsearch(bug_list, bug.bug_id) %] + [% IF bug && bug.bug_id %] + [% current_bug_idx = lsearch(bug_list, bug.bug_id) %] + [% IF current_bug_idx != -1 %] - [% IF current_bug_idx != -1 %] + [% IF current_bug_idx > 0 %] + [% prev_bug = current_bug_idx - 1 %] + <link rel="Prev" href="show_bug.cgi?id=[% bug_list.$prev_bug %]"> + [% END %] - [% IF current_bug_idx > 0 %] - [% prev_bug = current_bug_idx - 1 %] - <link rel="Prev" href="show_bug.cgi?id=[% bug_list.$prev_bug %]"> - [% END %] + [% IF current_bug_idx + 1 < bug_list.size %] + [% next_bug = current_bug_idx + 1 %] + <link rel="Next" href="show_bug.cgi?id=[% bug_list.$next_bug %]"> + [% END %] - [% IF current_bug_idx + 1 < bug_list.size %] - [% next_bug = current_bug_idx + 1 %] - <link rel="Next" href="show_bug.cgi?id=[% bug_list.$next_bug %]"> [% END %] - [% END %] [% END %] |