Show earlier notifications first

This commit is contained in:
Hugo Peixoto 2022-10-06 15:17:57 +01:00
parent 160c389981
commit e0f76c7aba

View File

@ -57,7 +57,7 @@
<th><%= t('notifications.attributes.status') %></th> <th><%= t('notifications.attributes.status') %></th>
<th><%= t('members.show.contribution_actions') %></th> <th><%= t('members.show.contribution_actions') %></th>
</tr> </tr>
<% @member.notifications.order(to_be_sent_on: :desc).each do |notification| %> <% @member.notifications.order(to_be_sent_on: :asc).each do |notification| %>
<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>