Fix card attachments

Closes #192.
This commit is contained in:
Maxime Quandalle 2015-06-13 15:04:55 +02:00
parent c894567987
commit e001c3409a
6 changed files with 102 additions and 218 deletions

View file

@ -49,6 +49,10 @@ BlazeComponent.extendComponent({
return TAPi18n.__('this-board');
},
cardLabel: function() {
return TAPi18n.__('this-card');
},
cardLink: function() {
var card = this.currentData().card();
return Blaze.toHTML(HTML.A({
@ -69,16 +73,6 @@ BlazeComponent.extendComponent({
href: attachment.url(),
'class': 'js-open-attachment-viewer'
}, attachment.name()));
}
}).register('activities');
BlazeComponent.extendComponent({
template: function() {
return 'cardActivities';
},
cardLabel: function() {
return TAPi18n.__('this-card');
},
events: function() {
@ -102,4 +96,4 @@ BlazeComponent.extendComponent({
}
}];
}
}).register('cardActivities');
}).register('activities');