used wrong template in previous commit, fixed
This commit is contained in:
parent
55cade0df5
commit
68c2e5ebb1
@ -23,28 +23,35 @@
|
|||||||
%div= entity.type
|
%div= entity.type
|
||||||
%div= entity.name
|
%div= entity.name
|
||||||
%div= entity.value
|
%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|
|
- Profile.kinds.each do |kind|
|
||||||
- if profile = @member.profile(kind)
|
- if profile = @member.profile(kind)
|
||||||
%div= render "#{kind}_profile" , profile: profile
|
%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|
|
- @member.future_events.each do |event|
|
||||||
%div
|
%div
|
||||||
= render "events/event_small" , event: event
|
= render "events/event_small" , event: event
|
||||||
|
Loading…
Reference in New Issue
Block a user