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:
parent
d75a88bf6e
commit
8ba5608689
@ -13,7 +13,12 @@
|
|||||||
<%= nav class: 'navbar-right' do %>
|
<%= nav class: 'navbar-right' do %>
|
||||||
<%= link_to t('application.legal'), about_legal_path %>
|
<%= link_to t('application.legal'), about_legal_path %>
|
||||||
<% if user_signed_in? %>
|
<% 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) %>
|
<%= link_to(t('application.sign_out'), destroy_user_session_path, method: :delete) %>
|
||||||
<% else %>
|
<% else %>
|
||||||
<%= link_to(t('application.sign_in'), user_developer_omniauth_authorize_path) %>
|
<%= link_to(t('application.sign_in'), user_developer_omniauth_authorize_path) %>
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user