Merge lp:~wallyworld/launchpad/edit-sharing-policies-1040336 into lp:launchpad

Proposed by Ian Booth on 2012-08-23
Status: Merged
Approved by: Ian Booth on 2012-08-23
Approved revision: no longer in the source branch.
Merged at revision: 15853
Proposed branch: lp:~wallyworld/launchpad/edit-sharing-policies-1040336
Merge into: lp:launchpad
Diff against target: 57 lines (+7/-4)
3 files modified
lib/lp/app/javascript/choiceedit/assets/choiceedit-core.css (+1/-0)
lib/lp/registry/javascript/sharing/pillarsharingview.js (+4/-2)
lib/lp/registry/templates/pillar-sharing.pt (+2/-2)
To merge this branch: bzr merge lp:~wallyworld/launchpad/edit-sharing-policies-1040336
Reviewer Review Type Date Requested Status
Steve Kowalik (community) code 2012-08-23 Approve on 2012-08-23
Review via email: mp+120894@code.launchpad.net

Commit Message

Fix rendering of choice source popup widget used to edit project sharing policies.

Description of the Change

Just a couple of small tweaks:

1. Anchor elements to activate the popups defined in the TAL were missing hrefs
2. Popup items did not have style defined to be choice-description
3. choice-description css rule needed to have "whitespace: normal" to prevent wrapping. This is a global change. Till now, all descriptions have been short so it has not been an issue.

To post a comment you must log in.
Steve Kowalik (stevenk) wrote :

So I'm concerned about the possible fallout with white-space: normal. Please check that careful when it hits qas.

review: Approve (code)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'lib/lp/app/javascript/choiceedit/assets/choiceedit-core.css'
2--- lib/lp/app/javascript/choiceedit/assets/choiceedit-core.css 2012-06-06 21:38:11 +0000
3+++ lib/lp/app/javascript/choiceedit/assets/choiceedit-core.css 2012-08-23 00:40:25 +0000
4@@ -53,6 +53,7 @@
5 font-weight: normal;
6 padding: 0;
7 color: #666;
8+ white-space: normal;
9 }
10 .yui3-ichoicelist-content .choice-link:hover {
11 text-decoration: underline;
12
13=== modified file 'lib/lp/registry/javascript/sharing/pillarsharingview.js'
14--- lib/lp/registry/javascript/sharing/pillarsharingview.js 2012-08-17 00:06:40 +0000
15+++ lib/lp/registry/javascript/sharing/pillarsharingview.js 2012-08-23 00:40:25 +0000
16@@ -158,7 +158,8 @@
17 choice_items.push({
18 value: 'LEGACY',
19 name: 'Legacy policy',
20- description: this.get('legacy_sharing_policy_description')
21+ description: this.get('legacy_sharing_policy_description'),
22+ description_css_class: 'choice-description'
23 });
24 }
25 choice_items.push.apply(
26@@ -259,7 +260,8 @@
27 info.push({
28 value: policy.title,
29 name: policy.title,
30- description: policy.description
31+ description: policy.description,
32+ description_css_class: 'choice-description'
33 });
34 });
35 return info;
36
37=== modified file 'lib/lp/registry/templates/pillar-sharing.pt'
38--- lib/lp/registry/templates/pillar-sharing.pt 2012-08-16 00:06:25 +0000
39+++ lib/lp/registry/templates/pillar-sharing.pt 2012-08-23 00:40:25 +0000
40@@ -43,7 +43,7 @@
41 <td id="branch-sharing-policy">
42 Branches sharing policy:&nbsp;
43 <strong><span class="value"></span></strong>
44- <a class="editicon sprite edit action-icon"
45+ <a class="editicon sprite edit action-icon" href="#"
46 style="padding-bottom: 0;">Edit</a>
47 <div id="branch-sharing-policy-description" class="formHelp"></div>
48 </td>
49@@ -53,7 +53,7 @@
50 <td id="bug-sharing-policy">
51 Bugs sharing policy:&nbsp;
52 <strong><span class="value"></span></strong>
53- <a class="editicon sprite edit action-icon"
54+ <a class="editicon sprite edit action-icon" href="#"
55 style="padding-bottom: 0;">Edit</a>
56 <div id="bug-sharing-policy-description" class="formHelp"></div>
57 </td>