Skip to content

Commit 2510248

Browse files
committed
Fix card titles
1 parent 46abf24 commit 2510248

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

app/controllers/podcast_metrics_controller.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,7 @@ def feeds
9090
@podcast.feeds.each { |feed| @feeds << {feed: feed} if feeds_with_downloads.exclude?(feed) }
9191

9292
render partial: "metrics/feeds_card", locals: {
93+
podcast: @podcast,
9394
feeds: @feeds
9495
}
9596
end

app/views/metrics/_feeds_card.html.erb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<ul class="list-group list-group-flush position-relative">
33
<% feeds.map do |feed| %>
44
<li class="list-group-item d-flex justify-content-between">
5-
<span class="z-1"><%= feed[:feed].title || "Default Feed" %></span>
5+
<span class="z-1"><%= link_to feed[:feed].label, podcast_feed_path(podcast, feed[:feed]) %></span>
66
<span class="z-1"><%= number_with_delimiter(feed[:downloads]&.count) || 0 %></span>
77
</li>
88
<% end %>

app/views/metrics/_scorecard_dashboard.html.erb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,8 +14,8 @@
1414
<div class="col ps-0 pe-2">
1515
<div class="card shadow">
1616
<div class="col">
17-
<div class="card-header d-flex justify-content-between">
18-
<span>Episode Downloads</span>
17+
<div class="card-header d-flex justify-content-between align-items-center">
18+
<span class="h4 fw-bold mb-0">Episode Downloads</span>
1919
<span>Last 28 Days</span>
2020
</div>
2121
<div class="card-body metrics-card-body">
@@ -29,8 +29,8 @@
2929
<div class="col pe-0 ps-2">
3030
<div class="card shadow">
3131
<div class="col">
32-
<div class="card-header d-flex justify-content-between">
33-
<span>Monthly Downloads</span>
32+
<div class="card-header d-flex justify-content-between align-items-center">
33+
<span class="h4 fw-bold mb-0">Monthly Downloads</span>
3434
<span>Past Year</span>
3535
</div>
3636
<div class="card-body metrics-card-body">

app/views/podcasts/show.html.erb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -143,11 +143,11 @@
143143
<div class="col-lg-6 d-grid mb-4">
144144
<div class="card shadow">
145145
<div class="card-header d-flex justify-content-between align-items-center">
146-
<span>Downloads by Feed</span>
146+
<span class="h4 fw-bold mb-0">Downloads by Feed</span>
147147
<span>Last 28 Days</span>
148148
</div>
149149
<div class="card-body p-0">
150-
<%= turbo_frame_tag "feeds", src: feeds_podcast_metrics_path(podcast_id: @podcast.id), loading: "lazy" do %>
150+
<%= turbo_frame_tag "feeds", src: feeds_podcast_metrics_path(podcast_id: @podcast.id), loading: "lazy", target: "_top" do %>
151151
<%= render "metrics/loading_card" %>
152152
<% end %>
153153
</div>
@@ -158,7 +158,7 @@
158158
<div class="col-lg-6 d-grid mb-4">
159159
<div class="card shadow">
160160
<div class="card-header d-flex justify-content-between align-items-center">
161-
<span>Downloads by Season</span>
161+
<span class="h4 fw-bold mb-0">Downloads by Season</span>
162162
<span>All-Time</span>
163163
</div>
164164
<div class="card-body p-0">
@@ -172,7 +172,7 @@
172172
<div class="col-lg-6 d-grid mb-4">
173173
<div class="card shadow">
174174
<div class="card-header d-flex justify-content-between align-items-center">
175-
<span>Downloads by Country</span>
175+
<span class="h4 fw-bold mb-0">Downloads by Country</span>
176176
<span>Last 28 Days</span>
177177
</div>
178178
<div class="card-body p-0">
@@ -185,7 +185,7 @@
185185
<div class="col-lg-6 d-grid mb-4">
186186
<div class="card shadow">
187187
<div class="card-header d-flex justify-content-between align-items-center">
188-
<span>Downloads by App</span>
188+
<span class="h4 fw-bold mb-0">Downloads by App</span>
189189
<span>Last 28 Days</span>
190190
</div>
191191
<div class="card-body p-0">

0 commit comments

Comments
 (0)