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

« back to all changes in this revision

Viewing changes to ivle/webapp/admin/subjects.html

  • Committer: Matt Giuca
  • Date: 2009-02-25 03:04:08 UTC
  • mto: This revision was merged to the branch mainline in revision 1119.
  • Revision ID: matt.giuca@gmail.com-20090225030408-5e13v4felqc4aybr
(almost) all HTML pages updated: Moved <h1>s outside of the ivle-padding div.
    Added new <h1>s to pages which didn't have any, and reduced <h1s> down to
    <h2s> if they didn't represent the page heading.

h1s now represent the top-level heading of a page. The new style sheet styles
them specially, designed to appear directly underneath the tab bar. Therefore,
they need to appear outside of any padding.

util.py: Removed the <h1> from the default-generated terms of service page.
    (All other TOS pages should follow). There is now a <h1> at the top of the
    TOS template page instead.

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
    <title>Subjects</title>
5
5
  </head>
6
6
  <body>
 
7
    <h1>Subjects</h1>
7
8
    <div id="ivle_padding">
8
 
      <h2>Subjects</h2>
9
 
      <ul>
10
 
        <py:for each="enrolment in enrolments">
11
 
          <li>
12
 
            <a href="/subjects/${enrolment.offering.subject.code}/${enrolment.offering.semester.year}/${enrolment.offering.semester.semester}/+worksheets">
13
 
              ${enrolment.offering.subject.name}
14
 
            </a>
15
 
          </li>
16
 
        </py:for>
17
 
      </ul>
 
9
      <py:if test="(len(enrolled_subjects) > 0)">
 
10
        <h2>Subjects</h2>
 
11
        <ul>
 
12
          <py:for each="subject in enrolled_subjects">
 
13
            <py:choose test="subject['url']">
 
14
              <py:when test="None">
 
15
                <li>${subject['name']} (no home page)</li>
 
16
              </py:when>
 
17
              <py:otherwise>
 
18
                <li><a href="${subject['url']}">${subject['name']}</a></li>
 
19
              </py:otherwise>
 
20
            </py:choose>
 
21
          </py:for>
 
22
        </ul>
 
23
      </py:if>
 
24
      <py:if test="(len(other_subjects) > 0)">
 
25
        <h3>Other Subjects</h3>
 
26
        <p>You are not currently enrolled in these subjects</p>
 
27
        <ul>
 
28
          <py:for each="subject in other_subjects">
 
29
            <py:choose test="subject['url']">
 
30
             <py:when test="None">
 
31
               <li>${subject['name']} (no home page)</li>
 
32
             </py:when>
 
33
             <py:otherwise>
 
34
               <li><a href="${subject['url']}">${subject['name']}</a></li>
 
35
             </py:otherwise>
 
36
            </py:choose>
 
37
          </py:for>
 
38
        </ul>
 
39
      </py:if>
18
40
    </div>
19
41
  </body>
20
42
</html>