chore: comment out unused popular arts section
- Comment out the popular weather art rendering and related titles in the home index view. - Keep the latest weather art section active for display. This change removes sections of code related to popular and random weather art, which are not currently in use, while preserving a clean interface for the latest weather art.
This commit is contained in:
parent
6e07435474
commit
11d7adba99
@ -1,6 +1,6 @@
|
||||
class HomeController < ApplicationController
|
||||
def index
|
||||
@popular_arts = WeatherArt.includes(:image_attachment, city: :country).by_popularity(3)
|
||||
# @popular_arts = WeatherArt.includes(:image_attachment, city: :country).by_popularity(3)
|
||||
@latest_arts = WeatherArt.includes(:image_attachment, city: :country).latest(6)
|
||||
# @random_arts = WeatherArt.includes(:city, :image_attachment).random(3)
|
||||
# @featured_arts = WeatherArt.includes(:city, :image_attachment).order(created_at: :desc).limit(5)
|
||||
|
@ -30,8 +30,8 @@
|
||||
<section class="container mx-auto px-4 py-16 space-y-12">
|
||||
<h2 class="text-3xl font-display font-bold text-center"><%= t("title.latest_weather_art") %></h2>
|
||||
<%= render 'home/arts', arts: @latest_arts %>
|
||||
<h2 class="text-3xl font-display font-bold text-center"><%= t("title.popular_weather_art") %></h2>
|
||||
<%= render 'home/arts', arts: @popular_arts %>
|
||||
<!-- <h2 class="text-3xl font-display font-bold text-center"><%#= t("title.popular_weather_art") %></h2>-->
|
||||
<%#= render 'home/arts', arts: @popular_arts %>
|
||||
<!-- <h2 class="text-3xl font-display font-bold text-center">Random Weather Art</h2>-->
|
||||
<%#= render 'home/arts', arts: @random_arts %>
|
||||
</section>
|
||||
|
Loading…
Reference in New Issue
Block a user