Skip to content

Commit 9bb19a2

Browse files
Merge pull request #2240 from mroderick/link-to-chapters-from-pills
fix: add link to chapter page from pills
2 parents b6d82b2 + 1ba4187 commit 9bb19a2

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

app/views/events/_event.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
.order-md-2
55
- if event.chapter
66
%span.badge.bg-primary.mb-3.mb-md-0
7-
= event.chapter.name
7+
= link_to event.chapter.name, event.chapter.slug, class: 'text-light text-decoration-none'
88
- if @user
99
- if @user.attending?(event.__getobj__)
1010
%span.badge.bg-success.mb-3.mb-md-0

app/views/meetings/_meeting.html.haml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
.order-md-2
55
- if meeting.chapter
66
%span.badge.bg-primary.mb-3.mb-md-0
7-
= meeting.chapter.name
7+
= link_to meeting.chapter.name, meeting.chapter.slug, class: 'text-light text-decoration-none'
88
- if @user
99
- if @user.attending?(meeting)
1010
%span.badge.bg-success.mb-3.mb-md-0

0 commit comments

Comments
 (0)