1
0
mirror of https://github.com/projekteuler/projekteuler.git synced 2025-12-10 08:46:41 +01:00

Improve login name display in navbar

This commit is contained in:
Philipp Fischbeck 2019-02-04 14:03:45 +01:00
parent d75a88bf6e
commit 8ba5608689

View File

@ -13,7 +13,12 @@
<%= nav class: 'navbar-right' do %>
<%= link_to t('application.legal'), about_legal_path %>
<% if user_signed_in? %>
<li>Eingeloggt als <b><%= current_user.name %></b></li>
<span class="navbar-text">Eingeloggt als <b>
<%= current_user.name %>
<% if current_user.admin? %>
<%= icon :star %>
<% end %>
</b></span>
<%= link_to(t('application.sign_out'), destroy_user_session_path, method: :delete) %>
<% else %>
<%= link_to(t('application.sign_in'), user_developer_omniauth_authorize_path) %>