diff options
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 %] |