~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:
12
12
           href="${req.publisher.generate(context, OfferingEdit)}">
13
13
           Change details
14
14
        </a>
 
15
        <a py:if="req.user.admin"
 
16
           class="subjectaction"
 
17
           href="${req.publisher.generate(context, OfferingCloneWorksheets)}">
 
18
           Clone worksheets
 
19
        </a>
15
20
        <a py:if="'enrol' in permissions"
16
21
           class="groupaction"
17
 
           href="${req.publisher.generate(context, None, ('+enrolments', '+new'))}">
18
 
          Enrol users
 
22
           href="${req.publisher.generate(context, EnrolmentsView)}">
 
23
          Administer enrolments
19
24
        </a>
20
25
      </div>
21
26
 
65
70
                </py:if>
66
71
                <br />
67
72
                ${project.synopsis}
 
73
                <div class="horizontalactions" py:if="'view_project_submissions' in permissions">
 
74
                  <a class="verifyaction" href="${req.publisher.generate(project)}">View submissions</a>
 
75
                  <a py:if="project.project_set.is_group" class="groupaction"
 
76
                     href="${req.publisher.generate(project.project_set, GroupsView)}">Manage groups</a>
 
77
                </div>
68
78
              </li>
69
79
            </ul>
70
 
            <py:if test="context.get_open_projects_for_user(req.user).count() > 0">
71
 
              <p>
72
 
                To submit to a project that has not yet closed, use the file
73
 
                browser to navigate to the file or directory that you wish to
74
 
                submit, click &ldquo;More actions...&rdquo;,
75
 
                &ldquo;Submit&rdquo;, and then select the correct project.
76
 
              </p>
77
 
              <p>
78
 
                If the project to which you intend to submit is not listed,
79
 
                ensure that you are in the correct directory, or a subdirectory
80
 
                thereof. For solo projects, you must be inside the subject's
81
 
                &ldquo;mywork&rdquo; directory. For group projects, you must be
82
 
                inside the directory for the assigned group.
83
 
              </p>
84
 
              <p>
85
 
                You may resubmit a project as you wish until the deadline, but
86
 
                a new submission will overwrite any made earlier.
87
 
              </p>
88
 
            </py:if>
 
80
            <p py:if="context.get_open_projects_for_user(req.user).count() > 0">
 
81
              <a class="helpaction" href="/+help/Submitting%20a%20project">Help submitting a project</a>
 
82
            </p>
89
83
          </py:otherwise>
90
84
        </py:choose>
91
85
 
96
90
        </a>
97
91
      </div>
98
92
 
99
 
      <div py:if="'edit_worksheets' in permissions or context.worksheets.count() > 0"
 
93
      <div py:if="'edit_worksheets' in permissions or len(worksheets) > 0"
100
94
           class="majorsection">
101
95
        <h2>Worksheets</h2>
102
 
        <py:choose test="context.worksheets.count()">
 
96
        <py:choose test="len(worksheets)">
103
97
          <p py:when="0">
104
98
            There are no worksheets for this offering.
105
99
            <a class="addaction" href="${req.publisher.generate(context, None, ('+worksheets', '+new'))}">Create one now</a>
126
120
                  Total exercises completed: ${exercises_done}/${exercises_total} (${exercises_pct}%)
127
121
                </li>
128
122
              </ul> 
129
 
              <p>
 
123
              <p py:if="context.show_worksheet_marks">
130
124
                <span style="font-weight: bold;">Mark:</span> ${worksheet_mark}/${worksheet_max_mark}
131
125
              </p>
132
126
            </py:if>
133
 
            <span py:if="'edit_worksheets' in permissions">
 
127
            <div class="horizontalactions" py:if="'edit_worksheets' in permissions">
134
128
              <a class="manageaction" href="${req.publisher.generate(context, None, ('+worksheets', '+edit'))}"> Manage worksheets</a>
135
 
              <br />
136
129
              <a class="manageaction" href="/+exercises">Manage exercises</a>
137
 
            </span>
 
130
            </div>
138
131
          </div>
139
132
        </py:choose>
140
133
      </div>