| 1 | <footer class="pt-5 text-muted border-top"> |
| 2 | <% unless current_page?(api_root_path) || current_page?(api_v1_root_path) %> |
| 3 | <div class="row mb-3 g-3 align-items-center"> |
| 4 | <div class="col-auto"> |
| 5 | <i class="bi bi-globe"></i> |
| 6 | </div> |
| 7 | <div class="col-auto"> |
| 8 | <select id="select-locale" class="form-select" aria-label="Locale" onchange="changeLocale()"> |
| 9 | <% I18n.available_locales.each do |locale| %> |
| 10 | <% if %i[ja id-id sv-se en].include? locale %> |
| 11 | <option <%= 'selected' if I18n.locale == locale %> value="<%= current_domain_locale_url(locale, request.query_parameters) %>"><%= t('locale_name', locale: locale) %></option> |
| 12 | <% end %> |
| 13 | <% end %> |
| 14 | </select> |
| 15 | <script> |
| 16 | function changeLocale() {url = document.getElementById("select-locale").value;window.location = url;} |
| 17 | </script> |
| 18 | </div> |
| 19 | </div> |
| 20 | <% end %> |
| 21 | <div class="row g-3"> |
| 22 | <div class="col-md-12"> |
| 23 | <span class="fst-italic fw-light fs-6 float-end"> |
| 24 | <%= link_to(t('nav_footer_about'), about_us_path) %> | |
| 25 | <%= link_to(t('nav_footer_term'), term_of_use_path) %> | |
| 26 | <%= link_to(t('nav_footer_privacy'), privacy_policy_path) %> | |
| 27 | <%= link_to(t('nav_footer_contact'), contact_path) %> | |
| 28 | 💎 <%= Date.current.year %> |
| 29 | </span> |
| 30 | </div> |
| 31 | </div> |
| 32 | </footer> |