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
1=== modified file 'lib/canonical/launchpad/icing/style-3-0.css'
2--- lib/canonical/launchpad/icing/style-3-0.css 2011-07-01 14:40:36 +0000
3+++ lib/canonical/launchpad/icing/style-3-0.css 2011-07-01 15:14:39 +0000
4@@ -1447,6 +1447,9 @@
5 padding: 0;
6 font-weight: bold;
7 }
8+.involvement li.single {
9+ border-top: 0;
10+}
11 .involvement a {
12 display: block;
13 padding: 0.3em;
14
15=== modified file 'lib/lp/answers/stories/question-obfuscation.txt'
16--- lib/lp/answers/stories/question-obfuscation.txt 2011-03-30 13:17:36 +0000
17+++ lib/lp/answers/stories/question-obfuscation.txt 2011-07-01 15:14:39 +0000
18@@ -66,7 +66,7 @@
19 'Latest questions asked' portlet for Answers front page.
20
21 >>> user_browser.getLink('#9 mailto: problem in webpage').click()
22- >>> user_browser.getLink('ask your own question separately').click()
23+ >>> user_browser.getLink('Ask a question').click()
24 >>> user_browser.title
25 'Ask a question about...
26
27
28=== modified file 'lib/lp/answers/stories/question-workflow.txt'
29--- lib/lp/answers/stories/question-workflow.txt 2011-05-31 16:48:06 +0000
30+++ lib/lp/answers/stories/question-workflow.txt 2011-07-01 15:14:39 +0000
31@@ -458,22 +458,10 @@
32 >>> print content.find(id='can-you-help-with-this-problem')
33 None
34
35- >>> print content.find(id='ask-your-own-question').h2.renderContents()
36- Got a question of your own?
37-
38- >>> user_browser.getLink('ask your own question separately').click()
39+ >>> user_browser.getLink('Ask a question').click()
40 >>> print user_browser.title
41 Ask a question about...
42
43-The 'Got a question of your own?' section in not relevant to the
44-question owner, so Sample person does not see it.
45-
46- >>> owner_browser.open('http://launchpad.dev/firefox/+question/2')
47- >>> content = find_tag_by_id(
48- ... owner_browser.contents, 'ask-your-own-question')
49- >>> content is None
50- True
51-
52 Clean up the feature flag.
53
54 >>> flags.cleanUp()
55
56=== modified file 'lib/lp/answers/templates/question-index.pt'
57--- lib/lp/answers/templates/question-index.pt 2011-05-16 15:29:15 +0000
58+++ lib/lp/answers/templates/question-index.pt 2011-07-01 15:14:39 +0000
59@@ -39,6 +39,16 @@
60
61
62 <metal:portlets fill-slot="side">
63+ <div id="involvement" class="portlet">
64+ <ul class="involvement">
65+ <li class="single">
66+ <a tal:attributes="href view/new_question_url"
67+ class="sprite answers">
68+ Ask a question
69+ </a>
70+ </li>
71+ </ul>
72+ </div>
73 <div tal:replace="structure context/@@+global-actions" />
74 <div tal:replace="structure context/@@+portlet-subscribers" />
75 </metal:portlets>
76@@ -171,21 +181,6 @@
77 </div>
78 </tal:not-logged-in>
79 </div>
80-
81- <div
82- class="related"
83- id="ask-your-own-question"
84- xml:lang="en" lang="en" dir="ltr"
85- tal:condition="not: view/is_question_owner"
86- >
87- <h2>Got a question of your own?</h2>
88-
89- <p>For best results,
90- <a href="+addquestion"
91- tal:attributes="href view/new_question_url">ask your own question
92- separately</a>.
93- </p>
94- </div>
95 </div>
96 </body>
97 </html>
98
99=== modified file 'lib/lp/bugs/stories/bugs/xx-bug-index.txt'
100--- lib/lp/bugs/stories/bugs/xx-bug-index.txt 2010-05-19 05:47:50 +0000
101+++ lib/lp/bugs/stories/bugs/xx-bug-index.txt 2011-07-01 15:14:39 +0000
102@@ -105,27 +105,16 @@
103 Assigned: 2005-01-17
104 ...
105
106-The bug page ends with links to report another bug, and to list open
107-bugs.
108+The bug page includes a link to report another bug.
109
110 >>> user_browser.open('http://bugs.launchpad.dev/firefox/+bug/1')
111- >>> related = find_tags_by_class(user_browser.contents, 'related')[0]
112- >>> print extract_text(related)
113- What next?...
114- >>> print user_browser.getLink('Report another bug').url
115+ >>> print user_browser.getLink('Report a bug').url
116 http://bugs.launchpad.dev/firefox/+filebug
117- >>> print user_browser.getLink('List open bugs').url
118- http://bugs.launchpad.dev/firefox/+bugs
119
120 >>> user_browser.open(
121 ... 'http://launchpad.dev/ubuntu/+source/mozilla-firefox/+bug/1')
122- >>> related = find_tags_by_class(user_browser.contents, 'related')[0]
123- >>> print extract_text(related)
124- What next?...
125- >>> print user_browser.getLink('Report another bug').url
126+ >>> print user_browser.getLink('Report a bug').url
127 http://launchpad.dev/ubuntu/+source/mozilla-firefox/+filebug
128- >>> print user_browser.getLink('List open bugs').url
129- http://launchpad.dev/ubuntu/+source/mozilla-firefox/+bugs
130
131 There's also a link on the page that will take the user to the "Add
132 attachment or patch" page, for use when JavaScript isn't available.
133
134=== modified file 'lib/lp/bugs/templates/bugtask-index.pt'
135--- lib/lp/bugs/templates/bugtask-index.pt 2011-06-17 10:31:55 +0000
136+++ lib/lp/bugs/templates/bugtask-index.pt 2011-07-01 15:14:39 +0000
137@@ -73,6 +73,16 @@
138 </metal:block>
139
140 <metal:side fill-slot="side" tal:define="context_menu context/menu:context">
141+ <div id="involvement" class="portlet">
142+ <ul class="involvement">
143+ <li class="single">
144+ <a tal:attributes="href string:${context/target/fmt:url}/+filebug"
145+ class="sprite bugs">
146+ Report a bug
147+ </a>
148+ </li>
149+ </ul>
150+ </div>
151 <div tal:replace="structure context/bug/@@+portlet-privacy" />
152 <div tal:replace="structure context/bug/@@+portlet-actions" />
153 <div tal:replace="structure context/bug/@@+portlet-duplicates" />
154@@ -367,24 +377,6 @@
155 </tal:comment-list-truncated>
156 </tal:comments>
157
158- <div class="related">
159- <h2>What next?</h2>
160- <ul>
161- <li>
162- <a
163- tal:attributes="href string:${context/target/fmt:url}/+filebug"
164- >Report another bug</a>
165- about <tal:context replace="context/target/displayname" />
166- </li>
167- <li>
168- <a
169- tal:attributes="href string:${context/target/fmt:url}/+bugs"
170- >List open bugs</a>
171- for <tal:context replace="context/target/displayname" />
172- </li>
173- </ul>
174- </div>
175-
176 </div><!-- class="top-portlet" -->
177 </div><!-- id="nonportlets"-->
178 </div><!--- id="maincontentsub"-->