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

« back to all changes in this revision

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

Modified the project view to display a list of submissions in a table.

Show diffs side-by-side

added added

removed removed

Lines of Context:
8
8
    <div id="ivle_padding">
9
9
      <p>${project.synopsis}</p>
10
10
      <p>Submissions: ${len(submissions)}/${len(assigned)}</p>
11
 
      <h3 py:if="len(submissions) > 0">Latest Submissions</h3>
 
11
      <table border="1" summary="Latest Submissions" 
 
12
          py:if="len(submissions) > 0">
 
13
        <tr>
 
14
          <th>Name</th>
 
15
          <th>Submitted By</th>
 
16
          <th>Time Submitted</th>
 
17
          <th>Repository</th>
 
18
        </tr>
12
19
      <py:for each="submission in submissions">
13
 
        <p>Submitted ${format_datetime_short(submission.date_submitted)} on behalf of <em>${submission.assessed.principal.display_name}</em> by <em>${submission.submitter.display_name}</em></p>
 
20
        <tr>
 
21
          <td>${submission.assessed.principal.display_name}</td>
 
22
          <td>${submission.submitter.display_name}</td>
 
23
          <td>${submission.date_submitted}</td>
 
24
          <td>${submission.path}</td>
 
25
        </tr>
14
26
      </py:for>
 
27
      </table>
15
28
      <table>
16
29
        <tr><th>Assigned</th></tr>
17
30
        <py:for each="assignee in assigned">
18
 
          <tr><td>${assignee.display_name}</td></tr>
 
31
          <tr>
 
32
            <td>${assignee.display_name}</td>
 
33
            <td><a>Grant an extension</a></td>
 
34
          </tr>
19
35
        </py:for>
20
36
      </table>
21
37
    </div>