Skip to content

Commit

Permalink
Move header out of location partial
Browse files Browse the repository at this point in the history
The header is unrelated to the location selector, so it shouldn't be there.
  • Loading branch information
jdudley1123 committed Nov 18, 2024
1 parent d15637c commit e06c7b4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
6 changes: 1 addition & 5 deletions app/views/forecasts/_location.html.erb
Original file line number Diff line number Diff line change
@@ -1,8 +1,4 @@
<div class="inner p-4">
<h2 class="text-xl font-bold">
Air quality forecast
</h2>
</div>

<div class="location p-4 pt-2">
<%= render partial: "location_selector" %>
<a href="#" class="change-location block underline text-xs">
Expand Down
6 changes: 6 additions & 0 deletions app/views/forecasts/show.html.erb
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
<div class="inner p-4">
<h2 class="text-xl font-bold">
Air quality forecast
</h2>
</div>

<div data-controller="map">
<%= render partial: "forecasts/location" %>
<%= render partial: "forecasts/forecast_tabs", cerc_forecasts: @forecasts %>
Expand Down

0 comments on commit e06c7b4

Please sign in to comment.