develop #3

Merged
kbe merged 227 commits from develop into main 2025-09-16 14:35:23 +00:00
2 changed files with 11 additions and 11 deletions
Showing only changes of commit 24126eb834 - Show all commits

View File

@@ -21,8 +21,8 @@
</span> </span>
<% else %> <% else %>
<span class="inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-gray-50 text-gray-600 border border-gray-200"> <span class="inline-flex items-center px-2 py-1 rounded-md text-xs font-medium bg-gray-50 text-gray-600 border border-gray-200">
<i data-lucide="circle-check" class="w-3 h-3 mr-1 text-green-500"></i> <i data-lucide="ticket" class="w-3 h-3 mr-1 text-green-500"></i>
<%= remaining %> disponibles <%= remaining %>
</span> </span>
<% end %> <% end %>
</div> </div>
@@ -61,4 +61,4 @@
<% end %> <% end %>
</div> </div>
</div> </div>
</div> </div>

View File

@@ -56,7 +56,7 @@
</h3> </h3>
<p class="text-gray-700 font-medium"><%= @event.venue_name %></p> <p class="text-gray-700 font-medium"><%= @event.venue_name %></p>
<p class="text-gray-600 mt-2 mb-4"><%= @event.venue_address %></p> <p class="text-gray-600 mt-2 mb-4"><%= @event.venue_address %></p>
<% if @event.latitude.present? && @event.longitude.present? %> <% if @event.latitude.present? && @event.longitude.present? %>
<div class="border-t border-gray-200 pt-4"> <div class="border-t border-gray-200 pt-4">
<% if @event.geocoding_status_message %> <% if @event.geocoding_status_message %>
@@ -69,26 +69,26 @@
<% end %> <% end %>
<p class="text-sm font-medium text-gray-700 mb-2">Ouvrir dans :</p> <p class="text-sm font-medium text-gray-700 mb-2">Ouvrir dans :</p>
<div class="flex flex-wrap gap-2"> <div class="flex flex-wrap gap-2">
<% <%
encoded_address = URI.encode_www_form_component(@event.venue_address) encoded_address = URI.encode_www_form_component(@event.venue_address)
lat = @event.latitude lat = @event.latitude
lng = @event.longitude lng = @event.longitude
map_providers = { map_providers = {
"OpenStreetMap" => "https://www.openstreetmap.org/?mlat=#{lat}&mlon=#{lng}#map=16/#{lat}/#{lng}", "OpenStreetMap" => "https://www.openstreetmap.org/?mlat=#{lat}&mlon=#{lng}#map=16/#{lat}/#{lng}",
"Google Maps" => "https://www.google.com/maps/search/#{encoded_address}/@#{lat},#{lng},16z", "Google Maps" => "https://www.google.com/maps/search/#{encoded_address}/@#{lat},#{lng},16z",
"Apple Plans" => "https://maps.apple.com/?address=#{encoded_address}&ll=#{lat},#{lng}" "Apple Plans" => "https://maps.apple.com/?address=#{encoded_address}&ll=#{lat},#{lng}"
} }
icons = { icons = {
"OpenStreetMap" => "🗺️", "OpenStreetMap" => "🗺️",
"Google Maps" => "🔍", "Google Maps" => "🔍",
"Apple Plans" => "🍎" "Apple Plans" => "🍎"
} }
%> %>
<% map_providers.each do |name, url| %> <% map_providers.each do |name, url| %>
<%= link_to url, target: "_blank", rel: "noopener", <%= link_to url, target: "_blank", rel: "noopener",
class: "inline-flex items-center px-3 py-2 text-xs font-medium text-gray-700 bg-white border border-gray-300 rounded-lg hover:bg-gray-50 transition-colors" do %> class: "inline-flex items-center px-3 py-2 text-xs font-medium text-gray-700 bg-white border border-gray-300 rounded-lg hover:bg-gray-50 transition-colors" do %>
<span class="mr-1"><%= icons[name] %></span> <span class="mr-1"><%= icons[name] %></span>
<%= name %> <%= name %>
@@ -143,7 +143,7 @@
<h2 class="text-lg font-bold text-gray-900">Billets disponibles</h2> <h2 class="text-lg font-bold text-gray-900">Billets disponibles</h2>
</div> </div>
<div class=""> <div>
<% if @event.ticket_types.any? %> <% if @event.ticket_types.any? %>
<div class="space-y-4 mb-6"> <div class="space-y-4 mb-6">
<% @event.ticket_types.each do |ticket_type| %> <% @event.ticket_types.each do |ticket_type| %>