From 24126eb8343d1d023d8dd5f9af5ee8f6a1958250 Mon Sep 17 00:00:00 2001 From: kbe Date: Mon, 15 Sep 2025 17:41:35 +0200 Subject: [PATCH] style: lint code --- app/views/components/_ticket_card.html.erb | 6 +++--- app/views/events/show.html.erb | 16 ++++++++-------- 2 files changed, 11 insertions(+), 11 deletions(-) diff --git a/app/views/components/_ticket_card.html.erb b/app/views/components/_ticket_card.html.erb index 8a62310..11fe4d5 100755 --- a/app/views/components/_ticket_card.html.erb +++ b/app/views/components/_ticket_card.html.erb @@ -21,8 +21,8 @@ <% else %> - - <%= remaining %> disponibles + + <%= remaining %> <% end %> @@ -61,4 +61,4 @@ <% end %> - \ No newline at end of file + diff --git a/app/views/events/show.html.erb b/app/views/events/show.html.erb index 242f596..e173880 100755 --- a/app/views/events/show.html.erb +++ b/app/views/events/show.html.erb @@ -56,7 +56,7 @@

<%= @event.venue_name %>

<%= @event.venue_address %>

- + <% if @event.latitude.present? && @event.longitude.present? %>
<% if @event.geocoding_status_message %> @@ -69,26 +69,26 @@ <% end %>

Ouvrir dans :

- <% + <% encoded_address = URI.encode_www_form_component(@event.venue_address) lat = @event.latitude lng = @event.longitude - + map_providers = { "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", "Apple Plans" => "https://maps.apple.com/?address=#{encoded_address}&ll=#{lat},#{lng}" } - + icons = { "OpenStreetMap" => "πŸ—ΊοΈ", - "Google Maps" => "πŸ”", + "Google Maps" => "πŸ”", "Apple Plans" => "🍎" } %> - + <% 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 %> <%= icons[name] %> <%= name %> @@ -143,7 +143,7 @@

Billets disponibles

-
+
<% if @event.ticket_types.any? %>
<% @event.ticket_types.each do |ticket_type| %>