~azzar1/unity/add-show-desktop-key

« back to all changes in this revision

Viewing changes to ivle/webapp/base/ivle-headings.html

Created a new help system.

The new help system allows plugins to register their help paths, using
a dict of dicts and helpfile paths. This system allows multiple plugins
to use the same heading for their help files (ie. 'admin').

It also allows XHTMLViews to have a 'help' property, which makes the
context-sensitive help link point to their help path.

Show diffs side-by-side

added added

removed removed

Lines of Context:
55
55
            <span id="usernick">${nick}</span>
56
56
            (<span class="username">${login}</span>) |
57
57
            <a href="/~${login}/+settings">Settings</a> |
58
 
            <a href="/help">Help</a> |
 
58
            <py:choose>
 
59
              <a py:when='help_path' href="/+help/${help_path}">Help</a>
 
60
              <a py:otherwise="" href="/+help/">Help</a>
 
61
            |</py:choose>
59
62
            <a href="/logout">Sign out</a>
60
63
          </p>
61
64
          <p py:otherwise="" class="userhello">Not logged in.</p>