chore: Remove links to non working themes
This commit is contained in:
@@ -152,6 +152,11 @@ class OrdersController < ApplicationController
|
||||
return
|
||||
end
|
||||
|
||||
# For POST requests, increment the payment attempt counter
|
||||
if request.post?
|
||||
@order.increment_payment_attempt!
|
||||
end
|
||||
|
||||
redirect_to checkout_order_path(@order)
|
||||
end
|
||||
|
||||
|
||||
@@ -11,18 +11,13 @@
|
||||
<div class="hidden sm:flex items-center space-x-8 w-full justify-center">
|
||||
<%= link_to events_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 %>
|
||||
Événements
|
||||
Événements & Afterworks
|
||||
<% end %>
|
||||
|
||||
<%= link_to events_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 %>
|
||||
Afterworks
|
||||
<% end %>
|
||||
|
||||
<%= link_to "#",
|
||||
<!-- <%= link_to "#",
|
||||
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 %>
|
||||
Concerts
|
||||
<% end %>
|
||||
<% end %> -->
|
||||
</div>
|
||||
|
||||
<!-- Authentication -->
|
||||
@@ -88,18 +83,18 @@
|
||||
<%= link_to events_path,
|
||||
class: "flex items-center px-3 py-2 rounded-lg text-base font-medium text-gray-700 hover:text-brand-primary hover:bg-gray-50" do %>
|
||||
<i data-lucide="calendar" class="w-4 h-4 mr-3"></i>
|
||||
Événements
|
||||
Événements & Afterworks
|
||||
<% end %>
|
||||
<%= link_to events_path,
|
||||
<!-- <%= link_to events_path,
|
||||
class: "flex items-center px-3 py-2 rounded-lg text-base font-medium text-gray-700 hover:text-brand-primary hover:bg-gray-50" do %>
|
||||
<i data-lucide="glass-water" class="w-4 h-4 mr-3"></i>
|
||||
Afterworks
|
||||
<% end %>
|
||||
<%= link_to "#",
|
||||
<% end %> -->
|
||||
<!-- <%= link_to "#",
|
||||
class: "flex items-center px-3 py-2 rounded-lg text-base font-medium text-gray-700 hover:text-brand-primary hover:bg-gray-50" do %>
|
||||
<i data-lucide="music" class="w-4 h-4 mr-3"></i>
|
||||
Concerts
|
||||
<% end %>
|
||||
<% end %> -->
|
||||
</div>
|
||||
|
||||
<div class="pt-4 pb-4 border-t border-gray-200">
|
||||
|
||||
@@ -13,6 +13,7 @@ Rails.application.routes.draw do
|
||||
root "pages#home"
|
||||
|
||||
# === Devise ===
|
||||
|
||||
# Routes for devise authentication Gem
|
||||
# Bind devise to user
|
||||
devise_for :users, path: "auth", path_names: {
|
||||
@@ -50,7 +51,7 @@ Rails.application.routes.draw do
|
||||
member do
|
||||
get :checkout
|
||||
get :invoice
|
||||
post :retry_payment
|
||||
match :retry_payment, via: [ :get, :post ]
|
||||
post :increment_payment_attempt
|
||||
end
|
||||
end
|
||||
@@ -87,7 +88,6 @@ Rails.application.routes.draw do
|
||||
end
|
||||
end
|
||||
|
||||
|
||||
# API routes versioning
|
||||
namespace :api do
|
||||
namespace :v1 do
|
||||
|
||||
Reference in New Issue
Block a user