~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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
<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>

<metal:block fill-slot="head_epilogue">
  <style type="text/css">
    #implementation div.yui3-ichoicesource {
      display: inline;
    }
  </style>
</metal:block>

  <tal:registering metal:fill-slot="registering">
    Registered by
    <tal:registrant tal:replace="structure context/owner/fmt:link" />
    <span
        tal:attributes="title context/datecreated/fmt:datetime"
        tal:content="context/datecreated/fmt:displaydate" />
  </tal:registering>

<metal:heading fill-slot="heading">
  <h1 tal:replace="structure view/title_widget">
    blueprint title
  </h1>
</metal:heading>

<div metal:fill-slot="main" tal:define="context_menu context/menu:context">
  <p tal:repeat="notice view/notices" tal:content="notice"
     class="informational message">
    notice goes here
  </p>

  <p tal:condition="context/superseded_by" class="warning message">
    This blueprint has been superseded. See the newer blueprint
    "<b><a tal:content="context/superseded_by/title"
           tal:attributes="href context/superseded_by/fmt:url">new blueprint
    title</a></b>" for updated plans.
  </p>

  <div id="maincontentsub">
    <div class="top-portlet">
      <tal:widget replace="structure view/summary_widget" />

      <ul class="horizontal">
        <li id="spec-url"
            tal:condition="context/specurl">
          <a class="sprite external-link" rel="nofollow"
            tal:attributes="href context/specurl">Read the full specification</a>
        </li>
        <tal:block condition="python:context.specurl is None">
          <li tal:condition="context/required:launchpad.AnyPerson"
              class="link">
            <a tal:condition="not:context/specurl" href="+edit"
            >Set the URL for this specification</a>
          </li>
        </tal:block>
      </ul>
    </div>

    <div class="yui-g">
      <div class="portlet">
        <h2>Blueprint information</h2>

        <div class="yui-u first">
          <div class="two-column-list">
            <dl>
              <dt>Status:</dt>
              <dd id="lifecycle-status"
                  tal:content="context/lifecycle_status/title" />
            </dl>

            <dl>
              <dt>Approver:</dt>
              <dd tal:content="structure view/approver_widget" />
            </dl>

            <dl>
              <dt>Priority:</dt>
              <dd tal:content="structure view/priority_widget" />
            </dl>

            <dl>
              <dt>Drafter:</dt>
              <dd tal:content="structure view/drafter_widget" />
            </dl>

            <dl>
              <dt>Direction:</dt>
              <dd tal:content="structure view/direction_widget" />
            </dl>

            <dl>
              <dt>Assignee:</dt>
              <dd tal:content="structure view/assignee_widget" />
            </dl>

            <dl>
              <dt>Definition:</dt>
              <dd tal:content="structure view/definition_status_widget" />
            </dl>

            <dl id="series-goal">
              <dt>Series goal:</dt>
              <dd>
                <tal:block condition="context/goal">
                <a
                  tal:condition="context/goal/required:launchpad.Driver"
                  tal:attributes="href string:${context/fmt:url}/+decide"
                  tal:content="context/goalstatus/title"
                >Approved</a>
                <tal:cannotchange
                  tal:condition="not: context/goal/required:launchpad.Driver"
                  tal:replace="context/goalstatus/title"
                >Approved</tal:cannotchange>
                for
                <a tal:condition="context/productseries"
                   tal:attributes="href context/productseries/fmt:url"
                   tal:content="context/productseries/name">1.2</a>
                <a  tal:condition="context/distroseries"
                    tal:attributes="href context/distroseries/fmt:url"
                    tal:content="context/distroseries/name">hoary</a>
                </tal:block>
                <tal:none condition="not: context/goal">None</tal:none>
                <a tal:define="link context_menu/proposegoal"
                     tal:condition="link/enabled"
                     tal:attributes="href link/url"
                ><img tal:attributes="alt link/text; title link/text" src="/@@/edit" /></a>
              </dd>
            </dl>

            <dl>
              <dt>Implementation:</dt>
              <dd id="implementation">
                <img tal:attributes="class context/informational/css:select/visible/unseen"
                     src="/@@/info" alt="Informational"
                     title="Informational blueprint, no implementation necessary"
                     id="informational-icon"
                     />
                <tal:widget replace="structure view/implementation_status_widget" />
              </dd>
            </dl>


            <dl id="milestone-target">
              <dt>Milestone target:</dt>
              <dd>
              <a tal:attributes="href context/milestone/fmt:url"
                 tal:condition="context/milestone">
                <img alt="milestone icon" src="/@@/milestone" />
                <span tal:replace="context/milestone/name">1.0</span></a>
                <tal:none condition="not: context/milestone">None</tal:none>
                <a tal:define="link context_menu/milestone"
                     tal:condition="link/enabled"
                     tal:attributes="href link/url"
                ><img tal:attributes="alt link/text; title link/text" src="/@@/edit" /></a>
              </dd>
            </dl>

            <dl id="started-by"
                tal:attributes="class context/starter/css:select/visible/unseen">
               <dt>Started by</dt>
               <dd>
                 <tal:starter replace="structure context/starter/fmt:link" />
                 <tal:started_date replace="context/date_started/fmt:displaydate" />
              </dd>
            </dl>

            <dl id="completed-by"
                tal:attributes="class context/completer/css:select/visible/unseen">
              <dt>Completed by</dt>
              <dd>
                 <tal:completer replace="structure context/completer/fmt:link" />
                 <tal:completed_date replace="context/date_completed/fmt:displaydate" />
              </dd>
            </dl>
          </div>
        </div>

        <div class="yui-u">
          <div id="linked_branches">
            <h3>Related branches</h3>

            <ul
              tal:define="branches view/linked_branches"
              tal:condition="branches">
              <li tal:repeat="branchlink branches">
              <tal:branchlink
                  replace="structure branchlink/branch/fmt:link"/>
              <a tal:condition="branchlink/required:launchpad.AnyPerson"
                 tal:attributes="href branchlink/fmt:url"
                 ><img src="/@@/edit" title="Change this branch link" /></a>
              </li>
            </ul>

            <ul class="horizontal"
              tal:define="link context_menu/linkbranch"
              tal:condition="link/enabled">
              <li>
                <a tal:replace="structure link/fmt:link" />
              </li>
            </ul>
          </div>

          <div id="bug_links">
            <h3>Related bugs</h3>

            <table tal:condition="view/bug_links">
              <tr tal:repeat="bugtask view/bug_links">
                <td>
                  <tal:link replace="structure bugtask/fmt:link" />
                </td>
                <td>
                  <span tal:content="bugtask/status/title"
                        tal:attributes="class string:status${bugtask/status/name}"
                        >Triaged</span>
                </td>
              </tr>
            </table>

            <ul class="horizontal">
              <li tal:define="link context_menu/linkbug"
                tal:condition="link/enabled">
                <a tal:replace="structure link/fmt:link"/>
              </li>
              <li tal:define="link context_menu/unlinkbug"
                tal:condition="link/enabled">
                <a tal:replace="structure link/fmt:link"/>
              </li>
            </ul>
          </div>

          <div>
            <h3>Sprints</h3>
            <ul
              tal:define="sprint_links context/sprint_links"
              tal:condition="sprint_links">
              <li tal:repeat="sprint_link sprint_links">
                <tal:approval replace="structure sprint_link/@@+icon-status" />
                <a
                  tal:attributes="href sprint_link/sprint/fmt:url"
                  tal:content="sprint_link/sprint/name"/>
                <a
                  tal:condition="sprint_link/sprint/required:launchpad.Driver"
                  tal:attributes="href string:${context/fmt:url}/${sprint_link/sprint/name}"
                  ><img src="/@@/edit" /></a>
              </li>
            </ul>

            <ul class="horizontal">
              <li tal:define="link context_menu/linksprint"
                tal:condition="link/enabled">
                <a tal:replace="structure link/fmt:link" />
              </li>
            </ul>
          </div>
        </div>

        <div id="feedback-requests">
          <h3 tal:condition="not:context/feedbackrequests">Feedback requests</h3>

          <div tal:replace="structure context/@@+portlet-feedbackqueue" />

          <ul class="horizontal">
            <li tal:define="link context_menu/givefeedback"
                tal:condition="link/enabled">
              <a tal:replace="structure link/fmt:link" />
            </li>
            <li tal:define="link context_menu/requestfeedback"
                tal:condition="link/enabled">
              <a tal:replace="structure link/fmt:link" />
            </li>
          </ul>
        </div>
      </div>
    </div>

    <div class="portlet">
      <div class="wide" tal:content="structure view/whiteboard_widget" />
    </div>

    <div class="portlet">
      <tal:deptree condition="view/has_dep_tree">
        <h2>Dependency tree</h2>

        <tal:block tal:replace="structure context/@@+deptreeimgtag" />

        <p>
          * Blueprints in grey have been implemented.
        </p>
      </tal:deptree>

      <ul class="horizontal">
        <li tal:define="link context_menu/adddependency"
          tal:condition="link/enabled">
          <a tal:replace="structure link/fmt:link" />
        </li>
        <li tal:define="link context_menu/removedependency"
          tal:condition="link/enabled">
          <a tal:replace="structure link/fmt:link" />
        </li>
      </ul>
    </div>

      <div tal:condition="context/goal" class="related">
        <h2>Nearby</h2>

        <ul>
          <li>
            <a tal:attributes="href context/goal/fmt:url">
              Other <tal:goal replace="context/goal/displayname" /> blueprints
            </a>
          </li>
        </ul>
      </div>
    </div>

  <script type="text/javascript">
    LPS.use('lp.anim', 'lp.ui', function(Y) {

        Y.on('lp:context:implementation_status:changed', function(e) {
            var icon = Y.one('#informational-icon');
            if (e.new_value == 'Informational') {
              icon.removeClass('unseen');
            } else {
              icon.addClass('unseen');
            }
        });
        Y.on('lp:context:lifecycle_status:changed', function(e) {
            Y.lp.ui.update_field('#lifecycle-status', e.new_value);
        });
        Y.on('lp:context:is_started:changed', function(e) {
            var started = Y.one('#started-by');
            if (e.new_value) {
              started.removeClass('unseen');
              started.one('dd').setContent(e.entry.getHTML('starter'));
              Y.lp.anim.green_flash({node:started}).run();
            } else {
              started.addClass('unseen');
            }
        });
        Y.on('lp:context:is_complete:changed', function(e) {
            var completed = Y.one('#completed-by');
            if (e.new_value) {
              completed.removeClass('unseen');
              completed.one('dd').setContent(e.entry.getHTML('completer'));
              Y.lp.anim.green_flash({node:completed}).run();
            } else {
              completed.addClass('unseen');
            }
        });
        Y.on('lp:context:title:changed', function(e) {
            // change the window title and breadcrumb.
            Y.lp.ui.update_field('ol.breadcrumbs li:last-child', e.new_value);
            var title = window.document.title;
            title = e.new_value + title.substring(e.old_value.length);
            window.document.title = title;
        });

      });
    </script>

  </div>

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

    <div tal:replace="structure context/@@+portlet-subscribers" />
  </tal:side>
</body>
</html>