Skip to content

Commit f9e0066

Browse files
committed
show username in map header if available
1 parent 9ecf69c commit f9e0066

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/views/map/_header.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
<% if user_signed_in? && current_user.admin? %>
2121
<%= link_to '<i class="fas fa-gear me-1"></i>Manage'.html_safe, manage_root_path %>
2222
<% elsif user_signed_in? %>
23-
<%= link_to '<i class="fas fa-user me-1"></i>Account'.html_safe, user_path %>
23+
<%= link_to '<i class="fas fa-user me-1"></i>'.html_safe + (current_user.name || 'Account').truncate(15), user_path %>
2424
<% else %>
2525
<a href="#" class="drawer-link text-decoration-none" data-target="about">
2626
<%= image_tag 'logo_small.png', class: 'logo' %>

0 commit comments

Comments
 (0)