<%= link_to root_path, class: 'navbar-brand' do %> <%= image_tag "favicon.ico", alt: "", width: 24, height: 24, class: "d-inline-block align-text-top" %> <%= t('application.site_title') %> <% end %>
    <%= nav_link_to t('application.info'), about_info_path %> <%= nav_link_to Problem.model_name.human(count: 2), problems_path %> <% if user_signed_in? and current_user.admin? %> <%= nav_link_to t('admin.dashboard.index.administration'), admin_dashboard_index_path %> <%= link_to admin_translations_path, class: 'nav-link' do %> <%= t('admin.dashboard.index.translations') %> <%= Translation.pending.count %> <% end %> <% end %>
<% if user_signed_in? %> <%= t 'application.logged_in_as_html', name: current_user.name %> <% if current_user.admin? %> <%= icon('fas', 'star') %> <% end %>
  • <%= link_to t('application.sign_out'), destroy_user_session_path, method: :delete, class: 'nav-link' %>
<% else %>
  • <% if Rails.env.development? %> <%= link_to t('application.sign_in_with_github'), user_developer_omniauth_authorize_path, method: :post, class: 'nav-link' %> <% else %> <%= link_to t('application.sign_in_with_github'), user_github_omniauth_authorize_path, method: :post, class: 'nav-link' %> <% end %>
<% end %>