1
0
Fork 0
This repository has been archived on 2023-03-27. You can view files and clone it, but cannot push or open issues or pull requests.
lpr-partynest/app/views/application/_navbar.html.erb

83 lines
3.1 KiB
Text
Raw Normal View History

2018-11-26 10:04:15 -05:00
<nav class="navbar navbar-expand-lg navbar-dark bg-dark">
<a class="navbar-brand" href="<%= root_path %>">
2018-11-26 10:20:43 -05:00
<%= translate :brand %>
2018-11-26 10:04:15 -05:00
</a>
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarSupportedContent" aria-controls="navbarSupportedContent" aria-expanded="false" aria-label="Toggle navigation">
<span class="navbar-toggler-icon"></span>
</button>
<div class="collapse navbar-collapse" id="navbarSupportedContent">
<ul class="navbar-nav mr-auto">
<li class="nav-item">
<a class="nav-link" target="_blank" href="https://t.me/lpr_perm">
<%= icon 'fab', 'telegram' %>
2018-11-26 10:23:10 -05:00
<%= translate :telegram_channel %>
2018-11-26 10:04:15 -05:00
</a>
</li>
<li class="nav-item">
<a class="nav-link" target="_blank" href="https://t.me/lpr_perm_chat">
<%= icon 'fab', 'telegram' %>
2018-11-26 10:23:10 -05:00
<%= translate :telegram_chat %>
2018-11-26 10:04:15 -05:00
</a>
</li>
<li class="nav-item">
<a class="nav-link" target="_blank" href="https://vk.com/lpr_perm">
<%= icon 'fab', 'vk' %>
2018-11-26 10:23:10 -05:00
<%= translate :vk_public %>
2018-11-26 10:04:15 -05:00
</a>
</li>
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle" href="#" id="navbarDropdown" role="button" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
<%= icon 'fas', 'link' %>
2018-11-26 10:23:10 -05:00
<%= translate :other_links %>
2018-11-26 10:04:15 -05:00
</a>
<div class="dropdown-menu" aria-labelledby="navbarDropdown">
<a class="dropdown-item" target="_blank" href="https://libertarian-party.ru">
<%= icon 'fas', 'home' %>
2018-11-26 10:23:10 -05:00
<%= translate :main_party_site %>
2018-11-26 10:04:15 -05:00
</a>
<a class="dropdown-item" target="_blank" href="https://libertarian-party.ru/regionalnye-otdeleniya/permskiy-kray">
<%= icon 'fas', 'home' %>
2018-11-26 10:23:10 -05:00
<%= translate :department_page_on_party_site %>
2018-11-26 10:04:15 -05:00
</a>
<a class="dropdown-item" target="_blank" href="https://libertarian-party.ru/regionalnye-otdeleniya">
<%= icon 'fas', 'home' %>
2018-11-26 10:23:10 -05:00
<%= translate :departments_in_other_states %>
2018-11-26 10:04:15 -05:00
</a>
<div class="dropdown-divider"></div>
<a class="dropdown-item" target="_blank" href="https://github.com/lpr-perm">
<%= icon 'fab', 'github' %>
2018-11-26 10:23:10 -05:00
<%= translate :github %>
2018-11-26 10:04:15 -05:00
</a>
</div>
</li>
</ul>
2018-11-29 17:43:24 -05:00
<% if user_signed_in? %>
<span class="navbar-text mr-2">
<%= current_user.email %>
</span>
<%= link_to translate('users.shared.links.sign_out'),
destroy_user_session_path,
method: :delete,
role: :button,
class: 'btn btn-light' %>
<% else %>
<%= link_to translate('users.shared.links.sign_in'),
new_user_session_path,
role: :button,
class: 'btn btn-light mr-2' %>
<%= link_to translate('users.shared.links.sign_up'),
new_user_registration_path,
role: :button,
class: 'btn btn-primary' %>
<% end %>
2018-11-26 10:04:15 -05:00
</div>
</nav>