clean up profile generation (wip)

This commit is contained in:
2023-01-20 14:59:34 +02:00
parent 82358d8642
commit caba7630cf
9 changed files with 78 additions and 58 deletions

View File

@ -0,0 +1,10 @@
-if event = profile.events.length >0
%div
=link_to profile.events.first.name , event_path(profile.events.first) , class: "underline"
= link_to edit_event_path(profile.events.first) do
%button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
Edit
-else
= link_to new_event_path(profile: profile.kind) do
%button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400
New #{profile.Kind} Event