summaryrefslogtreecommitdiffstats
path: root/template/en/default/global/useful-links.html.tmpl
diff options
context:
space:
mode:
authorwurblzap%gmail.com <>2006-10-18 04:58:34 +0200
committerwurblzap%gmail.com <>2006-10-18 04:58:34 +0200
commit84973470df08a269632287e66c52aa30f515ccc1 (patch)
tree68680d1965e213fc622d648e77c49fb42d5282c6 /template/en/default/global/useful-links.html.tmpl
parentc26d71326510b17b3da75c733254ec07178da884 (diff)
downloadbugzilla-84973470df08a269632287e66c52aa30f515ccc1.tar.gz
bugzilla-84973470df08a269632287e66c52aa30f515ccc1.tar.xz
Bug 321556: Prepare Bugzilla to ship with at least 2 skins.
Patch by Marc Schumann <wurblzap@gmail.com>; r=myk, a=justdave
Diffstat (limited to 'template/en/default/global/useful-links.html.tmpl')
-rw-r--r--template/en/default/global/useful-links.html.tmpl125
1 files changed, 63 insertions, 62 deletions
diff --git a/template/en/default/global/useful-links.html.tmpl b/template/en/default/global/useful-links.html.tmpl
index e1bb2affe..8faed2875 100644
--- a/template/en/default/global/useful-links.html.tmpl
+++ b/template/en/default/global/useful-links.html.tmpl
@@ -26,86 +26,87 @@
[% PROCESS global/variables.none.tmpl %]
-<div id="useful-links">
- <div id="links-actions">
+<ul id="useful-links">
+ <li id="links-actions">
<div class="label">Actions:</div>
- [% PROCESS "global/common-links.html.tmpl" btn_id = "find_bottom" %]
- </div>
+ [% PROCESS "global/common-links.html.tmpl" btn_id = "find_bottom" %]
+ </li>
- [% IF user.login %]
- <div id="links-edit">
- <div class="label">Edit:</div>
- <div class="links">
-
- <a href="userprefs.cgi">Prefs</a>
- [% ' | <a href="editparams.cgi">Parameters</a> ' _
- ' | <a href="editsettings.cgi">User Preferences</a>'
+ [% IF user.login %]
+ <li id="links-edit">
+ <div class="label">Edit:</div>
+ <ul class="links">
+ <li><a href="userprefs.cgi">Prefs</a></li>
+ [% ' <li><span class="separator">| </span><a href="editparams.cgi">Parameters</a></li>' _
+ ' <li><span class="separator">| </span><a href="editsettings.cgi">User Preferences</a></li>'
IF user.groups.tweakparams %]
- [% ' | <a href="editusers.cgi">Users</a>' IF user.groups.editusers
+ [% ' <li><span class="separator">| </span><a href="editusers.cgi">Users</a></li>' IF user.groups.editusers
|| user.can_bless %]
[% IF Param('useclassification') && user.groups.editclassifications %]
- [% ' | <a href="editclassifications.cgi">Classifications</a>' %]
- [% END %]
- [% ' | <a href="editproducts.cgi">Products</a>'
+ [% ' <li><span class="separator">| </span><a href="editclassifications.cgi">Classifications</a></li>' %]
+ [% END %]
+ [% ' <li><span class="separator">| </span><a href="editproducts.cgi">Products</a></li>'
IF user.groups.editcomponents %]
- [% ' | <a href="editflagtypes.cgi">Flags</a>'
+ [% ' <li><span class="separator">| </span><a href="editflagtypes.cgi">Flags</a></li>'
IF user.groups.editcomponents %]
- [% ' | <a href="editfields.cgi">Custom Fields</a>'
+ [% ' <li><span class="separator">| </span><a href="editfields.cgi">Custom Fields</a></li>'
IF user.groups.admin %]
- [% ' | <a href="editvalues.cgi">Field Values</a>'
+ [% ' <li><span class="separator">| </span><a href="editvalues.cgi">Field Values</a></li>'
IF user.groups.editcomponents %]
- [% ' | <a href="editgroups.cgi">Groups</a>'
+ [% ' <li><span class="separator">| </span><a href="editgroups.cgi">Groups</a></li>'
IF user.groups.creategroups %]
- [% ' | <a href="editkeywords.cgi">Keywords</a>'
+ [% ' <li><span class="separator">| </span><a href="editkeywords.cgi">Keywords</a></li>'
IF user.groups.editkeywords %]
- [% ' | <a href="editwhines.cgi">Whining</a>'
+ [% ' <li><span class="separator">| </span><a href="editwhines.cgi">Whining</a></li>'
IF user.groups.bz_canusewhines %]
- </div>
- </div>
- [% END %]
+ </ul>
+ </li>
+ [% END %]
-
[%# Saved searches %]
- <div id="links-saved">
- <div class="label">
- [% IF user.showmybugslink OR user.queries.size %]
- Saved&nbsp;Searches:
- [% END %]
- </div>
- <div class="links">
- [% IF user.showmybugslink %]
- [% filtered_username = user.login FILTER url_quote %]
- <a href="[% Param('mybugstemplate').replace('%userid%', filtered_username) %]">My&nbsp;[% terms.Bugs %]</a>
- [% print_pipe = 1 %]
- [% END %]
-
- [% FOREACH q = user.queries %]
- [% NEXT IF q.userid != user.id %]
- [% IF q.link_in_footer %]
- [% " | " IF print_pipe %]
- <a href="buglist.cgi?cmdtype=dorem&amp;remaction=run&amp;namedcmd=
- [% q.name FILTER url_quote %]">[% q.name FILTER html FILTER no_break %]</a>
+ [% IF user.showmybugslink OR user.queries.size %]
+ <li id="links-saved">
+ <div class="label">
+ Saved Searches:
+ </div>
+ <ul class="links">
+ [% IF user.showmybugslink %]
+ [% filtered_username = user.login FILTER url_quote %]
+ <li><a href="[% Param('mybugstemplate').replace('%userid%', filtered_username) %]">My [% terms.Bugs %]</a></li>
[% print_pipe = 1 %]
[% END %]
- [% END %]
- [% " <br> " IF print_pipe %]
- [% print_pipe = 0 %]
- [% FOREACH q = user.queries %]
- [% NEXT IF q.userid == user.id %]
- [% IF q.link_in_footer %]
- [% " | " IF print_pipe %]
- <a href="buglist.cgi?cmdtype=dorem&amp;remaction=run&amp;namedcmd=
- [% q.name FILTER url_quote %]&amp;sharer_id=
- [% q.userid FILTER url_quote %]"
- class="shared"
- title="Shared by [% q.user.identity FILTER html %]">[% q.name FILTER html FILTER no_break %]</a>
- [% print_pipe = 1 %]
+ [% FOREACH q = user.queries %]
+ [% NEXT IF q.userid != user.id %]
+ [% IF q.link_in_footer %]
+ <li>[% '<span class="separator">| </span>' IF print_pipe %]
+ <a href="buglist.cgi?cmdtype=runnamed&amp;namedcmd=[% q.name FILTER url_quote %]">[% q.name FILTER html %]</a></li>
+ [% print_pipe = 1 %]
+ [% END %]
+ [% END %]
+ [% new_line = print_pipe %]
+ [% print_pipe = 0 %]
+ [% FOREACH q = user.queries %]
+ [% NEXT IF q.userid == user.id %]
+ [% IF q.link_in_footer %]
+ [% IF new_line %]
+ <br>
+ [% new_line = 0 %]
+ [% END %]
+ <li>
+ [% '<span class="separator">| </span>' IF print_pipe %]
+ <a href="buglist.cgi?cmdtype=dorem&amp;remaction=run&amp;namedcmd=
+ [% q.name FILTER url_quote %]&amp;sharer_id=
+ [% q.userid FILTER url_quote %]"
+ class="shared"
+ title="Shared by [% q.user.identity FILTER html %]">[% q.name FILTER html FILTER no_break %]</a></li>
+ [% print_pipe = 1 %]
+ [% END %]
[% END %]
- [% END %]
- </div>
- </div>
+ </ul>
+ </li>
+ [% END %]
[%# Individual bugs addition %]
@@ -113,4 +114,4 @@
[%# Sections of links to more things users can do on this installation. %]
[% Hook.process("end") %]
-</div>
+</ul>