From 7e740b072c5f278c88ad0c5abc28d5ed5eb070ef Mon Sep 17 00:00:00 2001
From: Felix Eckhofer <felix@eckhofer.com>
Date: Thu, 13 Mar 2025 17:06:21 +0100
Subject: [PATCH] Replace duplicate assignments link with missing "sign up"

Anonymous users had two links to assignments in navigation, but none for signing up.
---
 app/views/layouts/application.html.erb | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb
index 5baad62..44c4b95 100644
--- a/app/views/layouts/application.html.erb
+++ b/app/views/layouts/application.html.erb
@@ -109,8 +109,8 @@
           <% else %>
             <!-- Not logged in state -->
             <div class="flex items-center space-x-4">
-              <%= link_to "Assignments", assignments_path, class: "text-gray-600 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white" %>
               <%= link_to "Log in", new_user_session_path, class: "text-gray-600 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white" %>
+              <%= link_to "Sign up", new_user_registration_path, class: "text-gray-600 hover:text-gray-900 dark:text-gray-300 dark:hover:text-white" %>
             </div>
 
             <!-- Dark mode toggle button -->
-- 
GitLab