today_ai_weather/app/views/cities
songtianlun 0bca23ff77
Some checks failed
Docker Dev / docker (push) Has been cancelled
CI / scan_ruby (push) Has been cancelled
CI / lint (push) Has been cancelled
CI / test (push) Has been cancelled
Docker Main / docker (push) Has been cancelled
fix: correct state name presence check
- Update condition to check for state presence instead of name
- Ensure proper rendering of state badge in city and weather art views

This change improves the logic for displaying the state badge by
checking for the presence of the state object directly, which
prevents potential errors when the state name is not set. It
ensures that the badge is displayed correctly when a state is
associated with a city or weather art.
2025-04-26 00:29:33 +08:00
..
_admin_panel.html.erb feat: add admin management features for cities 2025-02-11 17:40:13 +08:00
_city.html.erb feat: add image alt text generation 2025-04-10 22:37:27 +08:00
_results.html.erb feat: enhance city pagination and data fetching 2025-02-26 15:31:45 +08:00
_search_city.html.erb feat: add internationalization support 2025-02-21 17:51:25 +08:00
_stat_card.html.erb feat: add statistics card component and refactor views 2025-02-14 14:56:51 +08:00
index.html.erb feat: add image alt text generation 2025-04-10 22:37:27 +08:00
show.html.erb fix: correct state name presence check 2025-04-26 00:29:33 +08:00