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

« back to all changes in this revision

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

  • Committer: Matt Giuca
  • Date: 2009-12-08 07:38:09 UTC
  • Revision ID: matt.giuca@gmail.com-20091208073809-4rm1v1su1sp4b81g
Subjects list: Rather than use h2 for current, h3 for inactive, use h2 for both with class subject_current for current subjects (more semantic).

Show diffs side-by-side

added added

removed removed

Lines of Context:
9
9
    <div id="ivle_padding">
10
10
      <p py:if="len(semesters) == 0">You are not currently enrolled in any subjects.</p>
11
11
      <py:for each="(semester, enrolments) in semesters">
12
 
        <py:choose test="semester.state">
13
 
          <h2 py:when="u'current'">${semester.year}, semester ${semester.semester}</h2>
14
 
          <h3 py:otherwise="">${semester.year}, semester ${semester.semester}</h3>
15
 
        </py:choose>
 
12
        <h2 py:attrs="{'class': 'subject_current' if semester.state == u'current' else None}">
 
13
          ${semester.year}, semester ${semester.semester}
 
14
        </h2>
16
15
        <ul>
17
16
          <py:for each="enrolment in enrolments">
18
17
            <li>