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

« back to all changes in this revision

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

  • Committer: Matt Giuca
  • Date: 2010-02-24 01:50:09 UTC
  • mto: This revision was merged to the branch mainline in revision 1682.
  • Revision ID: matt.giuca@gmail.com-20100224015009-shsg6yayidplb22z
SubjectView: Fixed text at the top to either present the list of semesters, or explain that there are no offerings.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
  <body>
7
7
    <h1>${context.name}</h1>
8
8
    <div id="ivle_padding">
9
 
      <p py:if="len(offerings) == 0">You are not currently enrolled in this subject.</p>
10
 
      <p>This subject is offered in the following semesters:</p>
11
 
      <ul>
 
9
      <py:choose test="len(offerings) > 0">
 
10
        <p py:when="True">This subject is offered in the following semesters:</p>
 
11
        <p py:when="False">There are no offerings associated with this subject.</p>
 
12
      </py:choose>
 
13
      <ul py:if="len(offerings) > 0">
12
14
        <li py:for="offering in offerings"
13
15
            py:attrs="{'class': 'subject_current' if offering.semester.state == u'current' else None}">
14
16
          <py:choose test="user.admin or offering.get_enrolment(user) is not None">