Merge lp:~huwshimi/launchpad/what-next-712259 into lp:launchpad

Proposed by Huw Wilkins
Status: Merged
Approved by: Huw Wilkins
Approved revision: no longer in the source branch.
Merged at revision: 13363
Proposed branch: lp:~huwshimi/launchpad/what-next-712259
Merge into: lp:launchpad
Diff against target: 178 lines (+28/-61)
6 files modified
lib/canonical/launchpad/icing/style-3-0.css (+3/-0)
lib/lp/answers/stories/question-obfuscation.txt (+1/-1)
lib/lp/answers/stories/question-workflow.txt (+1/-13)
lib/lp/answers/templates/question-index.pt (+10/-15)
lib/lp/bugs/stories/bugs/xx-bug-index.txt (+3/-14)
lib/lp/bugs/templates/bugtask-index.pt (+10/-18)
To merge this branch: bzr merge lp:~huwshimi/launchpad/what-next-712259
Reviewer Review Type Date Requested Status
Benji York (community) code Approve
Review via email: mp+66030@code.launchpad.net

Commit message

[r=benji][bug=712259] Removed "What next?" info from bug page and "Got a question of your own?" from Question page and replaced with appropriate links in sidebar portlets.

Description of the change

Info boxes at the bottom of pages are hard to find and not that useful. These have been replaced with links in sidebar portlets. This adds consistency to the ui.

On the bug page the "What next?" box at the bottom of the page has been removed. In the sidebar portlet I've added the standard "Report a bug" link.

On the question page the "Got a question of your own?" box at the bottom of the page has been removed. In the sidebar portlet I've added the standard "Ask a question" link.

To post a comment you must log in.
Revision history for this message
Benji York (benji) wrote :

Looks good.

review: Approve (code)
Revision history for this message
Martin Pool (mbp) wrote :

Could we have a screenshot?

Revision history for this message
Huw Wilkins (huwshimi) wrote :

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'lib/canonical/launchpad/icing/style-3-0.css'
--- lib/canonical/launchpad/icing/style-3-0.css 2011-07-01 14:40:36 +0000
+++ lib/canonical/launchpad/icing/style-3-0.css 2011-07-01 15:14:39 +0000
@@ -1447,6 +1447,9 @@
1447 padding: 0;1447 padding: 0;
1448 font-weight: bold;1448 font-weight: bold;
1449 }1449 }
1450.involvement li.single {
1451 border-top: 0;
1452}
1450.involvement a {1453.involvement a {
1451 display: block;1454 display: block;
1452 padding: 0.3em;1455 padding: 0.3em;
14531456
=== modified file 'lib/lp/answers/stories/question-obfuscation.txt'
--- lib/lp/answers/stories/question-obfuscation.txt 2011-03-30 13:17:36 +0000
+++ lib/lp/answers/stories/question-obfuscation.txt 2011-07-01 15:14:39 +0000
@@ -66,7 +66,7 @@
66'Latest questions asked' portlet for Answers front page.66'Latest questions asked' portlet for Answers front page.
6767
68 >>> user_browser.getLink('#9 mailto: problem in webpage').click()68 >>> user_browser.getLink('#9 mailto: problem in webpage').click()
69 >>> user_browser.getLink('ask your own question separately').click()69 >>> user_browser.getLink('Ask a question').click()
70 >>> user_browser.title70 >>> user_browser.title
71 'Ask a question about...71 'Ask a question about...
7272
7373
=== modified file 'lib/lp/answers/stories/question-workflow.txt'
--- lib/lp/answers/stories/question-workflow.txt 2011-05-31 16:48:06 +0000
+++ lib/lp/answers/stories/question-workflow.txt 2011-07-01 15:14:39 +0000
@@ -458,22 +458,10 @@
458 >>> print content.find(id='can-you-help-with-this-problem')458 >>> print content.find(id='can-you-help-with-this-problem')
459 None459 None
460460
461 >>> print content.find(id='ask-your-own-question').h2.renderContents()461 >>> user_browser.getLink('Ask a question').click()
462 Got a question of your own?
463
464 >>> user_browser.getLink('ask your own question separately').click()
465 >>> print user_browser.title462 >>> print user_browser.title
466 Ask a question about...463 Ask a question about...
467464
468The 'Got a question of your own?' section in not relevant to the
469question owner, so Sample person does not see it.
470
471 >>> owner_browser.open('http://launchpad.dev/firefox/+question/2')
472 >>> content = find_tag_by_id(
473 ... owner_browser.contents, 'ask-your-own-question')
474 >>> content is None
475 True
476
477Clean up the feature flag.465Clean up the feature flag.
478466
479 >>> flags.cleanUp()467 >>> flags.cleanUp()
480468
=== modified file 'lib/lp/answers/templates/question-index.pt'
--- lib/lp/answers/templates/question-index.pt 2011-05-16 15:29:15 +0000
+++ lib/lp/answers/templates/question-index.pt 2011-07-01 15:14:39 +0000
@@ -39,6 +39,16 @@
3939
4040
41 <metal:portlets fill-slot="side">41 <metal:portlets fill-slot="side">
42 <div id="involvement" class="portlet">
43 <ul class="involvement">
44 <li class="single">
45 <a tal:attributes="href view/new_question_url"
46 class="sprite answers">
47 Ask a question
48 </a>
49 </li>
50 </ul>
51 </div>
42 <div tal:replace="structure context/@@+global-actions" />52 <div tal:replace="structure context/@@+global-actions" />
43 <div tal:replace="structure context/@@+portlet-subscribers" />53 <div tal:replace="structure context/@@+portlet-subscribers" />
44 </metal:portlets>54 </metal:portlets>
@@ -171,21 +181,6 @@
171 </div>181 </div>
172 </tal:not-logged-in>182 </tal:not-logged-in>
173 </div>183 </div>
174
175 <div
176 class="related"
177 id="ask-your-own-question"
178 xml:lang="en" lang="en" dir="ltr"
179 tal:condition="not: view/is_question_owner"
180 >
181 <h2>Got a question of your own?</h2>
182
183 <p>For best results,
184 <a href="+addquestion"
185 tal:attributes="href view/new_question_url">ask your own question
186 separately</a>.
187 </p>
188 </div>
189 </div>184 </div>
190 </body>185 </body>
191</html>186</html>
192187
=== modified file 'lib/lp/bugs/stories/bugs/xx-bug-index.txt'
--- lib/lp/bugs/stories/bugs/xx-bug-index.txt 2010-05-19 05:47:50 +0000
+++ lib/lp/bugs/stories/bugs/xx-bug-index.txt 2011-07-01 15:14:39 +0000
@@ -105,27 +105,16 @@
105 Assigned: 2005-01-17105 Assigned: 2005-01-17
106 ...106 ...
107107
108The bug page ends with links to report another bug, and to list open108The bug page includes a link to report another bug.
109bugs.
110109
111 >>> user_browser.open('http://bugs.launchpad.dev/firefox/+bug/1')110 >>> user_browser.open('http://bugs.launchpad.dev/firefox/+bug/1')
112 >>> related = find_tags_by_class(user_browser.contents, 'related')[0]111 >>> print user_browser.getLink('Report a bug').url
113 >>> print extract_text(related)
114 What next?...
115 >>> print user_browser.getLink('Report another bug').url
116 http://bugs.launchpad.dev/firefox/+filebug112 http://bugs.launchpad.dev/firefox/+filebug
117 >>> print user_browser.getLink('List open bugs').url
118 http://bugs.launchpad.dev/firefox/+bugs
119113
120 >>> user_browser.open(114 >>> user_browser.open(
121 ... 'http://launchpad.dev/ubuntu/+source/mozilla-firefox/+bug/1')115 ... 'http://launchpad.dev/ubuntu/+source/mozilla-firefox/+bug/1')
122 >>> related = find_tags_by_class(user_browser.contents, 'related')[0]116 >>> print user_browser.getLink('Report a bug').url
123 >>> print extract_text(related)
124 What next?...
125 >>> print user_browser.getLink('Report another bug').url
126 http://launchpad.dev/ubuntu/+source/mozilla-firefox/+filebug117 http://launchpad.dev/ubuntu/+source/mozilla-firefox/+filebug
127 >>> print user_browser.getLink('List open bugs').url
128 http://launchpad.dev/ubuntu/+source/mozilla-firefox/+bugs
129118
130There's also a link on the page that will take the user to the "Add119There's also a link on the page that will take the user to the "Add
131attachment or patch" page, for use when JavaScript isn't available.120attachment or patch" page, for use when JavaScript isn't available.
132121
=== modified file 'lib/lp/bugs/templates/bugtask-index.pt'
--- lib/lp/bugs/templates/bugtask-index.pt 2011-06-17 10:31:55 +0000
+++ lib/lp/bugs/templates/bugtask-index.pt 2011-07-01 15:14:39 +0000
@@ -73,6 +73,16 @@
73 </metal:block>73 </metal:block>
7474
75 <metal:side fill-slot="side" tal:define="context_menu context/menu:context">75 <metal:side fill-slot="side" tal:define="context_menu context/menu:context">
76 <div id="involvement" class="portlet">
77 <ul class="involvement">
78 <li class="single">
79 <a tal:attributes="href string:${context/target/fmt:url}/+filebug"
80 class="sprite bugs">
81 Report a bug
82 </a>
83 </li>
84 </ul>
85 </div>
76 <div tal:replace="structure context/bug/@@+portlet-privacy" />86 <div tal:replace="structure context/bug/@@+portlet-privacy" />
77 <div tal:replace="structure context/bug/@@+portlet-actions" />87 <div tal:replace="structure context/bug/@@+portlet-actions" />
78 <div tal:replace="structure context/bug/@@+portlet-duplicates" />88 <div tal:replace="structure context/bug/@@+portlet-duplicates" />
@@ -367,24 +377,6 @@
367 </tal:comment-list-truncated>377 </tal:comment-list-truncated>
368 </tal:comments>378 </tal:comments>
369379
370 <div class="related">
371 <h2>What next?</h2>
372 <ul>
373 <li>
374 <a
375 tal:attributes="href string:${context/target/fmt:url}/+filebug"
376 >Report another bug</a>
377 about <tal:context replace="context/target/displayname" />
378 </li>
379 <li>
380 <a
381 tal:attributes="href string:${context/target/fmt:url}/+bugs"
382 >List open bugs</a>
383 for <tal:context replace="context/target/displayname" />
384 </li>
385 </ul>
386 </div>
387
388 </div><!-- class="top-portlet" -->380 </div><!-- class="top-portlet" -->
389 </div><!-- id="nonportlets"-->381 </div><!-- id="nonportlets"-->
390 </div><!--- id="maincontentsub"-->382 </div><!--- id="maincontentsub"-->