From 22210c46d024839279d9b2ef497aeaa1153c462b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mar=C3=ADa=20Checa?= Date: Fri, 18 May 2018 16:55:18 +0200 Subject: [PATCH] Adds logic to handle activity actionable attributes --- app/views/admin/activity/show.html.erb | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/app/views/admin/activity/show.html.erb b/app/views/admin/activity/show.html.erb index dd4cee125..33f4dc6f1 100644 --- a/app/views/admin/activity/show.html.erb +++ b/app/views/admin/activity/show.html.erb @@ -33,12 +33,18 @@ <%= activity.actionable.username %> (<%= activity.actionable.email %>) <% when "Comment" %> <%= activity.actionable.body %> + <% when "Newsletter" %> + <%= activity.actionable.subject %> +
+ <%= activity.actionable.body %> + <% when "ProposalNotification" %> + <%= activity.actionable.title %> +
+ <%= activity.actionable.body %> <% else %> <%= activity.actionable.title %>
-
- <%= activity.actionable.description %> -
+ <%= activity.actionable.description %> <% end %> <%= activity.user.name %> (<%= activity.user.email %>)