]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 182083: Help system should support more pages - Patch by Frédéric Buclin <LpSol...
authorlpsolit%gmail.com <>
Mon, 22 Oct 2007 01:59:28 +0000 (01:59 +0000)
committerlpsolit%gmail.com <>
Mon, 22 Oct 2007 01:59:28 +0000 (01:59 +0000)
template/en/default/account/prefs/prefs.html.tmpl
template/en/default/global/common-links.html.tmpl

index 080a83c2b0c9029b9bdbf4c06eb8efb714539423..ed9cbce72ed6b683b3131aae9a0eac6c3f895927 100644 (file)
@@ -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",
index cb7b289cf8c27a7f4266f58cd427c574e26d4523..033b980695bc8884b024a33285f97938b43e3de3 100644 (file)
@@ -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. %]
     [% 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 %]