- Replace inline wiki data badge code with a render call to a new shared partial. - This change promotes code reuse and simplifies the view templates for cities and weather arts. - The shared partial handles the condition for displaying the badge based on the presence of `wiki_data_id`. This refactor enhances maintainability and adheres to DRY principles, allowing for easier updates or changes to the wiki badge display in one location instead of multiple views. |
||
---|---|---|
.. | ||
_admin_panel.html.erb | ||
_city.html.erb | ||
_results.html.erb | ||
_search_city.html.erb | ||
_stat_card.html.erb | ||
index.html.erb | ||
show.html.erb |