summaryrefslogtreecommitdiffstats
path: root/client/components/activities/activities.js
diff options
context:
space:
mode:
authorMaxime Quandalle <maxime@quandalle.com>2015-06-13 15:04:55 +0200
committerMaxime Quandalle <maxime@quandalle.com>2015-06-13 15:04:55 +0200
commite001c3409a3911089adddad7bbd0e350aa152cb8 (patch)
tree499484bf1e5a64129440190ebeca72ff33a8dcbd /client/components/activities/activities.js
parentc8945679872a0708eb67a477a99a65d508c84cb0 (diff)
downloadwekan-e001c3409a3911089adddad7bbd0e350aa152cb8.tar.gz
wekan-e001c3409a3911089adddad7bbd0e350aa152cb8.tar.bz2
wekan-e001c3409a3911089adddad7bbd0e350aa152cb8.zip
Fix card attachments
Closes #192.
Diffstat (limited to 'client/components/activities/activities.js')
-rw-r--r--client/components/activities/activities.js16
1 files changed, 5 insertions, 11 deletions
diff --git a/client/components/activities/activities.js b/client/components/activities/activities.js
index 5d95006a..6d796199 100644
--- a/client/components/activities/activities.js
+++ b/client/components/activities/activities.js
@@ -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');