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

« back to all changes in this revision

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

  • Committer: William Grant
  • Date: 2009-12-17 04:55:50 UTC
  • mto: This revision was merged to the branch mainline in revision 1450.
  • Revision ID: me@williamgrant.id.au-20091217045550-03vxauhdeixwdie9
Show the worksheet listing with marks and schtuff on the offering index.

Show diffs side-by-side

added added

removed removed

Lines of Context:
89
89
            <a class="addaction" href="${req.publisher.generate(context, None, ('+worksheets', '+new'))}">Create one now</a>
90
90
          </p>
91
91
          <div py:otherwise="">
 
92
            <ul id="tutorial-toc">
 
93
              <py:for each="worksheet in worksheets">
 
94
                <li>
 
95
                  <!-- Can't generate a URL directly to the worksheet, since this is a fake worksheet. -->
 
96
                  <a href="${req.publisher.generate(context)}/+worksheets/${worksheet.name}">${worksheet.name}</a>
 
97
                  <py:if test="worksheet.assessable">
 
98
                    <ul>
 
99
                      <li class="${worksheet.complete_class}">
 
100
                        Completed ${worksheet.mand_done}/${worksheet.total}${worksheet.optional_message}
 
101
                      </li>
 
102
                    </ul>
 
103
                  </py:if>
 
104
                </li>
 
105
              </py:for>
 
106
            </ul>
 
107
            <py:if test="exercises_total > 0">
 
108
              <ul>
 
109
                <li class="${worksheets_complete_class}">
 
110
                  Total exercises completed: ${exercises_done}/${exercises_total} (${exercises_pct}%)
 
111
                </li>
 
112
              </ul> 
 
113
              <p>
 
114
                <span style="font-weight: bold;">Mark:</span> ${worksheet_mark}/${worksheet_max_mark}
 
115
              </p>
 
116
            </py:if>
92
117
            <a py:if="'edit' in permissions"
93
118
               class="manageaction"
94
119
               href="${req.publisher.generate(context, None, ('+worksheets', '+edit'))}">