diff --git a/src/app/components/noosfero-activities/activity/activity.directive.js b/src/app/components/noosfero-activities/activity/activity.directive.js index 7905ec3..1e73ab9 100644 --- a/src/app/components/noosfero-activities/activity/activity.directive.js +++ b/src/app/components/noosfero-activities/activity/activity.directive.js @@ -13,9 +13,20 @@ activity: '=', }, templateUrl: 'app/components/noosfero-activities/activity/activity.html', - replace: true + replace: true, + controller: ActivityController, + controllerAs: 'vm', + bindToController: true }; return directive; + + /** @ngInject */ + function ActivityController() { + var vm = this; + vm.getActivityTemplate = function(activity) { + return 'app/components/noosfero-activities/activity/' + activity.verb + '.html'; + } + } } })(); diff --git a/src/app/components/noosfero-activities/activity/activity.html b/src/app/components/noosfero-activities/activity/activity.html index 8662e91..63eb36b 100644 --- a/src/app/components/noosfero-activities/activity/activity.html +++ b/src/app/components/noosfero-activities/activity/activity.html @@ -1,12 +1,3 @@
-
-
-
-

{{activity.verb}}

-

-
-
-
{{activity}}
-
-
+
diff --git a/src/app/components/noosfero-activities/activity/add_member_in_community.html b/src/app/components/noosfero-activities/activity/add_member_in_community.html new file mode 100644 index 0000000..e1faf27 --- /dev/null +++ b/src/app/components/noosfero-activities/activity/add_member_in_community.html @@ -0,0 +1,8 @@ +
+
+
+

has joined the community

+

+
+
+
diff --git a/src/app/components/noosfero-activities/activity/create_article.html b/src/app/components/noosfero-activities/activity/create_article.html new file mode 100644 index 0000000..4857ded --- /dev/null +++ b/src/app/components/noosfero-activities/activity/create_article.html @@ -0,0 +1,19 @@ +
+
+
+

+ has published on community +

+

+
+
+
+ +
+
+
+
+
+
-- libgit2 0.21.2