Skip to content

Commit

Permalink
feat(stats): mise à jour des titres des sections de la page de stats …
Browse files Browse the repository at this point in the history
…hedbos
  • Loading branch information
vincentporte committed Sep 9, 2024
1 parent c56339c commit 1e1bd6e
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 16 deletions.
8 changes: 6 additions & 2 deletions lacommunaute/stats/tests/__snapshots__/tests_views.ambr
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@
<div class="s-section__row row" id="most_rated">
<div class="s-section__col col-12">
<div class="c-box mb-3 mb-md-5">
<h2>Les 1 fiches pratiques les plus notées sur la période</h2>
<h2>
Les 1 fiches pratiques les plus notées pendant la semaine du 20 mai 2024 au 26 mai 2024
</h2>
<table class="table">
<thead>
<tr>
Expand Down Expand Up @@ -72,7 +74,9 @@
<div class="s-section__row row" id="most_viewed">
<div class="s-section__col col-12">
<div class="c-box mb-3 mb-md-5">
<h2>Les 2 fiches pratiques les plus lues sur la période</h2>
<h2>
Les 2 fiches pratiques les plus lues pendant la semaine du 20 mai 2024 au 26 mai 2024
</h2>
<table class="table">
<thead>
<tr>
Expand Down
32 changes: 18 additions & 14 deletions lacommunaute/templates/stats/forum_stat_week_archive.html
Original file line number Diff line number Diff line change
Expand Up @@ -29,24 +29,14 @@ <h1 class="s-title-01__title h1">
</div>
</div>
</section>
<section class="s-section">
<div class="s-section__container container">
<div class="s-section__row row">
<div class="s-section__col col-12">
<div class="c-box mb-3 mb-md-5">
<h2>Trafic global sur la période</h2>
<canvas id="statChart"></canvas>
</div>
</div>
</div>
</div>
</section>
<section class="s-section">
<div class="s-section__container container">
<div class="s-section__row row" id="most_viewed">
<div class="s-section__col col-12">
<div class="c-box mb-3 mb-md-5">
<h2>Les {{ object_list|length }} fiches pratiques les plus lues sur la période</h2>
<h2>
Les {{ object_list|length }} fiches pratiques les plus lues pendant la semaine du {{ week|date:"j F Y" }} au {{ end_date|date:"j F Y" }}
</h2>
<table class="table">
<thead>
<tr>
Expand Down Expand Up @@ -77,7 +67,9 @@ <h2>Les {{ object_list|length }} fiches pratiques les plus lues sur la période<
<div class="s-section__row row" id="most_rated">
<div class="s-section__col col-12">
<div class="c-box mb-3 mb-md-5">
<h2>Les {{ rated_forums|length }} fiches pratiques les plus notées sur la période</h2>
<h2>
Les {{ rated_forums|length }} fiches pratiques les plus notées pendant la semaine du {{ week|date:"j F Y" }} au {{ end_date|date:"j F Y" }}
</h2>
<table class="table">
<thead>
<tr>
Expand All @@ -101,6 +93,18 @@ <h2>Les {{ rated_forums|length }} fiches pratiques les plus notées sur la péri
</div>
</div>
</section>
<section class="s-section">
<div class="s-section__container container">
<div class="s-section__row row">
<div class="s-section__col col-12">
<div class="c-box mb-3 mb-md-5">
<h2>Trafic quotidien jusqu'au {{ end_date|date:"j F Y" }}</h2>
<canvas id="statChart"></canvas>
</div>
</div>
</div>
</div>
</section>
<section class="s-section">
<div class="s-section__container container">
<div class="s-section__row row">
Expand Down

0 comments on commit 1e1bd6e

Please sign in to comment.