~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: 2010-02-24 12:18:11 UTC
  • mto: This revision was merged to the branch mainline in revision 1698.
  • Revision ID: grantw@unimelb.edu.au-20100224121811-ubxxiulpli7mk5cq
Hide unpublished worksheets if edit_worksheets is not held.

Show diffs side-by-side

added added

removed removed

Lines of Context:
90
90
        </a>
91
91
      </div>
92
92
 
93
 
      <div py:if="'edit_worksheets' in permissions or context.worksheets.count() > 0"
 
93
      <div py:if="'edit_worksheets' in permissions or len(worksheets) > 0"
94
94
           class="majorsection">
95
95
        <h2>Worksheets</h2>
96
 
        <py:choose test="context.worksheets.count()">
 
96
        <py:choose test="len(worksheets)">
97
97
          <p py:when="0">
98
98
            There are no worksheets for this offering.
99
99
            <a class="addaction" href="${req.publisher.generate(context, None, ('+worksheets', '+new'))}">Create one now</a>