Skip to content

Commit 943dd82

Browse files
committed
Make the name in the top bar a link to the profile for logged in users
1 parent f3d73c5 commit 943dd82

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

app/views/layouts/application.html.slim

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ html data-theme="light"
5757
span data-theme-target="label" Theme
5858
- if user_signed_in?
5959
- if current_user&.person&.default_alias
60-
span.nav-user = current_user.person.default_alias.name
60+
= link_to current_user.person.default_alias.name, person_path(current_user.person.default_alias.email), class: "nav-link nav-user"
6161
= link_to "Settings", settings_root_path, class: "nav-link"
6262
= button_to "Sign out", session_path, method: :delete, class: "nav-link", form: { style: 'display:inline' }, data: { turbo: false }
6363
- else
@@ -84,7 +84,7 @@ html data-theme="light"
8484
.nav-auth
8585
- if user_signed_in?
8686
- if current_user&.person&.default_alias
87-
span.nav-user = current_user.person.default_alias.name
87+
= link_to current_user.person.default_alias.name, person_path(current_user.person.default_alias.email), class: "nav-link nav-user"
8888
- unread = activity_unread_count
8989
= link_to activities_path, class: "nav-link nav-link-activity", title: "Activity" do
9090
i.fa-regular.fa-bell

0 commit comments

Comments
 (0)