summaryrefslogtreecommitdiffstats
path: root/template/en/default
diff options
context:
space:
mode:
authorlpsolit%gmail.com <>2007-10-22 03:59:28 +0200
committerlpsolit%gmail.com <>2007-10-22 03:59:28 +0200
commit4d05f0cb2a6d071d7c89627f8b7073ab24856e98 (patch)
tree1664d2f9dc3c694df4d6320c3998ffecce1bf9b5 /template/en/default
parent44ca0263301d0161db4f45ea8e4542f6ff30e67f (diff)
downloadbugzilla-4d05f0cb2a6d071d7c89627f8b7073ab24856e98.tar.gz
bugzilla-4d05f0cb2a6d071d7c89627f8b7073ab24856e98.tar.xz
Bug 182083: Help system should support more pages - Patch by Frédéric Buclin <LpSolit@gmail.com> r=Colin a=LpSolit
Diffstat (limited to 'template/en/default')
-rw-r--r--template/en/default/account/prefs/prefs.html.tmpl1
-rw-r--r--template/en/default/global/common-links.html.tmpl15
2 files changed, 16 insertions, 0 deletions
diff --git a/template/en/default/account/prefs/prefs.html.tmpl b/template/en/default/account/prefs/prefs.html.tmpl
index 080a83c2b..ed9cbce72 100644
--- a/template/en/default/account/prefs/prefs.html.tmpl
+++ b/template/en/default/account/prefs/prefs.html.tmpl
@@ -41,6 +41,7 @@
subheader = filtered_login
style_urls = ['skins/standard/admin.css']
javascript_urls = ['js/util.js']
+ doc_section = "userpreferences.html"
%]
[% tabs = [{ name => "settings", label => "General Preferences",
diff --git a/template/en/default/global/common-links.html.tmpl b/template/en/default/global/common-links.html.tmpl
index cb7b289cf..033b98069 100644
--- a/template/en/default/global/common-links.html.tmpl
+++ b/template/en/default/global/common-links.html.tmpl
@@ -61,6 +61,9 @@
|| user.get_products_by_permission("editcomponents").size %]
<li><span class="separator">| </span><a href="admin.cgi">Administration</a></li>
[% END %]
+
+ [% PROCESS link_to_documentation %]
+
<li>
<span class="separator">| </span>
[% IF user.authorizer.can_logout %]
@@ -81,6 +84,9 @@
&& user.authorizer.user_can_create_account %]
<li><span class="separator">| </span><a href="createaccount.cgi">New&nbsp;Account</a></li>
[% END %]
+
+ [% PROCESS link_to_documentation %]
+
[% IF user.authorizer.can_login %]
[%# Use the current script name. If an empty name is returned,
# then we are accessing the home page. %]
@@ -109,3 +115,12 @@
[% END %]
[% END %]
</ul>
+
+[% BLOCK link_to_documentation %]
+ [% IF doc_section %]
+ <li>
+ <span class="separator">| </span>
+ <a href="[% Param("docs_urlbase") _ doc_section FILTER html %]" target="_blank">Help</a>
+ </li>
+ [% END %]
+[% END %]