~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/lp/bugs/javascript/subscription.js

  • Committer: Launchpad Patch Queue Manager
  • Date: 2011-05-24 04:51:33 UTC
  • mfrom: (13100.2.1 revert-13092)
  • Revision ID: launchpad@pqm.canonical.com-20110524045133-g53hkxcjwwzlzzjd
[rs=wgrant][rollback=13092] Really revert r13092 this time. It is
 possibly bad.

Show diffs side-by-side

added added

removed removed

Lines of Context:
34
34
namespace._reasons = reasons;
35
35
 
36
36
/* These are components for team participation. */
37
 
var _OF_TEAM = 'of the team {team}, which is ';
 
37
var _OF_TEAM = 'of the team {team}. That team is ';
38
38
var _OF_TEAMS = 'of the teams {teams}.  Those teams are ';
39
39
var _BECAUSE_TEAM_IS = _BECAUSE_YOU_ARE + 'a member ' + _OF_TEAM;
40
40
var _ADMIN_BECAUSE_TEAM_IS = (
293
293
            'innerHTML',
294
294
            safely_render_description(
295
295
                {reason: 'Contact {teams} to request the administrators '+
296
 
                          'make a change.',
 
296
                          'make a change',
297
297
                 vars: {
298
298
                    teams: add_url_element_to_links(
299
299
                        args.teams, '/+contactuser')}}));
1212
1212
        .addClass('subscription-description');
1213
1213
    var action_node = subscription.action(subscription.args);
1214
1214
    if (Y.Lang.isValue(action_node)) {
1215
 
        var div = Y.Node.create('<div />');
1216
 
        div.appendChild(action_node);
1217
 
        div.setStyle('float', 'right')
1218
 
            .setStyle('paddingLeft', '3em');
1219
 
        node.appendChild(div);
 
1215
        node.appendChild(action_node.setStyle('float', 'right'));
1220
1216
    }
1221
1217
    node.appendChild(
1222
 
        Y.Node.create('<div />')
 
1218
        Y.Node.create('<div></div>')
1223
1219
            .addClass('description-text')
1224
1220
            .set('innerHTML',
1225
1221
                 safely_render_description(subscription, extra_data)));