From 68c2e5ebb1fce59506d3a9ef1ac62426a43cb775 Mon Sep 17 00:00:00 2001 From: Torsten Date: Fri, 1 Sep 2023 15:28:00 +0300 Subject: [PATCH] used wrong template in previous commit, fixed --- app/views/members/settings.haml | 41 +++++++++++++++++++-------------- 1 file changed, 24 insertions(+), 17 deletions(-) diff --git a/app/views/members/settings.haml b/app/views/members/settings.haml index 95e47f8..1b94917 100644 --- a/app/views/members/settings.haml +++ b/app/views/members/settings.haml @@ -23,28 +23,35 @@ %div= entity.type %div= entity.name %div= entity.value - %div - - unless @member.artist_profile - If you are an artist at Hub Feenix, click - =link_to "here" , new_profile_path(kind: :artist) , class: "underline" - - unless @member.teacher_profile - If you teach at Hub Feenix, click - =link_to "here" , new_profile_path(kind: :teacher) , class: "underline" - - - unless @member.member_profile - %div - %h3.text-2xl.bg-gray-200.p-4.text-center No Profile - %h2 Create new - = link_to new_profile_path(kind: :member) do - %button.bg-cyan-200.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400 - Member profile - .prose - Member profiles are always public and contain an image and text. - Profile.kinds.each do |kind| - if profile = @member.profile(kind) %div= render "#{kind}_profile" , profile: profile + %div + %h3.text-2xl.bg-gray-200.p-4.text-center Profiles + - unless @member.artist_profile + = link_to new_profile_path(kind: :artist) do + %button.bg-cyan-200.mt-3.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400 + Create Artist profile + .prose + Artists that have a studio in Hub Feenix may create a profile that includes text and pictures. + + - unless @member.teacher_profile + = link_to new_profile_path(kind: :teacher) do + %button.bg-cyan-200.mt-3.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400 + Create Teacher profile + .prose + Teachers, ie people who run courses or events at Hub Feenix, may create a profile with text and picture and a homepage. + Teachers may create Events that will be shown in the event list. + + - unless @member.member_profile + = link_to new_profile_path(kind: :member) do + %button.bg-cyan-200.mt-3.mr-3.inline-block.rounded-lg.px-4.py-3.text-md.font-medium.border.border-gray-400 + Create coop Member profile + .prose + Members of the coop may create profiles profiles which are always public and contain an image and text. + - @member.future_events.each do |event| %div = render "events/event_small" , event: event