Merge pull request #2798 from consul/activity_fix
Adds logic to handle activity actionable attributes
This commit is contained in:
@@ -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 %>)
|
||||
|
||||
Reference in New Issue
Block a user