-
-
Notifications
You must be signed in to change notification settings - Fork 199
Expand file tree
/
Copy pathdashboard.html.haml
More file actions
36 lines (31 loc) · 1.28 KB
/
dashboard.html.haml
File metadata and controls
36 lines (31 loc) · 1.28 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
.container.py-4.py-lg-5
.row
.col
%h1 Dashboard
.container.pb-4.pb-lg-5
.row
.col-12.col-lg-3.mb-4
.bg-light.p-3
.mb-4.text-lg-center
= image_tag(current_user.avatar(80), alt: current_user.full_name, class: 'rounded-circle mb-2')
= link_to @user.full_name, profile_path, class: 'd-inline-block'
.d-flex.align-items-center.mb-2
%h4 Subscriptions
%small= link_to 'Edit', subscriptions_path, class: 'ms-2'
- if current_user.chapters.any?
.list-group.list-group-flush
- chapters = current_user.chapters
- chapters.each do |chapter|
= link_to chapter.name, chapter_url(chapter.slug), class: 'list-group-item list-group-item-action'
- else
%i.fas.fa-exclamation-triangle
%small You are not subscribed to any groups.
.col-12.col-lg-8.offset-lg-1#main
- if @announcements.any?
= render partial: 'shared/announcements', locals: { announcements: @announcements }
%div
- if @ordered_events.none?
There are no upcoming events announced for the chapters you are subscribed to.
- @ordered_events.each do |date, workshops|
%h4= date
= render workshops, attending_ids: @attending_ids