<%= @city.name %>

<%= @city.country %>
<% if @current_weather_art = @city.current_weather_art %>
Temperature
<%= @current_weather_art.temperature %>°C
Condition
<% end %>

Weather Art History

<%= @weather_arts.total_count %> artworks
<%= form_tag city_path(@city), method: :get, class: "join" do %> <%= date_field_tag :start_date, params[:start_date], class: "join-item input input-bordered w-full max-w-xs", placeholder: "Start Date" %> <%= date_field_tag :end_date, params[:end_date], class: "join-item input input-bordered w-full max-w-xs", placeholder: "End Date" %> <%= submit_tag "Filter", class: "join-item btn btn-primary" %> <% end %>
<% @weather_arts.each do |art| %>
<%= image_tag art.image_url, class: "w-full h-64 object-cover" %>
<%= art.weather_date.strftime("%B %d, %Y") %>
<%= art.temperature %>°C | <%= art.description %>
<% end %>
<%= paginate @weather_arts %>
<%# app/javascript/controllers/modal_controller.js %>