Merge lp:~benji/launchpad/bug-771269 into lp:launchpad

Proposed by Benji York
Status: Merged
Approved by: Benji York
Approved revision: no longer in the source branch.
Merged at revision: 12944
Proposed branch: lp:~benji/launchpad/bug-771269
Merge into: lp:launchpad
Diff against target: 71 lines (+32/-17)
1 file modified
lib/lp/registry/javascript/structural-subscription.js (+32/-17)
To merge this branch: bzr merge lp:~benji/launchpad/bug-771269
Reviewer Review Type Date Requested Status
Graham Binns (community) code Approve
Review via email: mp+59090@code.launchpad.net

Commit message

[r=gmb][bug=771260,771269] make a few small UI improvements

Description of the change

This branch fixes bug 771260 ("In the 'bugs must match this filter' accordion we should state that tags are space separated, without having to click a help pop-up") and bug 771269 ("Structural subscription description is hard to read") as well as making proper labels for the all/any tags radio buttons so the click targets aren't so painfully small.

The branch is lint-free.

To post a comment you must log in.
Revision history for this message
Graham Binns (gmb) :
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/registry/javascript/structural-subscription.js'
2--- lib/lp/registry/javascript/structural-subscription.js 2011-04-21 21:13:49 +0000
3+++ lib/lp/registry/javascript/structural-subscription.js 2011-04-26 15:41:47 +0000
4@@ -506,21 +506,35 @@
5 } );
6 tags_container = tags_ai;
7 tags_ai.set("bodyContent", Y.Node.create('<div><div></div></div>')
8- .append(Y.Node.create('<input type="radio" name="tag_match" checked>')
9- .set('value', MATCH_ALL))
10- .append('Match all tags')
11- .append(Y.Node.create('<input type="radio" name="tag_match" checked>')
12- .set('value', MATCH_ANY))
13- .append('Match any tags')
14- .append(
15- '<div style="padding-bottom:10px;">' +
16- ' <input type="text" name="tags" size="50"/>' +
17- ' <a target="help"'+
18- ' href="/+help/structural-subscription-tags.html" ' +
19- ' class="sprite maybe">&nbsp;'+
20- '<span class="invisible-link">Structural subscription tags '+
21- ' help</span></a> ' +
22- '</div>'));
23+ .append(Y.Node.create('<label/>')
24+ .append(Y.Node.create('<input/>')
25+ .set('type', 'radio')
26+ .set('name', 'tag_match')
27+ .set('checked', 'checked')
28+ .set('value', MATCH_ALL))
29+ .append('Match all tags'))
30+ .append(Y.Node.create('<label/>')
31+ .append(Y.Node.create('<input/>')
32+ .set('type', 'radio')
33+ .set('name', 'tag_match')
34+ .set('value', MATCH_ANY))
35+ .append('Match any tags'))
36+ .append(Y.Node.create('<div/>')
37+ .append(Y.Node.create('<input/>')
38+ .set('type', 'text')
39+ .set('name', 'tags')
40+ .set('size', '50'))
41+ .append(Y.Node.create('<a/>')
42+ .set('target', 'help')
43+ .set('href', '/+help/structural-subscription-tags.html')
44+ .addClass('sprite')
45+ .addClass('maybe')
46+ .append(Y.Node.create('<span/>')
47+ .addClass('invisible-link')
48+ .set('text', 'Structural subscription tags help')))
49+ .append(Y.Node.create('<div/>')
50+ .setStyle('paddingBottom', '10px')
51+ .set('text', 'Separate tags with a space'))));
52 accordion.addItem(tags_ai);
53
54 // Build importances pane.
55@@ -1325,13 +1339,14 @@
56 // Format status conditions.
57 if (filter.statuses.length !== 0) {
58 filter_items.push(Y.Node.create('<li></li>')
59- .set('text', 'have status '+filter.statuses.join(', ')));
60+ .set('text', 'have the status(es): '+filter.statuses.join(', ')));
61 }
62
63 // Format importance conditions.
64 if (filter.importances.length !== 0) {
65 filter_items.push(Y.Node.create('<li></li>')
66- .set('text', 'are of importance '+filter.importances.join(', ')));
67+ .set('text',
68+ 'are of importance: '+filter.importances.join(', ')));
69 }
70
71 // Format tag conditions.