Merge lp:~allenap/launchpad/ui-convert-bug-portlet-x-3.0-bug-427275 into lp:launchpad

Proposed by Gavin Panella
Status: Merged
Merged at revision: not available
Proposed branch: lp:~allenap/launchpad/ui-convert-bug-portlet-x-3.0-bug-427275
Merge into: lp:launchpad
Diff against target: None lines
To merge this branch: bzr merge lp:~allenap/launchpad/ui-convert-bug-portlet-x-3.0-bug-427275
Reviewer Review Type Date Requested Status
Paul Hummer (community) Approve
Review via email: mp+11558@code.launchpad.net
To post a comment you must log in.
Revision history for this message
Gavin Panella (allenap) wrote :

This branch converts all the bug-portlet-*.pt templates to observe 3.0
rules:

  Converted:

    bug-portlet-attachments.pt
    bug-portlet-duplicates.pt
    bug-portlet-questions.pt
    bug-portlet-specs.pt
    bug-portlet-watch.pt

  Tidied:

    bug-portlet-privacy.pt

  No change needed:

    bug-portlet-subscribers-content.pt
    bug-portlet-subscribers.pt
    bug-portlet-notified.pt

  Unused, removed:

    bug-portlet-cve.pt

./bin/test -vvct lp/bugs/.*/stories

Lint free.

Revision history for this message
Paul Hummer (rockstar) wrote :

Thanks for the branch!

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lib/lp/bugs/browser/configure.zcml'
--- lib/lp/bugs/browser/configure.zcml 2009-09-09 09:00:58 +0000
+++ lib/lp/bugs/browser/configure.zcml 2009-09-10 16:14:04 +0000
@@ -1007,9 +1007,6 @@
1007 name="+portlet-duplicates"1007 name="+portlet-duplicates"
1008 template="../templates/bug-portlet-duplicates.pt"/>1008 template="../templates/bug-portlet-duplicates.pt"/>
1009 <browser:page1009 <browser:page
1010 name="+portlet-cve"
1011 template="../templates/bug-portlet-cve.pt"/>
1012 <browser:page
1013 name="+portlet-attachments"1010 name="+portlet-attachments"
1014 template="../templates/bug-portlet-attachments.pt"/>1011 template="../templates/bug-portlet-attachments.pt"/>
1015 <browser:page1012 <browser:page
10161013
=== modified file 'lib/lp/bugs/stories/bugs/xx-bug-create-question.txt'
--- lib/lp/bugs/stories/bugs/xx-bug-create-question.txt 2009-09-04 09:45:19 +0000
+++ lib/lp/bugs/stories/bugs/xx-bug-create-question.txt 2009-09-10 20:38:38 +0000
@@ -93,7 +93,7 @@
93 Bug #10:93 Bug #10:
9494
95 >>> portlet = find_portlet(user_browser.contents, 'Related questions')95 >>> portlet = find_portlet(user_browser.contents, 'Related questions')
96 >>> question_anchor = portlet.div.a96 >>> question_anchor = portlet.a
97 >>> question_anchor97 >>> question_anchor
98 <a href=".../ubuntu/+source/linux-source-2.6.15/+question/...">another98 <a href=".../ubuntu/+source/linux-source-2.6.15/+question/...">another
99 test bug</a>99 test bug</a>
100100
=== modified file 'lib/lp/bugs/templates/bug-portlet-attachments.pt'
--- lib/lp/bugs/templates/bug-portlet-attachments.pt 2009-07-17 17:59:07 +0000
+++ lib/lp/bugs/templates/bug-portlet-attachments.pt 2009-09-10 16:13:39 +0000
@@ -1,37 +1,27 @@
1<div1<div
2 xmlns:tal="http://xml.zope.org/namespaces/tal"2 xmlns:tal="http://xml.zope.org/namespaces/tal"
3 xmlns:metal="http://xml.zope.org/namespaces/metal"3 xmlns:metal="http://xml.zope.org/namespaces/metal"
4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5 class="portlet" id="portlet-attachments"5 class="portlet" id="portlet-attachments"
6 tal:condition="context/attachments"6 tal:condition="context/attachments">
7 tal:define="current_task view/current_bugtask;
8 url current_task/fmt:url"
9>
10
11 <h2>Bug attachments</h2>7 <h2>Bug attachments</h2>
128 <ul>
13 <div class="portletBody">9 <li class="download"
14 <div class="portletContent">10 tal:repeat="attachment context/attachments">
15 <ul>11 <a tal:attributes="href attachment/libraryfile/http_url"
16 <li class="download"12 tal:content="attachment/title"
17 tal:repeat="attachment context/attachments">13 class="sprite download-icon">
18 <a tal:attributes="href attachment/libraryfile/http_url"14 Attachment Title
19 tal:content="attachment/title"15 </a>
20 class="sprite download-icon">16 <small>
21 Attachment Title17 (<a tal:attributes="href attachment/fmt:url">edit</a>)
22 </a>18 </small>
23 <small>19 </li>
24 (<a tal:attributes="href attachment/fmt:url">edit</a>)20 </ul>
25 </small>21 <ul>
26 </li>22 <li>
27 </ul>23 <a tal:attributes="href view/current_bugtask/fmt:url/+addcomment"
28 <ul style="text-align: right">24 class="sprite add">Add</a>
29 <li>25 </li>
30 <a tal:attributes="href string:$url/+addcomment" class="sprite add">26 </ul>
31 Add
32 </a>
33 </li>
34 </ul>
35 </div>
36 </div>
37</div>27</div>
3828
=== removed file 'lib/lp/bugs/templates/bug-portlet-cve.pt'
--- lib/lp/bugs/templates/bug-portlet-cve.pt 2009-07-17 17:59:07 +0000
+++ lib/lp/bugs/templates/bug-portlet-cve.pt 1970-01-01 00:00:00 +0000
@@ -1,25 +0,0 @@
1<div
2 xmlns:tal="http://xml.zope.org/namespaces/tal"
3 xmlns:metal="http://xml.zope.org/namespaces/metal"
4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5 class="portlet" id="portlet-cve" tal:condition="context/cves"
6 tal:define="current_task view/current_bugtask;
7 url current_task/fmt:url"
8>
9 <h2>
10 <abbr title="Common Vulnerabilities and Exposures index">CVE</abbr>
11 references
12 </h2>
13 <div class="portletBody">
14
15 <ul>
16 <li class="cve" tal:repeat="cve context/cves">
17 <a tal:attributes="href cve/fmt:url;
18 title cve/description/fmt:shorten/40"
19 tal:content="cve/sequence"
20 >2002-1342</a>
21 </li>
22 </ul>
23
24 </div>
25</div>
260
=== modified file 'lib/lp/bugs/templates/bug-portlet-duplicates.pt'
--- lib/lp/bugs/templates/bug-portlet-duplicates.pt 2009-07-17 17:59:07 +0000
+++ lib/lp/bugs/templates/bug-portlet-duplicates.pt 2009-09-10 16:13:39 +0000
@@ -1,22 +1,15 @@
1<div1<div
2 xmlns:tal="http://xml.zope.org/namespaces/tal"2 xmlns:tal="http://xml.zope.org/namespaces/tal"
3 xmlns:metal="http://xml.zope.org/namespaces/metal"3 xmlns:metal="http://xml.zope.org/namespaces/metal"
4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5 class="portlet" id="portlet-duplicates"5 class="portlet" id="portlet-duplicates"
6 tal:condition="context/duplicates"6 tal:condition="context/duplicates">
7>
8
9 <h2>Duplicates of this bug</h2>7 <h2>Duplicates of this bug</h2>
108 <ul>
11 <div class="portletBody">9 <li tal:repeat="dupe view/duplicates">
12 <div class="portletContent">10 <a tal:content="string: Bug #${dupe/id}"
13 <div tal:repeat="dupe view/duplicates">11 tal:attributes="href dupe/url; title dupe/title;
14 <a tal:attributes="href dupe/url;12 class context/image:sprite_css" />
15 title dupe/title;13 </li>
16 class context/image:sprite_css">14 </ul>
17 Bug #<span tal:replace="dupe/id">3445</span>
18 </a>
19 </div>
20 </div>
21 </div>
22</div>15</div>
2316
=== modified file 'lib/lp/bugs/templates/bug-portlet-privacy.pt'
--- lib/lp/bugs/templates/bug-portlet-privacy.pt 2009-08-10 21:07:02 +0000
+++ lib/lp/bugs/templates/bug-portlet-privacy.pt 2009-09-10 20:18:28 +0000
@@ -9,28 +9,21 @@
9 tal:define="link context/menu:context/visibility"9 tal:define="link context/menu:context/visibility"
10>10>
11 <div tal:condition="not:context/private" id="privacy-text">11 <div tal:condition="not:context/private" id="privacy-text">
12 <a12 <a class="sprite edit" id="privacy-link"
13 tal:condition="link/enabled"13 tal:attributes="href link/path; title link/text"
14 tal:attributes="href link/path; title link/text"14 tal:condition="link/enabled">This report is public</a>
15 class="sprite edit"15 <tal:unchangeable condition="not:link/enabled">
16 id="privacy-link"16 This report is public
17 >This report is public</a>17 </tal:unchangeable>
18 <tal:unchangeable condition="not:link/enabled"
19 >This report is public</tal:unchangeable>
20 </div>18 </div>
21 <div tal:condition="context/private" id="privacy-text">19 <div tal:condition="context/private" id="privacy-text">
22 <a20 <a class="sprite edit" id="privacy-link"
23 tal:condition="link/enabled"
24 tal:attributes="href link/path; title link/text"21 tal:attributes="href link/path; title link/text"
25 class="sprite edit"22 tal:condition="link/enabled">This report is <strong>private</strong></a>
26 id="privacy-link"23 <tal:unchangeable condition="not:link/enabled">
27 >This report is <strong>private</strong></a>24 This report is private
28 <tal:unchangeable condition="not:link/enabled"25 </tal:unchangeable>
29 >This report is private</tal:unchangeable>
30 </div>26 </div>
31 <div27 <div class="sprite security" id="security-message"
32 tal:condition="context/security_related"28 tal:condition="context/security_related">Security vulnerability</div>
33 class="sprite security"
34 id="security-message"
35 >Security vulnerability</div>
36</div>29</div>
3730
=== modified file 'lib/lp/bugs/templates/bug-portlet-questions.pt'
--- lib/lp/bugs/templates/bug-portlet-questions.pt 2009-07-17 17:59:07 +0000
+++ lib/lp/bugs/templates/bug-portlet-questions.pt 2009-09-10 20:18:28 +0000
@@ -1,24 +1,16 @@
1<div1<div
2 xmlns:tal="http://xml.zope.org/namespaces/tal"2 xmlns:tal="http://xml.zope.org/namespaces/tal"
3 xmlns:metal="http://xml.zope.org/namespaces/metal"3 xmlns:metal="http://xml.zope.org/namespaces/metal"
4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5 class="portlet" id="portlet-questions"5 class="portlet" id="portlet-questions"
6 tal:condition="context/questions"6 tal:condition="context/questions">
7>
8
9 <h2>Related questions</h2>7 <h2>Related questions</h2>
108 <ul>
11 <div class="portletBody portletContent">9 <li tal:repeat="question context/questions" class="question-row">
1210 <span tal:content="question/target/displayname"
13 <ul>11 tal:attributes="class question/image:sprite_css">Ubuntu</span>:
14 <li tal:repeat="question context/questions" class="question-row">12 <a tal:attributes="href question/fmt:url"
15 <span tal:content="question/target/displayname"13 tal:content="question/title">question title here</a>
16 tal:attributes="class question/image:sprite_css">Ubuntu</span>:14 </li>
17 <a tal:attributes="href question/fmt:url"15 </ul>
18 tal:content="question/title">question title here</a>
19 </li>
20 </ul>
21
22 </div>
23
24</div>16</div>
2517
=== modified file 'lib/lp/bugs/templates/bug-portlet-specs.pt'
--- lib/lp/bugs/templates/bug-portlet-specs.pt 2009-07-17 17:59:07 +0000
+++ lib/lp/bugs/templates/bug-portlet-specs.pt 2009-09-10 20:18:28 +0000
@@ -1,15 +1,12 @@
1<div1<div
2 xmlns:tal="http://xml.zope.org/namespaces/tal"2 xmlns:tal="http://xml.zope.org/namespaces/tal"
3 xmlns:metal="http://xml.zope.org/namespaces/metal"3 xmlns:metal="http://xml.zope.org/namespaces/metal"
4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5 class="portlet" id="portlet-blueprints"5 class="portlet" id="portlet-blueprints"
6 tal:condition="context/specifications"6 tal:condition="context/specifications">
7>
8 <h2>Related blueprints</h2>7 <h2>Related blueprints</h2>
9 <div class="portletBody">8 <ul>
10 <table>9 <li tal:repeat="spec context/specifications"
11 <tr tal:repeat="spec context/specifications"10 tal:content="structure spec/fmt:link" />
12 tal:replace="structure spec/@@+listing-compact" />11 </ul>
13 </table>
14 </div>
15</div>12</div>
1613
=== modified file 'lib/lp/bugs/templates/bug-portlet-watch.pt'
--- lib/lp/bugs/templates/bug-portlet-watch.pt 2009-07-17 17:59:07 +0000
+++ lib/lp/bugs/templates/bug-portlet-watch.pt 2009-09-10 20:18:28 +0000
@@ -1,26 +1,21 @@
1<div1<div
2 xmlns:tal="http://xml.zope.org/namespaces/tal"2 xmlns:tal="http://xml.zope.org/namespaces/tal"
3 xmlns:metal="http://xml.zope.org/namespaces/metal"3 xmlns:metal="http://xml.zope.org/namespaces/metal"
4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"4 xmlns:i18n="http://xml.zope.org/namespaces/i18n"
5 class="portlet" id="portlet-watches"5 class="portlet" id="portlet-watches"
6 tal:condition="context/watches"6 tal:condition="context/watches">
7 tal:define="current_task view/current_bugtask;
8 url current_task/fmt:url">
9 <h2>Remote bug watches</h2>7 <h2>Remote bug watches</h2>
10 <div class="portletBody portletContent">8 <ul>
11 <ul style="padding-left:0;">9 <li tal:repeat="watch context/watches">
12 <li tal:repeat="watch context/watches">10 <span class="sprite bug-remote" />
13 <span class="sprite bug-remote" />11 <a tal:replace="structure watch/fmt:external-link" />
14 <a tal:replace="structure watch/fmt:external-link" />12 <tal:block tal:condition="watch/remotestatus">
15 <tal:block tal:condition="watch/remotestatus">13 <br />[<span tal:content="watch/remotestatus" />]
16 <br />[<span tal:content="watch/remotestatus" />]14 </tal:block>&nbsp;<a
17 </tal:block>&nbsp;<a 15 tal:attributes="href watch/fmt:url"
18 tal:attributes="href watch/fmt:url"16 class="sprite edit" alt="Change watch details"
19 class="sprite edit"17 ><span class="invisible-link">[edit]</span></a>
20 alt="Change watch details"18 </li>
21 ><span class="invisible-link">[edit]</span></a>19 </ul>
22 </li>20 <p>Bug watches keep track of this bug in other bug trackers.</p>
23 </ul>
24 <p>Bug watches keep track of this bug in other bug trackers.</p>
25 </div>
26</div>21</div>