~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/registry/javascript/structural-subscription.js

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-04-28 17:07:38 UTC
  • mfrom: (12919.4.2 bug-771269)
  • Revision ID: launchpad@pqm.canonical.com-20110428170738-76nhr965gqco05si
[r=gmb][bug=771260,771269] make a few small UI improvements

Show diffs side-by-side

added added

removed removed

Lines of Context:
513
513
    } );
514
514
    tags_container = tags_ai;
515
515
    tags_ai.set("bodyContent", Y.Node.create('<div><div></div></div>')
516
 
        .append(Y.Node.create('<input type="radio" name="tag_match" checked>')
517
 
            .set('value', MATCH_ALL))
518
 
        .append('Match all tags')
519
 
        .append(Y.Node.create('<input type="radio" name="tag_match" checked>')
520
 
            .set('value', MATCH_ANY))
521
 
        .append('Match any tags')
522
 
        .append(
523
 
        '<div style="padding-bottom:10px;">' +
524
 
        '    <input type="text" name="tags" size="50"/>' +
525
 
        '    <a target="help"'+
526
 
        '        href="/+help/structural-subscription-tags.html" ' +
527
 
        '        class="sprite maybe">&nbsp;'+
528
 
               '<span class="invisible-link">Structural subscription tags '+
529
 
        '       help</span></a> ' +
530
 
        '</div>'));
 
516
        .append(Y.Node.create('<label/>')
 
517
            .append(Y.Node.create('<input/>')
 
518
                .set('type', 'radio')
 
519
                .set('name', 'tag_match')
 
520
                .set('checked', 'checked')
 
521
                .set('value', MATCH_ALL))
 
522
            .append('Match all tags'))
 
523
        .append(Y.Node.create('<label/>')
 
524
            .append(Y.Node.create('<input/>')
 
525
                .set('type', 'radio')
 
526
                .set('name', 'tag_match')
 
527
                .set('value', MATCH_ANY))
 
528
            .append('Match any tags'))
 
529
        .append(Y.Node.create('<div/>')
 
530
            .append(Y.Node.create('<input/>')
 
531
                .set('type', 'text')
 
532
                .set('name', 'tags')
 
533
                .set('size', '50'))
 
534
            .append(Y.Node.create('<a/>')
 
535
                .set('target', 'help')
 
536
                .set('href', '/+help/structural-subscription-tags.html')
 
537
                .addClass('sprite')
 
538
                .addClass('maybe')
 
539
                .append(Y.Node.create('<span/>')
 
540
                    .addClass('invisible-link')
 
541
                    .set('text', 'Structural subscription tags help')))
 
542
        .append(Y.Node.create('<div/>')
 
543
            .setStyle('paddingBottom', '10px')
 
544
            .set('text', 'Separate tags with a space'))));
531
545
    accordion.addItem(tags_ai);
532
546
 
533
547
    // Build importances pane.
1332
1346
    // Format status conditions.
1333
1347
    if (filter.statuses.length !== 0) {
1334
1348
        filter_items.push(Y.Node.create('<li></li>')
1335
 
            .set('text', 'have status '+filter.statuses.join(', ')));
 
1349
            .set('text', 'have the status(es): '+filter.statuses.join(', ')));
1336
1350
    }
1337
1351
 
1338
1352
    // Format importance conditions.
1339
1353
    if (filter.importances.length !== 0) {
1340
1354
        filter_items.push(Y.Node.create('<li></li>')
1341
 
            .set('text', 'are of importance '+filter.importances.join(', ')));
 
1355
            .set('text',
 
1356
                'are of importance: '+filter.importances.join(', ')));
1342
1357
    }
1343
1358
 
1344
1359
    // Format tag conditions.