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

« back to all changes in this revision

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

  • Committer: dcoles
  • Date: 2008-05-09 07:43:37 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:753
Upload: Patch submitted by 'wagrant' to fix file upload of dos formated files 
and prevent corruption of upload files.

wagrant wrote:
> Last night I set up IVLE in my Gutsy schroot, and debugged it further.
> Looking deeper at the code, I noted it was a different error from the one I
> thought it was (an incorrect header, rather than lack of a Content-Type).
> This made the cause and fix obvious.
>
> http://qeuni.net/ivle_bug_1942845.diff fixes it for me in all the
> situations I can think of. It checks for the length of the header section
> obtained by splitting on a double LF then double CRLF, and takes the
> smaller one as the headers. In the old code, any output with a double CRLF
> in the body would have anything before the first CRLF treated as headers,
> which is wrong. Double LFs weren't affected because LFs are used by default
> to terminate the real headers.
>
> I apparently can't attach things (argh! I hate the SourceForge bug
> tracker).


Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
<html xmlns="http://www.w3.org/1999/xhtml"
2
 
      xmlns:py="http://genshi.edgewall.org/">
3
 
  <head>
4
 
    <title>${project.name} for ${project.project_set.offering.subject.name}</title>
5
 
  </head>
6
 
  <body>
7
 
    <h1>${project.name} for ${project.project_set.offering.subject.name}</h1>
8
 
    <div id="ivle_padding">
9
 
      <p>${project.synopsis}</p>
10
 
      <p>Submissions: ${project.latest_submissions.count()}/${project.project_set.assigned.count()}</p>
11
 
 
12
 
      <h2>Latest submissions</h2>
13
 
      <table id="project_submissions" class="project_list" summary="Latest Submissions"
14
 
             py:if="project.latest_submissions.count() > 0">
15
 
        <thead>
16
 
          <tr>
17
 
            <th>Group</th>
18
 
            <th>Submitter</th>
19
 
            <th>Date</th>
20
 
            <th>Download</th>
21
 
          </tr>
22
 
        </thead>
23
 
        <tbody>
24
 
        <py:for each="submission in project.latest_submissions">
25
 
          <tr>
26
 
          <py:choose test="submission.assessed.principal is submission.submitter">
27
 
            <td py:when="True">-</td>
28
 
            <td py:otherwise=""><span title="${submission.assessed.principal.display_name}">${submission.assessed.principal.short_name}</span></td>
29
 
          </py:choose>
30
 
            <td><span title="${submission.submitter.display_name}">${submission.submitter.short_name}</span></td>
31
 
            <td>${submission.date_submitted.strftime("%Y-%m-%d %H:%M:%S")}</td>
32
 
            <td>svn co --username ${user.login} -r${submission.revision} ${build_subversion_url(svn_addr, submission)}</td>
33
 
          </tr>
34
 
        </py:for>
35
 
        </tbody>
36
 
      </table>
37
 
 
38
 
      <h2>Assigned submitters</h2>
39
 
      <table id="project_assigneds" class="project_list">
40
 
        <thead><tr><th>Assigned</th></tr></thead>
41
 
        <tbody>
42
 
        <py:for each="assignee in project.project_set.assigned">
43
 
          <tr>
44
 
            <td><span title="${assignee.display_name}">${assignee.short_name}</span></td>
45
 
            <!-- <td><a>Grant an extension</a></td> -->
46
 
          </tr>
47
 
        </py:for>
48
 
        </tbody>
49
 
      </table>
50
 
    </div>
51
 
  </body>
52
 
</html>