Merge lp:~ivo-kracht/launchpad/bug-436663 into lp:launchpad

Proposed by Ivo Kracht
Status: Merged
Approved by: Abel Deuring
Approved revision: no longer in the source branch.
Merged at revision: 15518
Proposed branch: lp:~ivo-kracht/launchpad/bug-436663
Merge into: lp:launchpad
Diff against target: 82 lines (+14/-16)
3 files modified
lib/lp/code/stories/branches/xx-branchmergeproposals.txt (+7/-4)
lib/lp/code/templates/branchmergeproposal-index.pt (+0/-12)
lib/lp/code/templates/branchmergeproposal-pagelet-summary.pt (+7/-0)
To merge this branch: bzr merge lp:~ivo-kracht/launchpad/bug-436663
Reviewer Review Type Date Requested Status
Curtis Hovey (community) ui Approve
Jelmer Vernooij (community) code Approve
Review via email: mp+112576@code.launchpad.net

Commit message

moving the "related bugs and blueprints" section further up on the page to make it more visible

Description of the change

Moved the bug- and blueprint links further up so they are much easier to see. It appears now dircetly under “To merge this branch:“ in the merge proposal.

Pre-imp call with adeuring

test:
./bin/test code -vvt xx-branchmergeproposals.txt

= Launchpad lint =

Checking for conflicts and issues in changed files.

Linting changed files:
  lib/lp/code/stories/branches/xx-branchmergeproposals.txt
  lib/lp/code/templates/branchmergeproposal-index.pt
  lib/lp/code/templates/branchmergeproposal-pagelet-summary.pt

./lib/lp/code/stories/branches/xx-branchmergeproposals.txt
      16: Could not compile:
        BranchSubscriptionNotificationLevel, CodeReviewNotificationLevel)

This was not created by my changes, I did not fix it.

To post a comment you must log in.
Revision history for this message
Jelmer Vernooij (jelmer) wrote :

Thanks, the code for this looks good.

It would be nice if a UI reviewer could also have a look at the UI side of this change.

review: Approve (code)
Revision history for this message
Curtis Hovey (sinzui) wrote :

This is good UI improvement and I want it to land. This page uses Lp 2.0 layout design, which is a separate problem and I suspect we will not fix.

review: Approve (ui)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/code/stories/branches/xx-branchmergeproposals.txt'
2--- lib/lp/code/stories/branches/xx-branchmergeproposals.txt 2012-06-16 13:27:45 +0000
3+++ lib/lp/code/stories/branches/xx-branchmergeproposals.txt 2012-06-28 14:24:30 +0000
4@@ -201,7 +201,8 @@
5
6 >>> nopriv_browser.open(klingon_proposal)
7 >>> nopriv_browser.getLink('Add a review or comment').click()
8- >>> nopriv_browser.getControl(name='field.comment').value = "Don't like it"
9+ >>> nopriv_browser.getControl(name='field.comment').value = (
10+ ... "Don't like it")
11 >>> nopriv_browser.getControl(name='field.vote').getControl(
12 ... 'Disapprove').click()
13 >>> nopriv_browser.getControl('Save Comment').click()
14@@ -209,7 +210,8 @@
15 ... nopriv_browser.contents, 'code-review-votes')
16 >>> print extract_text(pending)
17 Reviewer Review Type Date Requested Status
18- No Privileges Person (community) Disapprove ...
19+ No Privileges Person (community) Disapprove
20+ ...
21
22 People can claim reviews for teams of which they are a member.
23
24@@ -545,7 +547,7 @@
25
26 >>> nopriv_browser.open(bmp_url)
27 >>> print_bugs_and_specs(nopriv_browser)
28- Bug #...: Bug for linking Undecided New
29+ Related bugs and blueprints: Bug #...: Bug for linking Undecided New
30
31
32 Target branch edge cases
33@@ -659,7 +661,8 @@
34 Preview diff generation status
35 ------------------------------
36
37- >>> update = find_tag_by_id(nopriv_browser.contents, 'diff-pending-update')
38+ >>> update = find_tag_by_id(
39+ ... nopriv_browser.contents, 'diff-pending-update')
40 >>> print extract_text(update)
41 Updating diff...
42 An updated diff will be available in a few minutes. Reload to see the
43
44=== modified file 'lib/lp/code/templates/branchmergeproposal-index.pt'
45--- lib/lp/code/templates/branchmergeproposal-index.pt 2012-05-15 16:51:06 +0000
46+++ lib/lp/code/templates/branchmergeproposal-index.pt 2012-06-28 14:24:30 +0000
47@@ -114,18 +114,6 @@
48 <tal:widget replace="structure view/description_html"/>
49 </div>
50
51- <div class="yui-g" tal:condition="view/has_bug_or_spec">
52- <div id="related-bugs-and-blueprints" class="related-bugs-list"
53- tal:define="branch context/source_branch">
54- <div class="actions">
55- <metal:bug-branch-links use-macro="branch/@@+macros/bug-branch-links"/>
56- </div>
57- <div class="actions">
58- <metal:spec-branch-links use-macro="branch/@@+macros/spec-branch-links"/>
59- </div>
60- </div>
61- </div>
62-
63 <div class="yui-g">
64 <tal:not-logged-in condition="not: view/user">
65 <div align="center" id="add-comment-login-first">
66
67=== modified file 'lib/lp/code/templates/branchmergeproposal-pagelet-summary.pt'
68--- lib/lp/code/templates/branchmergeproposal-pagelet-summary.pt 2012-01-03 15:38:19 +0000
69+++ lib/lp/code/templates/branchmergeproposal-pagelet-summary.pt 2012-06-28 14:24:30 +0000
70@@ -143,5 +143,12 @@
71 <th>To merge this branch:</th>
72 <td>bzr merge <span class="branch-url" tal:content="context/source_branch/bzr_identity" /></td>
73 </tr>
74+ <tr id="related-bugs-and-blueprints" tal:condition="view/has_bug_or_spec" >
75+ <th>Related bugs and blueprints:</th>
76+ <td tal:define="branch context/source_branch">
77+ <metal:bug-branch-links use-macro="branch/@@+macros/bug-branch-links"/>
78+ <metal:spec-branch-links use-macro="branch/@@+macros/spec-branch-links"/>
79+ </td>
80+ </tr>
81 </tbody>
82 </table>