~launchpad-pqm/launchpad/devel

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<html
  xmlns="http://www.w3.org/1999/xhtml"
  xmlns:tal="http://xml.zope.org/namespaces/tal"
  xmlns:metal="http://xml.zope.org/namespaces/metal"
  xmlns:i18n="http://xml.zope.org/namespaces/i18n"
  metal:use-macro="view/macro:page/main_side"
  i18n:domain="launchpad"
>

<body>

<tal:side metal:fill-slot="side">
  <tal:menu replace="structure context/@@+global-actions" />
  <div tal:replace="structure context/@@+portlet-latestspecs" />
</tal:side>

<div metal:fill-slot="main">

  <p class="portlet" tal:condition="not: view/specs" id="no-blueprints">
    There are no open blueprints.
  </p>

  <div tal:condition="view/specs" class="portlet">
    <p>
      This listing shows the assignment of work for
      blueprints currently associated with 
      <span tal:replace="context/displayname">Mozilla</span>.
      The drafter is responsible for getting the specification correctly
      written up and approved.
      The approver is usually the person who would
      sign off on the specification.
    </p>

    <tal:navigation replace="structure view/specs_batched/@@+navigation-links-upper" />
    <table class="listing sortable" id="work">
      <thead>
        <tr>
          <th>Priority</th>
          <th>Name</th>
          <th>Definition</th>
          <th>Delivery</th>
          <th>Assignee</th>
          <th>Drafter</th>
          <th>Approver</th>
        </tr>
      </thead>
      <tbody class="lesser" tal:define="specs view/specs_batched/currentBatch">
        <tr tal:repeat="spec specs">
          <td>
            <span class="sortkey" tal:content="spec/priority/sortkey" />
            <span tal:content="spec/priority/title"
                  tal:attributes="
                  class string:specpriority${spec/priority/name}">High</span>
          </td>
          <td>
            <a tal:replace="structure spec/fmt:link">Better mousetrap</a>
            <span tal:condition="spec/informational"
                  class="info sprite"
                  alt="Informational" />
          </td>
          <td>
            <span class="sortkey" tal:content="spec/definition_status/sortkey" />
            <span tal:content="spec/definition_status/title"
                  tal:attributes="
                  class string:specstatus${spec/definition_status/name}">Approved</span>
          </td>
          <td>
            <span class="sortkey" tal:content="spec/implementation_status/sortkey" />
            <span tal:content="spec/implementation_status/title"
                  tal:attributes="
                  class string:specdelivery${spec/implementation_status/name}">Slow
            </span>
          </td>
          <td>
            <a tal:condition="spec/assignee"
               tal:replace="structure spec/assignee/fmt:link">
              Assignee Bar
            </a>
          </td>
          <td>
            <a tal:condition="spec/drafter"
               tal:replace="structure spec/drafter/fmt:link">
              Drafter Baz
            </a>
          </td>
          <td>
            <a tal:condition="spec/approver" 
               tal:replace="structure spec/approver/fmt:link">
              Approver Foo
            </a>
          </td>
        </tr>
      </tbody>
    </table>
    <tal:navigation replace="structure view/specs_batched/@@+navigation-links-lower" />
  </div>

</div>
</body>
</html>