1 parent 9ecf69c commit f9e0066Copy full SHA for f9e0066
1 file changed
app/views/map/_header.html.erb
@@ -20,7 +20,7 @@
20
<% if user_signed_in? && current_user.admin? %>
21
<%= link_to '<i class="fas fa-gear me-1"></i>Manage'.html_safe, manage_root_path %>
22
<% elsif user_signed_in? %>
23
- <%= link_to '<i class="fas fa-user me-1"></i>Account'.html_safe, user_path %>
+ <%= link_to '<i class="fas fa-user me-1"></i>'.html_safe + (current_user.name || 'Account').truncate(15), user_path %>
24
<% else %>
25
<a href="#" class="drawer-link text-decoration-none" data-target="about">
26
<%= image_tag 'logo_small.png', class: 'logo' %>
0 commit comments