Refactors li element

This commit is contained in:
rgarcia
2017-12-12 13:36:38 +01:00
parent c63c734ec2
commit 7465a8ef8e

View File

@@ -1,5 +1,5 @@
<% if notification.notifiable.present? %>
<li id="<%= dom_id(notification) %>" class="notification">
<% if notification.notifiable.present? %>
<%= link_to notification do %>
<p>
<em>
@@ -11,13 +11,11 @@
<p class="time"><%= l notification.timestamp, format: :datetime %></p>
<% end %>
</li>
<% else %>
<li id="<%= dom_id(notification) %>" class="notification">
<p>
<strong>
<%= t("notifications.index.notifiable_hidden") %>
</strong>
</p>
</li>
<% end %>
</li>