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

« back to all changes in this revision

Viewing changes to ivle/webapp/groups/template.html

  • Committer: Matt Giuca
  • Date: 2010-02-25 04:15:09 UTC
  • Revision ID: matt.giuca@gmail.com-20100225041509-nqz59xjznxjwhi0e
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.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
  <body>
7
7
    <h1>Project set for ${projectset.offering.subject.name}</h1>
8
8
    <div id="ivle_padding">
 
9
      <py:if test="not projectset.is_group">
 
10
      <p>This set contains solo projects</p>
 
11
      </py:if>
9
12
      <p>Projects in this set:</p>
10
13
      <ul>
11
14
        <li py:for="project in projectset.projects">
12
15
          <a href="${req.publisher.generate(project)}">${project.name}</a>
13
16
        </li>
14
17
      </ul>
 
18
      <py:if test="projectset.is_group">
15
19
      <p>Groups in this set:</p>
16
20
      <ul>
17
21
        <li py:for="group in projectset.project_groups"
25
29
        </li>
26
30
        <li><input value="New" type="button" onclick="create_new_group(${projectset.id})" /></li>
27
31
      </ul>
 
32
      </py:if>
28
33
    </div>
29
34
  </body>
30
35
</html>