~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 01:58:38 UTC
  • mto: This revision was merged to the branch mainline in revision 1450.
  • Revision ID: me@williamgrant.id.au-20091217015838-8ugf6ppsy4m9bwor
Add submission instructions under the list of projects.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
          <p py:when="0">
22
22
            There are no projects for this offering.
23
23
          </p>
24
 
 
25
 
          <ul py:otherwise="" class="paddedlist">
26
 
            <li py:for="project in context.projects"
27
 
                py:attrs="{'class': 'project closed'}
28
 
                          if project.has_deadline_passed(req.user)
29
 
                          else {'class': 'project'}"
30
 
                py:with="principal = project.project_set.get_submission_principal(req.user)">
31
 
              <a href="${project.url}">${project.name}</a> &ndash;
32
 
              <span py:content="format_submission_principal(req.user, principal)" /> &ndash;
33
 
              <span title="${format_datetime(project.deadline)}">
34
 
                ${'closed' if project.has_deadline_passed(req.user) else 'due'} ${format_datetime_short(project.deadline)}
35
 
              </span>
36
 
              <py:if test="principal is not None"
37
 
                     py:with="submissions = project.get_submissions_for_principal(principal)">
38
 
                &ndash;
39
 
                <py:choose test="submissions.count()">
40
 
                  <span py:when="0">
41
 
                    not yet submitted
42
 
                  </span>
43
 
                  <span py:otherwise=""
44
 
                        py:with="latest = submissions.last()"
45
 
                        title="${format_datetime(latest.date_submitted)}">
46
 
                    last submitted ${format_datetime_short(latest.date_submitted)}
47
 
                  </span>
48
 
                </py:choose>
49
 
              </py:if>
50
 
            
51
 
              <br />
52
 
              ${project.synopsis}
53
 
            </li>
54
 
          </ul>
 
24
          <py:otherwise>
 
25
            <ul class="paddedlist">
 
26
              <li py:for="project in context.projects"
 
27
                  py:attrs="{'class': 'project closed'}
 
28
                            if project.has_deadline_passed(req.user)
 
29
                            else {'class': 'project'}"
 
30
                  py:with="principal = project.project_set.get_submission_principal(req.user)">
 
31
                <a href="${project.url}">${project.name}</a> &ndash;
 
32
                <span py:content="format_submission_principal(req.user, principal)" /> &ndash;
 
33
                <span title="${format_datetime(project.deadline)}">
 
34
                  ${'closed' if project.has_deadline_passed(req.user) else 'due'} ${format_datetime_short(project.deadline)}
 
35
                </span>
 
36
                <py:if test="principal is not None"
 
37
                       py:with="submissions = project.get_submissions_for_principal(principal)">
 
38
                  &ndash;
 
39
                  <py:choose test="submissions.count()">
 
40
                    <span py:when="0">
 
41
                      not yet submitted
 
42
                    </span>
 
43
                    <span py:otherwise=""
 
44
                          py:with="latest = submissions.last()"
 
45
                          title="${format_datetime(latest.date_submitted)}">
 
46
                      last submitted ${format_datetime_short(latest.date_submitted)}
 
47
                    </span>
 
48
                  </py:choose>
 
49
                </py:if>
 
50
                <br />
 
51
                ${project.synopsis}
 
52
              </li>
 
53
            </ul>
 
54
            <p>
 
55
              To submit to a project that has not yet closed, use the file
 
56
              browser to navigate to the file or directory that you wish to
 
57
              submit, click &ldquo;More actions...&rdquo;,
 
58
              &ldquo;Submit&rdquo;, and then select the correct project.
 
59
            </p>
 
60
            <p>
 
61
              If the project to which you intend to submit is not listed,
 
62
              ensure that you are in the correct directory, or a subdirectory
 
63
              thereof. For solo projects, you must be inside the
 
64
              &ldquo;mywork&rdquo; directory. For group projects, you must be
 
65
              inside the directory for the assigned group.
 
66
            </p>
 
67
            <p>
 
68
              You may resubmit a project as you wish until the deadline, but
 
69
              a new submission will overwrite any earlier ones.
 
70
            </p>
 
71
          </py:otherwise>
55
72
        </py:choose>
56
73
 
57
74
        <a py:if="'edit' in permissions"