Files
mpa-blog/app/views/friends/show.html.erb
Wild Karl-Heinz c9bf64dc8c - added parties
- changed layout for index and added svgs
2025-11-22 19:35:58 +01:00

16 lines
647 B
Plaintext

<% content_for :title, "Freund anzeigen" %>
<div class="md:w-2/3 w-full">
<% if notice.present? %>
<p class="py-2 px-3 bg-green-50 mb-5 text-green-500 font-medium rounded-md inline-block" id="notice"><%= notice %></p>
<% end %>
<h1 class="font-bold text-4xl">Freund anzeigen</h1>
<%= link_to "Bearbeiten", edit_friend_path(@friend), class: "btn-show" %>
<%= link_to "Liste anzeigen", friends_path, class: "btn-show" %>
<%= button_to "Löschen", @friend, method: :delete, form_class: "sm:inline-block mt-2 sm:mt-0 sm:ml-2",
class: "btn-destroy",
data: { turbo_confirm: "Are you sure?" } %>
</div>