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

1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
1
<html xmlns="http://www.w3.org/1999/xhtml"
1099.1.25 by root
ivle.webapp.admin, ivle.webapp.groups, ivle.webapp.tutorial: Remove broken
2
      xmlns:py="http://genshi.edgewall.org/">
1099.1.17 by Nick Chadwick
Moved groups over to the new class-based xhtml templating way of being
3
  <head>
1709 by Matt Giuca
Groups page is now 'Project set' page. Changed title. It now lists all projects in the set, as well as groups.
4
    <title>Project set for ${projectset.offering.subject.name}</title>
1099.1.17 by Nick Chadwick
Moved groups over to the new class-based xhtml templating way of being
5
  </head>
6
  <body>
1709 by Matt Giuca
Groups page is now 'Project set' page. Changed title. It now lists all projects in the set, as well as groups.
7
    <h1>Project set for ${projectset.offering.subject.name}</h1>
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
8
    <div id="ivle_padding">
1710.1.5 by Matt Giuca
Added new project set edit view. Linked from projects page, project set page.
9
      <div class="contextactions">
10
        <a py:if="'edit' in permissions"
11
           class="editaction"
12
           href="${req.publisher.generate(projectset, ProjectSetEdit)}">
13
           Change details
14
        </a>
15
      </div>
1714 by Matt Giuca
Project set page: If the page has solo projects, does not show the groups or new group button, instead showing a short message that this is a solo set. This fixes Launchpad bug #527543.
16
      <py:if test="not projectset.is_group">
1717 by Matt Giuca
Project set page now displays the maximum group size.
17
      <p>Non-group projects.</p>
18
      </py:if>
19
      <py:if test="projectset.is_group">
20
      <p>Groups of maximum size ${projectset.max_students_per_group}.</p>
1714 by Matt Giuca
Project set page: If the page has solo projects, does not show the groups or new group button, instead showing a short message that this is a solo set. This fixes Launchpad bug #527543.
21
      </py:if>
1726 by William Grant
Turn the project and group sections on the ProjectSet index into majorsections, with proper headings.
22
      <div class="majorsection">
23
        <h2>Projects</h2>
24
        <table class="pretty_table">
1727 by William Grant
Use thead/tbody separation on the ProjectSet index, so the headers don't highlight on hover.
25
          <thead><tr><th>Name</th><th>Actions</th></tr></thead>
26
          <tbody>
27
            <tr py:for="project in projectset.projects">
28
              <td><a href="${req.publisher.generate(project)}">${project.name}</a></td>
1710.1.24 by Matt Giuca
Merged from trunk (reformatting of ProjectSet view).
29
            <td><a href='${req.publisher.generate(project, ProjectEdit)}'><img
30
                  src='/+media/ivle.webapp.core/images/interface/pencil.png'
31
                  alt="Edit" title="Edit project" /></a>
32
                <a href='${req.publisher.generate(project, ProjectDelete)}'><img
33
                  src='/+media/ivle.webapp.core/images/interface/delete.png'
34
                  alt="Delete" title="Delete project" /></a>
35
            </td>
1727 by William Grant
Use thead/tbody separation on the ProjectSet index, so the headers don't highlight on hover.
36
            </tr>
37
          </tbody>
1726 by William Grant
Turn the project and group sections on the ProjectSet index into majorsections, with proper headings.
38
        </table>
1710.1.24 by Matt Giuca
Merged from trunk (reformatting of ProjectSet view).
39
        <p><a class="addaction" href="${req.publisher.generate(projectset, ProjectNew)}">Add a new project</a></p>
1726 by William Grant
Turn the project and group sections on the ProjectSet index into majorsections, with proper headings.
40
      </div>
41
      <div py:if="projectset.is_group" class="majorsection">
42
        <h2>Groups</h2>
43
        <table class="pretty_table">
1730 by Matt Giuca
ProjectSet view: Prettied up the group management interface, including fixing delete icons.
44
          <thead><tr><th>Name</th><th>Management</th></tr></thead>
1727 by William Grant
Use thead/tbody separation on the ProjectSet index, so the headers don't highlight on hover.
45
          <tbody>
46
            <tr py:for="group in projectset.project_groups"
47
                id="project_group_${group.id}">
48
              <td>${group.name}</td>
49
              <td><a onclick="manage_group(${projectset.offering.id}, ${group.id} ,'project_group_${group.id}')"
50
                 class="choice"
51
                 id="project_group_${group.id}_button">
52
                <img src="/+media/ivle.webapp.core/images/interface/group.png" alt="Manage" title="Manage" />
53
              </a></td>
54
            </tr>
55
          </tbody>
1726 by William Grant
Turn the project and group sections on the ProjectSet index into majorsections, with proper headings.
56
        </table>
57
        <p><span class="addaction">
58
          <input value="Add a new group" type="button" onclick="create_new_group(${projectset.id})" />
59
        </span></p>
60
      </div>
1093 by chadnickbok
Adding the changes from my genshi branch into trunk.
61
    </div>
62
  </body>
63
</html>