Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
bugzilla
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
etersoft
bugzilla
Commits
8c1a3e8f
Commit
8c1a3e8f
authored
Jul 12, 2004
by
jouni%heikniemi.net
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 103274: Site Navigation Bar incorrect if viewing a bug not in the list
Patch by GavinS <bugzilla@chimpychompy.org> r=jouni, a=justdave
parent
5414dfb9
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
14 additions
and
9 deletions
+14
-9
site-navigation.html.tmpl
template/en/default/global/site-navigation.html.tmpl
+14
-9
No files found.
template/en/default/global/site-navigation.html.tmpl
View file @
8c1a3e8f
...
...
@@ -37,18 +37,23 @@
[% IF bug && 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 current_bug_idx > 0 %]
<link rel="First" href="show_bug.cgi?id=[% bug_list.first %]">
[% prev_bug = current_bug_idx - 1 %]
<link rel="Prev" href="show_bug.cgi?id=[% bug_list.$prev_bug %]">
[% END %]
[% 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 + 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 %]">
<link rel="Last" href="show_bug.cgi?id=[% bug_list.last %]">
[% END %]
[% END %]
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment