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

« back to all changes in this revision

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

  • Committer: mattgiuca
  • Date: 2007-12-21 06:15:19 UTC
  • Revision ID: svn-v3-trunk0:2b9c9e99-6f39-0410-b283-7f802c844ae2:trunk:124
dispatch/request: Added new fields: method and username.
                  Added new methods: get_session and get_fieldstorage.
dispatch/html: Writes out username of logged in user, and a "logout" link.
dispatch/__init__: Handles special logout app.
                   Performs authentication, and stores username in req.
                   No longer lets apache print HTML errors. Just returns OK.
dispatch: Added login module.

Added new package: auth (handles authentication and authorization).
    Currently just does hard-coded dummy authentication.

debuginfo: Added new info for new fields of request, and also prints out
        fieldstorage and session information.

conf/apps.py: debuginfo does not require auth (careful!)
              Commented out debuginfo (no longer displays warning)

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
 
      <table border="1" summary="Latest Submissions"
12
 
             py:if="project.latest_submissions.count() > 0">
13
 
        <tr>
14
 
          <th>Who</th>
15
 
          <th>By</th>
16
 
          <th>Date</th>
17
 
          <th>Download</th>
18
 
        </tr>
19
 
      <py:for each="submission in project.latest_submissions">
20
 
        <tr>
21
 
          <td>${submission.assessed.principal.display_name}</td>
22
 
          <td>${submission.submitter.display_name}</td>
23
 
          <td>${submission.date_submitted.strftime("%Y-%m-%d %H:%M:%S")}</td>
24
 
          <td>svn co --username ${user.login} -r${submission.revision} ${build_subversion_url(svn_addr, submission)}</td>
25
 
        </tr>
26
 
      </py:for>
27
 
      </table>
28
 
      <table>
29
 
        <tr><th>Assigned</th></tr>
30
 
        <py:for each="assignee in project.project_set.assigned">
31
 
          <tr>
32
 
            <td>${assignee.display_name}</td>
33
 
            <!-- <td><a>Grant an extension</a></td> -->
34
 
          </tr>
35
 
        </py:for>
36
 
      </table>
37
 
    </div>
38
 
  </body>
39
 
</html>