Skip to content

Commit 13fcb9c

Browse files
Move weekly merchants list below graphs on /stats
1 parent 2305452 commit 13fcb9c

File tree

2 files changed

+8
-8
lines changed

2 files changed

+8
-8
lines changed

app/views/statistics/_weekly_merchants_table.html.slim

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
.space-y-5.mb-5
1+
.space-y-5
22
ul.menu.menu-horizontal.menu-sm.gap-2.w-full.justify-center
33
- (1.week.ago.to_date..Date.current).each do |d|
44
li
@@ -47,5 +47,3 @@
4747

4848
.text-xs.text-center.font-semibold.italic
4949
= t('.merchants_added_on_title', date: l(date))
50-
51-
.divider.divider-primary.w-sm.mx-auto

app/views/statistics/show.html.slim

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,6 @@ article
1313
categories_statistics: @categories_statistics
1414

1515
.article-body.max-w-full class="!px-5"
16-
.max-w-6xl.mx-auto
17-
= turbo_frame_tag :weekly_merchants, src: daily_merchants_statistics_path(date: @created_on) do
18-
.text-center
19-
span.loading.loading-dots.loading-xl
20-
2116
.space-y-5
2217
.flex.flex-col.lg:flex-row.items-center.gap-5
2318
figure.w-full.chart
@@ -56,3 +51,10 @@ article
5651

5752
figure.w-full.flex-1.chart
5853
= pie_chart @coins_statistics[:by_coins], title: t('.merchants_and_coins_title')
54+
55+
.divider.divider-primary.w-sm.mx-auto
56+
57+
.max-w-6xl.mx-auto
58+
= turbo_frame_tag :weekly_merchants, src: daily_merchants_statistics_path(date: @created_on), loading: :lazy do
59+
.text-center
60+
span.loading.loading-dots.loading-xl

0 commit comments

Comments
 (0)