Commit 4d05f0cb authored by lpsolit%gmail.com's avatar lpsolit%gmail.com

Bug 182083: Help system should support more pages - Patch by Fré©ric Buclin…

Bug 182083: Help system should support more pages - Patch by Fré©ric Buclin <LpSolit@gmail.com> r=Colin a=LpSolit
parent 44ca0263
......@@ -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",
......
......@@ -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 %]
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment