Compare commits
3 Commits
f9b53da19c
...
ba4fc0cac5
Author | SHA1 | Date |
---|---|---|
Lukáš Kucharczyk | ba4fc0cac5 | |
Lukáš Kucharczyk | 8cb0276215 | |
Lukáš Kucharczyk | f9a51ee83d |
|
@ -1483,10 +1483,6 @@ th label {
|
||||||
display: block;
|
display: block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.md\:w-1\/2 {
|
|
||||||
width: 50%;
|
|
||||||
}
|
|
||||||
|
|
||||||
.md\:w-auto {
|
.md\:w-auto {
|
||||||
width: auto;
|
width: auto;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,7 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if field.name == "timestamp_start" or field.name == "timestamp_end" %}
|
{% if field.name == "timestamp_start" or field.name == "timestamp_end" %}
|
||||||
<td>
|
<td>
|
||||||
<div class="basic-button-container">
|
<div class="basic-button-container" hx-boost="false">
|
||||||
<button class="basic-button" data-target="{{ field.name }}" data-type="now">Set to now</button>
|
<button class="basic-button" data-target="{{ field.name }}" data-type="now">Set to now</button>
|
||||||
<button class="basic-button"
|
<button class="basic-button"
|
||||||
data-target="{{ field.name }}"
|
data-target="{{ field.name }}"
|
||||||
|
|
|
@ -18,8 +18,6 @@
|
||||||
</select>
|
</select>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
<div class="flex flex-column flex-wrap justify-center">
|
|
||||||
<div class="md:w-1/2">
|
|
||||||
<h1 class="text-5xl text-center my-6">Playtime</h1>
|
<h1 class="text-5xl text-center my-6">Playtime</h1>
|
||||||
<table class="responsive-table">
|
<table class="responsive-table">
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -61,8 +59,6 @@
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
|
||||||
<div class="md:w-1/2">
|
|
||||||
<h1 class="text-5xl text-center my-6">Purchases</h1>
|
<h1 class="text-5xl text-center my-6">Purchases</h1>
|
||||||
<table class="responsive-table">
|
<table class="responsive-table">
|
||||||
<tbody>
|
<tbody>
|
||||||
|
@ -92,8 +88,6 @@
|
||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<h1 class="text-5xl text-center my-6">Top games by playtime</h1>
|
<h1 class="text-5xl text-center my-6">Top games by playtime</h1>
|
||||||
<table class="responsive-table">
|
<table class="responsive-table">
|
||||||
<thead>
|
<thead>
|
||||||
|
|
|
@ -30,11 +30,11 @@ from .models import Edition, Game, Platform, Purchase, Session
|
||||||
|
|
||||||
def model_counts(request):
|
def model_counts(request):
|
||||||
return {
|
return {
|
||||||
"game_available": Game.objects.count() != 0,
|
"game_available": Game.objects.exists(),
|
||||||
"edition_available": Edition.objects.count() != 0,
|
"edition_available": Edition.objects.exists(),
|
||||||
"platform_available": Platform.objects.count() != 0,
|
"platform_available": Platform.objects.exists(),
|
||||||
"purchase_available": Purchase.objects.count() != 0,
|
"purchase_available": Purchase.objects.exists(),
|
||||||
"session_count": Session.objects.count(),
|
"session_count": Session.objects.exists(),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue