Fix notifications#index when member is nil
This commit is contained in:
parent
b55142d9b8
commit
4eb6d2de05
@ -39,7 +39,13 @@
|
|||||||
<tr>
|
<tr>
|
||||||
<td><%= notification.to_be_sent_on %></td>
|
<td><%= notification.to_be_sent_on %></td>
|
||||||
<td><code><%= notification.template %></code></td>
|
<td><code><%= notification.template %></code></td>
|
||||||
<td><%= link_to notification.member do %><%= notification.member.display_name %> <<%= notification.member.email %>><% end %></td>
|
<td>
|
||||||
|
<% if notification.member %>
|
||||||
|
<%= link_to notification.member do %><%= notification.member.display_name %> <<%= notification.member.email %>><% end %>
|
||||||
|
<% else %>
|
||||||
|
---
|
||||||
|
<% end %>
|
||||||
|
</td>
|
||||||
<td>
|
<td>
|
||||||
<% if notification.status == 'scheduled' %>
|
<% if notification.status == 'scheduled' %>
|
||||||
<%= form_with url: deliver_notification_path(notification) do |form| %>
|
<%= form_with url: deliver_notification_path(notification) do |form| %>
|
||||||
|
Loading…
Reference in New Issue
Block a user