mirror of
https://github.com/Freika/dawarich.git
synced 2026-01-10 17:21:38 -05:00
15 lines
683 B
Text
15 lines
683 B
Text
<div class="fixed top-5 right-5 flex flex-col gap-2" id="flash-messages">
|
|
<% flash.each do |key, value| %>
|
|
<div data-controller="removals"
|
|
data-removals-timeout-value="5000"
|
|
class="flex items-center <%= classes_for_flash(key) %> py-3 px-5 rounded-lg z-[6000]">
|
|
<div class="mr-4"><%= value %></div>
|
|
|
|
<button type="button" data-action="click->removals#remove">
|
|
<svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
|
|
<path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M6 18L18 6M6 6l12 12" />
|
|
</svg>
|
|
</button>
|
|
</div>
|
|
<% end %>
|
|
</div>
|