dawarich/app/views/notifications/_notification.html.erb

23 lines
1 KiB
Text
Raw Normal View History

<div role="<%= notification.kind %>" class="<%= notification.kind %> shadow-lg p-5 flex justify-between items-center mb-4 rounded-lg bg-base-200" id="<%= dom_id notification %>">
2024-07-04 17:00:07 -04:00
<div class="flex-1">
<h3 class="font-bold text-xl">
2024-09-08 10:52:35 -04:00
<%= link_to notification.title, notification, class: "link hover:no-underline #{notification_link_color(notification)}" %>
2024-07-04 17:00:07 -04:00
</h3>
<div class="text-sm text-gray-500"><%= time_ago_in_words notification.created_at %> ago</div>
<% if params[:action] == 'show' %>
<div class="mt-2">
<%= notification.content %>
<% if notification.error? %>
<div class="mt-2">
Please, when reporting a bug to <a href="https://github.com/Freika/dawarich/issues" class="link hover:no-underline text-blue-600">Github Issues</a>, don't forget to include logs from <code>dawarich_app</code> and <code>dawarich_sidekiq</code> docker containers. Thank you!
</div>
<% end %>
2024-07-04 17:00:07 -04:00
</div>
<% end %>
</div>
<div class="badge badge-<%= notification.kind %> gap-2">
2024-07-04 16:20:12 -04:00
</div>
</div>