checks for deleted proposals

This commit is contained in:
rgarcia
2016-07-28 16:00:13 +02:00
committed by Julian Herrero
parent 6098fb1188
commit e3eb87addb
4 changed files with 23 additions and 1 deletions

View File

@@ -31,7 +31,13 @@
<td>
<h3>
<%= notification.title %>
<small><%= link_to notification.proposal.title, proposal_path(notification.proposal) %></small>
<small>
<% if notification.proposal.present? %>
<%= link_to notification.proposal.title, proposal_path(notification.proposal) %>
<% else %>
<%= t("admin.stats.proposal_notifications.not_available") %><br>
<% end %>
</small>
</h3>
<p><%= notification.body %></p>
</td>