From 737f534ce0182a9f79a12994a24a72c642950045 Mon Sep 17 00:00:00 2001 From: Taico Aerts <t.v.aerts@tudelft.nl> Date: Sat, 11 Nov 2023 11:38:49 +0100 Subject: [PATCH] Allow viewing other users badges --- app/views/users/_tabs.html.erb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app/views/users/_tabs.html.erb b/app/views/users/_tabs.html.erb index 2046568ff..72d8875b0 100644 --- a/app/views/users/_tabs.html.erb +++ b/app/views/users/_tabs.html.erb @@ -2,6 +2,9 @@ <%= link_to user_path(user), class: "tabs--item #{current_page?(user_path(user)) ? 'is-active' : ''}" do %> <i class="fas fa-user"></i> Profile <% end %> + <%= link_to user_awarded_badges_path(user), class: "tabs--item #{current_page?(user_awarded_badges_path(user)) ? 'is-active' : ''}" do %> + Awarded Badges + <% end %> <%= link_to user_activity_path(user), class: "tabs--item #{current_page?(user_activity_path(user)) ? 'is-active' : ''}" do %> Activity <% end %> @@ -18,9 +21,6 @@ <%= link_to user_preferences_path, class: "tabs--item #{current_page?(user_preferences_path) ? 'is-active' : ''}" do %> Preferences <% end %> - <%= link_to user_awarded_badges_path(user), class: "tabs--item #{current_page?(user_awarded_badges_path(user)) ? 'is-active' : ''}" do %> - Awarded Badges - <% end %> <%= link_to user_consent_path, class: "tabs--item #{current_page?(user_consent_path) ? 'is-active' : ''}" do %> Consent <% end %> -- GitLab