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
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Ivan Ivlev
bugzilla
Commits
75760c8a
Commit
75760c8a
authored
Feb 08, 2016
by
Frédéric Buclin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Bug 1046241: All links to the documentation displayed besides error messages are broken
r=gerv a=dkl
parent
e5a69b5d
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
10 deletions
+10
-10
code-error.html.tmpl
template/en/default/global/code-error.html.tmpl
+1
-1
docslinks.html.tmpl
template/en/default/global/docslinks.html.tmpl
+9
-9
user-error.html.tmpl
template/en/default/global/user-error.html.tmpl
+0
-0
No files found.
template/en/default/global/code-error.html.tmpl
View file @
75760c8a
...
...
@@ -49,7 +49,7 @@
the error [% bug.error FILTER html %].
[% ELSIF error == "chart_data_not_generated" %]
[%
admindocslinks = {'extraconfig
.html' => 'Setting up Charting'} %]
[%
docslinks = {'using/reports-and-charts
.html' => 'Setting up Charting'} %]
[% IF product.id %]
Charts for the <em>[% product.name FILTER html %]</em> product are not
available yet because no charting data has been collected for it since it
...
...
template/en/default/global/docslinks.html.tmpl
View file @
75760c8a
...
...
@@ -7,29 +7,29 @@
#%]
[%# INTERFACE:
# docslinks: hash. Hash
key
s will be used as text of the documentation links,
# hash
value
s will be used as links to the document, relative to
# docslinks: hash. Hash
value
s will be used as text of the documentation links,
# hash
key
s 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 %]
...
...
template/en/default/global/user-error.html.tmpl
View file @
75760c8a
This diff is collapsed.
Click to expand it.
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