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

« back to all changes in this revision

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

ProjectView now uses Project.latest_submissions, rather than miscalculating itself.

Show diffs side-by-side

added added

removed removed

Lines of Context:
7
7
    <h1>${project.name} for ${project.project_set.offering.subject.name}</h1>
8
8
    <div id="ivle_padding">
9
9
      <p>${project.synopsis}</p>
10
 
      <p>Submissions: ${len(submissions)}/${project.project_set.assigned.count()}</p>
11
 
      <table border="1" summary="Latest Submissions" py:if="len(submissions) > 0">
 
10
      <p>Submissions: ${project.latest_submissions.count()}/${project.project_set.assigned.count()}</p>
 
11
      <table border="1" summary="Latest Submissions"
 
12
             py:if="project.latest_submissions.count() > 0">
12
13
        <tr>
13
14
          <th>Name</th>
14
15
          <th>Submitted By</th>
15
16
          <th>Time Submitted</th>
16
17
          <th>Repository</th>
17
18
        </tr>
18
 
      <py:for each="submission in submissions">
 
19
      <py:for each="submission in project.latest_submissions">
19
20
        <tr>
20
21
          <td>${submission.assessed.principal.display_name}</td>
21
22
          <td>${submission.submitter.display_name}</td>