summaryrefslogtreecommitdiffstats
path: root/template/en/default/global/docslinks.html.tmpl
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2016-02-08 19:25:59 +0100
committerFrédéric Buclin <LpSolit@gmail.com>2016-02-08 19:25:59 +0100
commit6ef9bbb5abeee1bd7c06d9b74dcb29afbe424fa6 (patch)
treeafe65a24667e1baf3978f4837b800a150e97ae72 /template/en/default/global/docslinks.html.tmpl
parent6967405a89a660884a9b1475d3c555a7ae289fbb (diff)
downloadbugzilla-6ef9bbb5abeee1bd7c06d9b74dcb29afbe424fa6.tar.gz
bugzilla-6ef9bbb5abeee1bd7c06d9b74dcb29afbe424fa6.tar.xz
Bug 1046241: All links to the documentation displayed besides error messages are broken
r=gerv
Diffstat (limited to 'template/en/default/global/docslinks.html.tmpl')
-rw-r--r--template/en/default/global/docslinks.html.tmpl18
1 files changed, 9 insertions, 9 deletions
diff --git a/template/en/default/global/docslinks.html.tmpl b/template/en/default/global/docslinks.html.tmpl
index e33aa3b17..94502aa1f 100644
--- a/template/en/default/global/docslinks.html.tmpl
+++ b/template/en/default/global/docslinks.html.tmpl
@@ -7,29 +7,29 @@
#%]
[%# INTERFACE:
- # docslinks: hash. Hash keys will be used as text of the documentation links,
- # hash values will be used as links to the document, relative to
+ # docslinks: hash. Hash values will be used as text of the documentation links,
+ # hash keys will be used as links to the document, relative to
# the main Bugzilla documentation directory.
# Example: If you want a 'FAQ' link to point to, the "faq-general"
# named anchor on faq.html, assign
- # { 'FAQ' => "faq.html#faq-general" }
+ # { "faq.html#faq-general" => 'FAQ' }
# to docslinks.
# You may only link to sections by their given ID; it is not allowed
# to link to a section which is not given an ID (thus getting
# assigned an automatically generated ID). Otherwise, the link
# would break on a recompilation of the documentation.
# admindocslinks: hash. Same as docslinks, but will only be displayed to
- # members of the admin group.
+ # members of the 'editcomponents' group.
#%]
-[% IF docslinks.keys.size || (admindocslinks.keys.size && user.in_group('admin')) %]
+[% IF docslinks.keys.size || (admindocslinks.keys.size && user.in_group('editcomponents')) %]
<div id="docslinks">
<h2>Related documentation</h2>
<ul>
- [% IF user.in_group('admin') %]
- [% PROCESS docslinkslist docstype = admindocslinks %]
+ [% IF user.in_group('editcomponents') %]
+ [% PROCESS docslinkslist docstype = admindocslinks admin = 1 %]
[% END %]
- [% PROCESS docslinkslist docstype = docslinks %]
+ [% PROCESS docslinkslist docstype = docslinks admin = 0 %]
</ul>
</div>
[% END %]
@@ -37,7 +37,7 @@
[% BLOCK docslinkslist %]
[% FOREACH docslink = docstype.keys %]
<li>
- <a href="[% docs_urlbase FILTER html %]
+ <a href="[% docs_urlbase FILTER html %][% "administering/" IF admin %]
[% docslink FILTER none %]">[% docstype.$docslink FILTER html %]</a>
</li>
[% END %]