-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.haml
100 lines (95 loc) · 4.53 KB
/
index.haml
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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
- content_for :title, "Re-Volt America - Staff"
- meta :title, "RVA - Staff"
- meta :description, "The people who help run Re-Volt America."
#staff
%h2
%i.fa.fa-user-md{"aria-hidden" => "true"}
%b
= t("staff.title")
%small.staff-description
= t("staff.description")
%hr
- if @admins.none? && @mods.none? && @organizers.none?
%h5.text-center
= "No staff members to display"
- if @admins.any?
.row.staff-group
.col-md-12
%h2{style: "color: #f89406"}
= t("staff.groups.administrator")
%small.staff-group-count
= @admins.size
%hr.hr-light-title/
.row
- @admins.each do |admin|
.col-md-3.col-sm-6.text-center
.staff-entry
= image_tag "staff/#{admin.username.downcase}.png", :alt => '', :height => 90, :style => "width: 120px; height: 120px; border-radius: 100%;", width: "90"
%br
%a{:href => user_path(admin)}
%h4.staff-username{style: "color: #f89406; border-bottom-color: #f89406;"}
= admin.username
%br
- if admin.profile.public_email?
%a{"data-content" => admin.profile.public_email, "data-placement" => "bottom", "data-toggle" => "popover", style: "cursor: pointer; color: #beb8bc;"}
%i.fa.fa-envelope{"aria-hidden" => "true"}
- if admin.profile.discord?
%a{"data-content" => admin.profile.discord, "data-placement" => "top", "data-toggle" => "popover", style: "cursor: pointer; color: #beb8bc;"}
%i.fab.fa-discord{"aria-hidden" => "true"}
- if admin.profile.github?
%a{href: "https://github.com/#{admin.profile.github}", target: "_blank"}
%i.fab.fa-github{"aria-hidden" => "true"}
- if @mods.any?
.row.staff-group
.col-md-12
%h2{style: "color: #ff2200"}
= t("staff.groups.moderator")
%small.staff-group-count
= @mods.size
%hr.hr-light-title/
.row
- @mods.each do |mod|
.col-md-3.col-sm-6.text-center
.staff-entry
= image_tag "staff/#{mod.username.downcase}.png", :alt => '', :height => 90, :style => "width: 120px; height: 120px; border-radius: 100%;", width: "90"
%br
%a{:href => user_path(mod)}
%h4.staff-username{style: "color: #ff2200; border-bottom-color: #ff2200;"}
= mod.username
%br
- if mod.profile.public_email?
%a{"data-content" => mod.profile.public_email, "data-placement" => "bottom", "data-toggle" => "popover", style: "cursor: pointer; color: #beb8bc;"}
%i.fa.fa-envelope{"aria-hidden" => "true"}
- if mod.profile.discord?
%a{"data-content" => mod.profile.discord, "data-placement" => "top", "data-toggle" => "popover", style: "cursor: pointer; color: #beb8bc;"}
%i.fab.fa-discord{"aria-hidden" => "true"}
- if mod.profile.github?
%a{href: "https://github.com/#{mod.profile.github}", target: "_blank"}
%i.fab.fa-github{"aria-hidden" => "true"}
- if @organizers.any?
.row.staff-group
.col-md-12
%h2{style: "color: #36f971"}
= t("staff.groups.organizer")
%small.staff-group-count
= @organizers.size
%hr.hr-light-title/
.row
- @organizers.each do |organizer|
.col-md-3.col-sm-6.text-center
.staff-entry
= image_tag "staff/#{organizer.username.downcase}.png", :alt => '', :height => 90, :style => "width: 120px; height: 120px; border-radius: 100%;", width: "90"
%br
%a{:href => user_path(organizer)}
%h4.staff-username{style: "color: #36f971; border-bottom-color: #36f971;"}
= organizer.username
%br
- if organizer.profile.public_email?
%a{"data-content" => organizer.profile.public_email, "data-placement" => "bottom", "data-toggle" => "popover", style: "cursor: pointer; color: #beb8bc;"}
%i.fa.fa-envelope{"aria-hidden" => "true"}
- if organizer.profile.discord?
%a{"data-content" => organizer.profile.discord, "data-placement" => "top", "data-toggle" => "popover", style: "cursor: pointer; color: #beb8bc;"}
%i.fab.fa-discord{"aria-hidden" => "true"}
- if organizer.profile.github?
%a{href: "https://github.com/#{organizer.profile.github}", target: "_blank"}
%i.fab.fa-github{"aria-hidden" => "true"}