|
1 | 1 | nav.navbar.sticky-top.navbar-expand-lg#nav |
2 | 2 | .label |
3 | | - = link_to(root_path(anchor: :on_ruby), class: 'navbar-brand pl-4') do |
| 3 | + = link_to(root_path(anchor: :on_ruby), class: 'navbar-brand ps-4') do |
4 | 4 | = image_tag("labels/#{Whitelabel[:label_id]}.png", title: title, class: "d-inline-block align-bottom label") |
5 | 5 | .d-none.d-sm-inline.d-md-inline.d-lg-none= I18n.tw('name') |
6 | 6 |
|
7 | | - button.navbar-toggler(type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation") |
| 7 | + button.navbar-toggler(type="button" data-bs-toggle="collapse" data-bs-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation") |
8 | 8 | = fa_icon('bars', class: 'fa-fw') |
9 | 9 |
|
10 | 10 | #navbarSupportedContent.collapse.navbar-collapse |
11 | | - ul.navbar-nav.mr-auto.justify-content-center.flex-fill |
| 11 | + ul.navbar-nav.me-auto.justify-content-center.flex-fill |
12 | 12 | - [:events, :topics, :people, :locations].each do |section| |
13 | | - li.nav-item.ml-4 |
| 13 | + li.nav-item.ms-4 |
14 | 14 | = link_to(root_path(anchor: section), class: 'nav-link') do |
15 | 15 | = fa_icon(section, class: 'fa-fw', text: t("main.#{section}")) |
16 | 16 |
|
17 | | - ul.navbar-nav.ml-auto |
18 | | - li.nav-item.dropdown.pr-4 |
| 17 | + ul.navbar-nav.ms-auto |
| 18 | + li.nav-item.dropdown.pe-4 |
19 | 19 | - if signed_in? |
20 | | - a(class="nav-link btn btn-light dropdown-toggle" href="#" id="loginDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false") |
21 | | - = user_image(current_user) |
22 | | - = t('login.profile') |
23 | | - .dropdown-menu.dropdown-menu-right(aria-labelledby="loginDropdown") |
24 | | - = link_to(user_path(current_user), class: 'dropdown-item') do |
25 | | - = fa_icon('eye', class: 'fa-fw', text: t("login.show_profile")) |
26 | | - |
27 | | - = link_to(edit_user_path(current_user), class: 'dropdown-item') do |
28 | | - = fa_icon('edit', class: 'fa-fw', text: t("login.edit_profile")) |
29 | | - |
30 | | - = link_to(destroy_session_path(current_user), class: 'dropdown-item') do |
31 | | - = fa_icon('times', class: 'fa-fw', text: t("login.logout")) |
32 | | - |
33 | | - - if current_user.admin? |
34 | | - = link_to('/admin', class: 'dropdown-item') do |
35 | | - = fa_icon('lock', class: 'fa-fw', text: 'Community-Admin') |
36 | | - - if current_user.super_admin? |
37 | | - = link_to('/super_admin', class: 'dropdown-item') do |
38 | | - = fa_icon('lock', class: 'fa-fw', text: 'Super-Admin') |
| 20 | + .dropdown |
| 21 | + a.btn.btn-light.dropdown-toggle.nav-link(href="#" role="button" data-bs-toggle="dropdown" aria-expanded="false") |
| 22 | + = user_image(current_user) |
| 23 | + = t('login.profile') |
| 24 | + ul.dropdown-menu.dropdown-menu-right(aria-labelledby="loginDropdown") |
| 25 | + li= link_to(user_path(current_user), class: 'dropdown-item') do |
| 26 | + = fa_icon('eye', class: 'fa-fw', text: t("login.show_profile")) |
| 27 | + |
| 28 | + li= link_to(edit_user_path(current_user), class: 'dropdown-item') do |
| 29 | + = fa_icon('edit', class: 'fa-fw', text: t("login.edit_profile")) |
| 30 | + |
| 31 | + li= link_to(destroy_session_path(current_user), class: 'dropdown-item') do |
| 32 | + = fa_icon('times', class: 'fa-fw', text: t("login.logout")) |
| 33 | + |
| 34 | + - if current_user.admin? |
| 35 | + li= link_to('/admin', class: 'dropdown-item') do |
| 36 | + = fa_icon('lock', class: 'fa-fw', text: 'Community-Admin') |
| 37 | + - if current_user.super_admin? |
| 38 | + li= link_to('/super_admin', class: 'dropdown-item') do |
| 39 | + = fa_icon('lock', class: 'fa-fw', text: 'Super-Admin') |
39 | 40 |
|
40 | 41 | - else |
41 | | - a(class="nav-link btn btn-primary dropdown-toggle" href="#" id="loginDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false") |
| 42 | + a(class="nav-link btn btn-primary dropdown-toggle" href="#" id="loginDropdown" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false") |
42 | 43 | = t('login.login') |
43 | 44 | .dropdown-menu.dropdown-menu-right(aria-labelledby="loginDropdown") |
44 | 45 | - login_providers.each do |provider| |
45 | 46 | = button_to(label_auth_url(provider), class: 'dropdown-item') do |
46 | 47 | = fa_icon(icon_for_provider(provider), class: 'fa-fw', text: t("login.#{provider}_login")) |
47 | 48 |
|
48 | 49 |
|
49 | | - li.nav-item.dropdown.pr-4 |
50 | | - a(class="nav-link btn btn-light dropdown-toggle" href="#" id="localeDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false") |
| 50 | + li.nav-item.dropdown.pe-4 |
| 51 | + a(class="nav-link btn btn-light dropdown-toggle" href="#" id="localeDropdown" role="button" data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false") |
51 | 52 | = t("languages.#{I18n.locale}") |
52 | 53 | .dropdown-menu.dropdown-menu-right(aria-labelledby="localeDropdown") |
53 | 54 | - I18n.available_locales.each do |locale| |
|
0 commit comments