+ <% @user_notifications.each do |notification| %>
+ -
+ <%= link_to main_app.notification_path(notification), class: 'notification-link' do %>
+ <%= notification.icon %>
+ <%= notification.message_html.html_safe %>
+
+ <%= time_ago_in_words notification.happened_at %> ago
+
+ <% end %>
+
+
+ <% end %>
+
+ -
+ <%= link_to main_app.notifications_path, class: 'white-text' do %>
+ notifications
+ View all notifications
+ <% end %>
+
+ -
+ <%= link_to main_app.mark_all_read_path, class: 'white-text' do %>
+ notifications_none
+ Mark all as read
+ <% end %>
+
+
+ <% @user_notifications.limit(8).each do |notification| %>
+ <%= link_to main_app.notification_path(notification), class: 'flex items-center px-4 py-3 border-b hover:bg-gray-100 -mx-2' do %>
+
<%= notification.icon %>
+
+ <%= notification.message_html.html_safe %>
+
+
+ <%= time_ago_in_words notification.happened_at %> ago
+
+ <% end %>
+ <% end %>
+ <%= link_to main_app.mark_all_read_path, class: 'block bg-blue-100 hover:bg-blue-50 text-black text-center py-2' do %>
+ Mark all notifications read
+ <% end %>
+ <%= link_to main_app.notifications_path, class: 'block bg-notebook-blue hover:bg-blue-500 text-white text-center font-bold py-2' do %>
+ See all notifications
+ <% end %>