Skip to content
Snippets Groups Projects
Unverified Commit 03307f69 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

Merge branch 'master' of github.com:noesya/osuny

parents 463867eb 2100aafc
No related branches found
No related tags found
No related merge requests found
......@@ -65,6 +65,10 @@ class User < ApplicationRecord
scope :ordered, -> { order(:last_name, :first_name) }
def human_name
"#{first_name} #{last_name}"
end
def to_s
"#{last_name} #{first_name}"
end
......
......@@ -7,7 +7,7 @@
<ul class="navbar-nav navbar-align">
<li class="nav-item dropdown">
<a class="nav-link dropdown-toggle d-none d-sm-inline-block js-user-dropdown-toggle" href="#" data-bs-toggle="dropdown">
<span class="text-dark"><%= current_user %></span>
<span class="text-dark"><%= current_user.human_name %></span>
</a>
<div class="dropdown-menu dropdown-menu-end">
<%= link_to t('menu.profile'), edit_user_registration_path, class: 'dropdown-item' %>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment