34
34
namespace._reasons = reasons;
36
36
/* These are components for team participation. */
37
var _OF_TEAM = 'of the team {team}. That team is ';
38
var _OF_TEAMS = 'of the teams {teams}. Those teams are ';
37
var _OF_TEAM = 'of the team {team}, which is ';
38
var _OF_TEAMS = 'of the teams {teams}, which are ';
39
39
var _BECAUSE_TEAM_IS = _BECAUSE_YOU_ARE + 'a member ' + _OF_TEAM;
40
40
var _ADMIN_BECAUSE_TEAM_IS = (
41
41
_BECAUSE_YOU_ARE + 'a member and administrator ' + _OF_TEAM);
1208
1208
* class 'description-text'.
1210
1210
function get_single_description_node(subscription, extra_data) {
1211
var node = Y.Node.create('<div></div>')
1211
var node = Y.Node.create('<div />')
1212
.setStyle('display', 'table')
1213
.setStyle('width', '100%')
1212
1214
.addClass('subscription-description');
1213
var action_node = subscription.action(subscription.args);
1214
if (Y.Lang.isValue(action_node)) {
1215
node.appendChild(action_node.setStyle('float', 'right'));
1217
1215
node.appendChild(
1218
Y.Node.create('<div></div>')
1216
Y.Node.create('<div />')
1219
1217
.addClass('description-text')
1218
.setStyle('display', 'table-cell')
1219
.setStyle('width', '60%')
1220
1220
.set('innerHTML',
1221
1221
safely_render_description(subscription, extra_data)));
1222
var action_node = subscription.action(subscription.args);
1223
if (Y.Lang.isValue(action_node)) {
1224
var div = Y.Node.create('<div />');
1225
div.appendChild(action_node);
1226
div.setStyle('display', 'table-cell')
1227
.setStyle('paddingLeft', '5em')
1228
.setStyle('text-align', 'right');
1229
node.appendChild(div);
1224
1233
namespace._get_single_description_node = get_single_description_node;