Slightly improve stats pages

This commit is contained in:
William Kuijltjes
2023-11-25 07:45:01 +01:00
committed by Lars van Rhijn
parent 66ac1076d3
commit 6a9c22b7f8
2 changed files with 29 additions and 21 deletions

View File

@ -28,6 +28,7 @@
<th>#</th> <th>#</th>
<th>User</th> <th>User</th>
<th style="text-align: right;"># Songs</th> <th style="text-align: right;"># Songs</th>
<th></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -54,6 +55,7 @@
<th>#</th> <th>#</th>
<th>User</th> <th>User</th>
<th style="text-align: right;"># Requests</th> <th style="text-align: right;"># Requests</th>
<th></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -109,6 +111,7 @@
<th>#</th> <th>#</th>
<th>User</th> <th>User</th>
<th style="text-align: right;"># Unique</th> <th style="text-align: right;"># Unique</th>
<th></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -176,7 +179,9 @@
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<h2>Most played uploaders</h2> <h2>Most played uploaders</h2>
<p>These are the {{ stats.stats_top_count }} people whose songs are requested most often by other people, as shown in the left column. The right column shows how many times that person has queued his own songs.</p> <p>These are the {{ stats.stats_top_count }} people whose songs are requested most often by other
people, as shown in the left column. The right column shows how many times that person has queued
their own songs.</p>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
@ -202,7 +207,7 @@
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<h2>Most played songs last 14 days</h2> <h2>Most played songs last 14 days</h2>
<p>These songs are played the {{ stats.stats_top_count }} most in the last two weeks.</p> <p>These {{ stats.stats_top_count }} songs have been requested the most in the last two weeks.</p>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>

View File

@ -21,9 +21,10 @@
{% endif %} {% endif %}
<div class="col-md-6"> <div class="col-md-6">
<h2>Most played songs</h2> <h2>Most played songs</h2>
<p>You have requested <strong> {{ stats.unique_requests }} </strong> different <p>You have requested <strong> {{ stats.unique_requests }} </strong> different songs a total of
songs a total of <strong> {{ stats.total_requests }} </strong> times. This <strong> {{ stats.total_requests }} </strong> times. This means
means <strong> {% widthratio stats.unique_requests stats.total_requests 100 %}% </strong> of your requests have been unique. </p> <strong> {% widthratio stats.unique_requests stats.total_requests 100 %}% </strong> of your requests
have been unique. These are the song you have requested the most.</p>
<h4>Top {{ stats.stats_top_count }}:</h4> <h4>Top {{ stats.stats_top_count }}:</h4>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped"> <table class="table table-striped">
@ -50,6 +51,7 @@
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<h2>Most played artists</h2> <h2>Most played artists</h2>
<p>These are the artists you have requested the most.</p>
<h4>Top {{ stats.stats_top_count }}:</h4> <h4>Top {{ stats.stats_top_count }}:</h4>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped"> <table class="table table-striped">
@ -57,7 +59,7 @@
<tr> <tr>
<th>#</th> <th>#</th>
<th>Artist</th> <th>Artist</th>
<th style="text-align: right;"># Requests</th> <th style="white-space:nowrap; text-align: right;"># Requests</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -74,11 +76,11 @@
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<h2>Uploads requested</h2> <h2>Uploads requested</h2>
<p> You have uploaded a total of <strong> {{stats.total_uploads }} </strong> songs. The left column <p>You have uploaded a total of <strong> {{stats.total_uploads }} </strong> songs. The left column
shows how many times these have been requested by other people. The right column shows shows how many times these have been requested by other people. The right column shows how many times
how many times you requested your own songs. In total your songs you requested your own songs. In total your songs have been queued
have been queued <strong> {{stats.total_played_uploads }} </strong> times by others and <strong> {{stats.total_played_uploads }} </strong> times by others and
<strong> {{stats.total_played_user_uploads }} </strong> by yourself. <strong> {{stats.total_played_user_uploads }} </strong> times by yourself.</p>
<h4>Top {{ stats.stats_top_count }}:</h4> <h4>Top {{ stats.stats_top_count }}:</h4>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped"> <table class="table table-striped">
@ -87,8 +89,8 @@
<th>#</th> <th>#</th>
<th>Artist</th> <th>Artist</th>
<th>Title</th> <th>Title</th>
<th style="text-align: right;">Others</th> <th style="white-space:nowrap; text-align: right;"># Others</th>
<th>You</th> <th style="white-space:nowrap;"># You</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -107,8 +109,8 @@
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<h2>Upload artists requested</h2> <h2>Upload artists requested</h2>
<p> The left column shows how many times songs from artists uploaded by you have been requested by <p>The left column shows how many times songs from artists uploaded by you have been requested by
other people. The right column shows how many times you requested those songs. other people. The right column shows how many times you requested those songs.</p>
<h4>Top {{ stats.stats_top_count }}:</h4> <h4>Top {{ stats.stats_top_count }}:</h4>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped"> <table class="table table-striped">
@ -116,8 +118,8 @@
<tr> <tr>
<th>#</th> <th>#</th>
<th>Artist</th> <th>Artist</th>
<th style="text-align: right;">Others</th> <th style="white-space:nowrap; text-align: right;"># Others</th>
<th>You</th> <th style="white-space:nowrap;"># You</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -135,14 +137,15 @@
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<h2>Most played uploaders</h2> <h2>Most played uploaders</h2>
<p> The people whose songs you have queued the most are:</p> <p>These are the people whose songs you have requested the most.</p>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th>#</th> <th>#</th>
<th>Uploader</th> <th>Uploader</th>
<th style="text-align: right;"># Requests</th> <th style="white-space:nowrap; text-align: right;"># Requests</th>
<th></th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>
@ -160,14 +163,14 @@
</div> </div>
<div class="col-md-6"> <div class="col-md-6">
<h2>Biggest fans</h2> <h2>Biggest fans</h2>
<p> The people that queued your songs the most are:</p> <p>These are the people that have requested your songs the most.</p>
<div class="table-responsive"> <div class="table-responsive">
<table class="table table-striped"> <table class="table table-striped">
<thead> <thead>
<tr> <tr>
<th>#</th> <th>#</th>
<th>User</th> <th>User</th>
<th style="text-align: right;"># Requests</th> <th style="white-space:nowrap; text-align: right;"># Requests</th>
</tr> </tr>
</thead> </thead>
<tbody> <tbody>