From 31009560c2774b1bd6c3a1f3d78b3d5e624b4d45 Mon Sep 17 00:00:00 2001 From: kbe Date: Wed, 10 Sep 2025 15:20:29 +0200 Subject: [PATCH] Link to homepage on and more comments in controller --- app/controllers/orders_controller.rb | 2 +- app/views/components/_header.html.erb | 14 +++++++++++++- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/app/controllers/orders_controller.rb b/app/controllers/orders_controller.rb index 35f4862..b0787fa 100644 --- a/app/controllers/orders_controller.rb +++ b/app/controllers/orders_controller.rb @@ -148,7 +148,7 @@ class OrdersController < ApplicationController def retry_payment unless @order.can_retry_payment? redirect_to event_path(@order.event.slug, @order.event), - alert: "Cette commande ne peut plus être payée" + alert: "Cette commande ne peut plus être payée" return end diff --git a/app/views/components/_header.html.erb b/app/views/components/_header.html.erb index 46399e6..a0eda2f 100755 --- a/app/views/components/_header.html.erb +++ b/app/views/components/_header.html.erb @@ -3,7 +3,7 @@
- <%= link_to Rails.application.config.app_name, current_user ? "/dashboard" : "/", + <%= link_to Rails.application.config.app_name, "/", class: "text-2xl font-display font-bold text-gray-900 hover:text-brand-primary transition-colors" %>
@@ -14,6 +14,11 @@ Événements & Afterworks <% end %> + <%= link_to dashboard_path, + class: "text-gray-700 hover:text-brand-primary py-2 text-sm font-medium transition-colors duration-200 relative after:absolute after:bottom-0 after:left-0 after:h-0.5 after:w-0 hover:after:w-full after:bg-brand-primary after:transition-all after:duration-200" do %> + Tableau de bord + <% end %> +