From 8474e73b2aed9342d7ffe12aaf40adf085fdc606 Mon Sep 17 00:00:00 2001
From: "lpsolit%gmail.com" <>
Date: Wed, 6 Feb 2008 19:34:49 +0000
Subject: Bug 359943: Prev/Next s not working on process_bug.cgi page
- Patch by Frédéric Buclin r=wurblzap a=LpSolit
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
template/en/default/bug/process/header.html.tmpl | 5 +++--
template/en/default/bug/show.html.tmpl | 4 ++--
.../en/default/global/site-navigation.html.tmpl | 23 +++++++++++-----------
3 files changed, 17 insertions(+), 15 deletions(-)
(limited to 'template/en')
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 @@
[%# *** Bug List Navigation *** %]
- [% IF bug && bug_list && bug_list.size > 0 %]
+ [% IF bug_list && bug_list.size > 0 %]
- [% 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 %]
+
+ [% END %]
- [% IF current_bug_idx > 0 %]
- [% prev_bug = current_bug_idx - 1 %]
-
- [% END %]
+ [% IF current_bug_idx + 1 < bug_list.size %]
+ [% next_bug = current_bug_idx + 1 %]
+
+ [% END %]
- [% IF current_bug_idx + 1 < bug_list.size %]
- [% next_bug = current_bug_idx + 1 %]
-
[% END %]
-
[% END %]
[% END %]
--
cgit v1.2.3-24-g4f1b