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