~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:
3
3
      xmlns:xi="http://www.w3.org/2001/XInclude"
4
4
      py:strip="">
5
5
  <py:match path="head[@status!='done']" once="true">
6
 
    <head status='done' py:attrs="select('@*')">
 
6
    <head>
7
7
      <title py:with="title = list(select('title/text()'))">
8
8
        <py:if test="title">${title} - </py:if>IVLE
9
9
      </title>
44
44
    </head>
45
45
  </py:match>    
46
46
  <py:match path="body[@status!='done']" once="true">
47
 
    <body status='done'>
 
47
    <body>
48
48
      <div id="ivleheader"></div>
49
49
      <div id="ivleheader_text">
50
50
        <h1>IVLE</h1>
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>
70
73
        </ul>
71
74
      </div>
72
75
      <div id="ivlebody">
73
 
      ${select('*')}
 
76
        ${select('*')}
74
77
      </div>
 
78
      <div id="ivleoverlays">
 
79
        <py:for each="overlay in overlays">
 
80
          ${overlay}
 
81
        </py:for>
 
82
      </div>     
75
83
    </body>
76
84
  </py:match>
77
85
  ${app_template}