forked from rughh/on_ruby
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path_footer.slim
74 lines (67 loc) · 2.82 KB
/
_footer.slim
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
.container
- if Whitelabel[:sponsors].present?
#sponsors.row.m-4.hr
.col-sm-12
h2= I18n.tw("footer.sponsored_by")
- Whitelabel[:sponsors].each do |sp|
.col-sm.pb-4.sponsors(class="sponsor-#{sp[:name].downcase}")
=> link_to sp[:url], title: sp[:name], target: '_blank' do
=> image_tag("labels/#{Whitelabel[:label_id]}/sponsors/#{sp[:banner]}", alt: sp[:name])
.row.m-4.hr
.col-sm.mb-2
h2= t("footer.contact")
ul
- if Whitelabel[:twitter]
li
= link_to_twitter Whitelabel[:twitter] do
= "Twitter"
li= mail_to Whitelabel[:email], 'E-Mail', title: "#{Whitelabel[:twitter]} E-Mail"
li= link_to 'Status', 'http://status.onruby.eu/'
.col-sm.mb-2
h2= t("footer.links")
ul
li
- if Whitelabel[:github_org].present? && Whitelabel[:github_repo].present?
= link_to 'GitHub Organization', github_url, title: 'GitHub Organization'
- else
= link_to 'GitHub', 'http://github.com/phoet/on_ruby', title: 'Fork me on GitHub'
li= link_to 'Mailinglist', mailing_list_url, title: 'Mailinglist'
- if Whitelabel[:coc].present?
li= link_to 'Code of Conduct', Whitelabel[:coc], title: 'Code of Conduct'
.col-sm.mb-2
h2= t("footer.imprint")
ul
li== Whitelabel[:imprint][:contributors].map { |c| mail_to c[:email], c[:name], title: c[:name] }.join(' ')
- if Whitelabel[:imprint][:address].present?
li== simple_format Whitelabel[:imprint][:address]
.row.m-4.hr
.col-sm.mb-4
= link_to 'become a Patron', 'https://www.patreon.com/on_ruby', target: '_blank', class: 'btn btn-light'
.col-sm.mb-4
= link_to 'fork on GitHub', 'https://github.com/phoet/on_ruby', target: '_blank', class: 'btn btn-light'
.col-sm.mb-4
= link_to 'Señor Developer', 'https://senordevelopershop.spreadshirt.de', target: '_blank', class: 'btn btn-light'
- if Whitelabel[:other_usergroups].present?
.row.m-4.usergroups.hr
.col-sm.mb-2
h2= I18n.tw("footer.other_usergroups")
ol
- Whitelabel[:other_usergroups].each do |ug|
li
=> link_to ug[:name], ug[:url], title: ug[:name]
= link_to_twitter(ug[:twitter], clung: true) if ug[:twitter]
.row.m-4.railsgroups.hr
.col-sm.mb-2
h2= t("footer.ruby_usergroups")
ol.clearfix
- Whitelabel.labels.each do |label|
-if label.enabled?
li
- name = t("label.#{label.label_id}.name")
=> link_to name, label_url(label), title: name
= link_to_twitter(label.twitter, clung: true)
.row.m-4.railssupporters
.col-sm.mb-2
h2= t("footer.ruby_supporters")
ol.clearfix
li= link_to "Ruby Berlin e.V.", "http://rubyberlin.org/"