Skip to content

Commit fbf734f

Browse files
committed
show dietary restrictions on current user profile
1 parent 2c1f7fb commit fbf734f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

app/views/members/show.html.haml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,14 @@
3232
- @member.skills.each do |skill|
3333
.badge.bg-secondary= skill.name
3434

35+
%dt Dietary Restrictions
36+
%dd.mb-3
37+
- if @member.dietary_restrictions.present?
38+
- @member.displayed_dietary_restrictions.each do |dr|
39+
.badge.bg-secondary.text-wrap.mb-1.text-start= dr
40+
- else
41+
.text-muted None
42+
3543
= link_to 'Update your details', edit_member_path, class: 'btn btn-primary', role: 'button'
3644

3745
.col-12.col-md-4.offset-md-1.mb-4

0 commit comments

Comments
 (0)