Merge pull request #2798 from consul/activity_fix

Adds logic to handle activity actionable attributes
This commit is contained in:
Alberto
2018-07-26 12:58:33 +02:00
committed by GitHub

View File

@@ -33,12 +33,18 @@
<%= activity.actionable.username %> (<%= activity.actionable.email %>)
<% when "Comment" %>
<%= activity.actionable.body %>
<% when "Newsletter" %>
<strong><%= activity.actionable.subject %></strong>
<br>
<%= activity.actionable.body %>
<% when "ProposalNotification" %>
<strong><%= activity.actionable.title %></strong>
<br>
<%= activity.actionable.body %>
<% else %>
<strong><%= activity.actionable.title %></strong>
<br>
<div class="proposal-description">
<%= activity.actionable.description %>
</div>
<%= activity.actionable.description %>
<% end %>
<td class="align-top">
<%= activity.user.name %> (<%= activity.user.email %>)