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

« back to all changes in this revision

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

  • Committer: Matt Giuca
  • Date: 2010-02-11 03:17:12 UTC
  • Revision ID: matt.giuca@gmail.com-20100211031712-79c74lgh3mj7507s
docs: Tour of IVLE: Added lecturer tour (complete).

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>
20
15
        <a py:if="'enrol' in permissions"
21
16
           class="groupaction"
22
 
           href="${req.publisher.generate(context, EnrolmentsView)}">
23
 
          Administer enrolments
 
17
           href="${req.publisher.generate(context, None, ('+enrolments', '+new'))}">
 
18
          Enrol users
24
19
        </a>
25
20
      </div>
26
21
 
49
44
                </py:choose>
50
45
                &ndash;
51
46
                <span py:content="format_submission_principal(req.user, principal)" /> &ndash;
52
 
                <!-- XXX This deadline does not take the student's extensions into account. -->
53
 
                <span title="${'Closed' if project.has_deadline_passed(req.user) else 'Due'}: ${format_datetime(project.deadline)}">
 
47
                <span title="${format_datetime(project.deadline)}">
54
48
                  ${'closed' if project.has_deadline_passed(req.user) else 'due'} ${format_datetime_short(project.deadline)}
55
49
                </span>
56
50
                <py:if test="principal is not None"
62
56
                    </span>
63
57
                    <span py:otherwise=""
64
58
                          py:with="latest = submissions.last()"
65
 
                          title="Submitted: ${format_datetime(latest.date_submitted)}">
 
59
                          title="${format_datetime(latest.date_submitted)}">
66
60
                      last submitted ${format_datetime_short(latest.date_submitted)}
67
 
                      <a class="verifyaction" href="${latest.get_verify_url(req.user)}">Verify</a>
68
61
                    </span>
69
62
                  </py:choose>
70
63
                </py:if>
71
64
                <br />
72
65
                ${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>
78
66
              </li>
79
67
            </ul>
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>
 
68
            <py:if test="context.get_open_projects_for_user(req.user).count() > 0">
 
69
              <p>
 
70
                To submit to a project that has not yet closed, use the file
 
71
                browser to navigate to the file or directory that you wish to
 
72
                submit, click &ldquo;More actions...&rdquo;,
 
73
                &ldquo;Submit&rdquo;, and then select the correct project.
 
74
              </p>
 
75
              <p>
 
76
                If the project to which you intend to submit is not listed,
 
77
                ensure that you are in the correct directory, or a subdirectory
 
78
                thereof. For solo projects, you must be inside the subject's
 
79
                &ldquo;mywork&rdquo; directory. For group projects, you must be
 
80
                inside the directory for the assigned group.
 
81
              </p>
 
82
              <p>
 
83
                You may resubmit a project as you wish until the deadline, but
 
84
                a new submission will overwrite any made earlier.
 
85
              </p>
 
86
            </py:if>
83
87
          </py:otherwise>
84
88
        </py:choose>
85
89
 
90
94
        </a>
91
95
      </div>
92
96
 
93
 
      <div py:if="'edit_worksheets' in permissions or len(worksheets) > 0"
 
97
      <div py:if="'edit' in permissions or context.worksheets.count() > 0"
94
98
           class="majorsection">
95
99
        <h2>Worksheets</h2>
96
 
        <py:choose test="len(worksheets)">
 
100
        <py:choose test="context.worksheets.count()">
97
101
          <p py:when="0">
98
102
            There are no worksheets for this offering.
99
103
            <a class="addaction" href="${req.publisher.generate(context, None, ('+worksheets', '+new'))}">Create one now</a>
104
108
                <li>
105
109
                  <!-- Can't generate a URL directly to the worksheet, since this is a fake worksheet. -->
106
110
                  <a href="${req.publisher.generate(context)}/+worksheets/${worksheet.id}">${worksheet.name}</a>
107
 
                  <span py:if="not worksheet.published">(unpublished &mdash; not visible to students)</span>
108
111
                  <py:if test="worksheet.assessable">
109
112
                    <ul>
110
113
                      <li class="${worksheet.complete_class}">
121
124
                  Total exercises completed: ${exercises_done}/${exercises_total} (${exercises_pct}%)
122
125
                </li>
123
126
              </ul> 
124
 
              <p py:if="context.show_worksheet_marks">
 
127
              <p>
125
128
                <span style="font-weight: bold;">Mark:</span> ${worksheet_mark}/${worksheet_max_mark}
126
129
              </p>
127
130
            </py:if>
128
 
            <div class="horizontalactions" py:if="'edit_worksheets' in permissions">
129
 
              <a class="manageaction" href="${req.publisher.generate(context, None, ('+worksheets', '+edit'))}"> Manage worksheets</a>
130
 
              <a class="manageaction" href="/+exercises">Manage exercises</a>
131
 
            </div>
132
 
            <div class="horizontalactions" py:if="'view_worksheet_marks' in permissions">
133
 
              <a class="marksaction" href="${req.publisher.generate(context, None, ('+worksheets', '+marks'))}">View worksheet marks</a>
134
 
            </div>
 
131
            <a py:if="'edit' in permissions"
 
132
               class="manageaction"
 
133
               href="${req.publisher.generate(context, None, ('+worksheets', '+edit'))}">
 
134
              Manage worksheets
 
135
            </a><br />
 
136
            <a py:if="'edit' in permissions"
 
137
               class="manageaction"
 
138
               href="/+exercises">
 
139
              Manage exercises
 
140
            </a>
135
141
          </div>
136
142
        </py:choose>
137
143
      </div>