Compare commits

...

2 Commits

Author SHA1 Message Date
Lukáš Kucharczyk f9b53da19c
Use better way to find out if model record exists
Django CI/CD / test (push) Successful in 1m1s Details
Django CI/CD / build-and-push (push) Successful in 1m22s Details
2023-11-21 17:42:57 +01:00
Lukáš Kucharczyk 9a0e505aae
Remove experimental layout 2023-11-21 17:42:41 +01:00
3 changed files with 5 additions and 13 deletions

View File

@ -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;
} }

View File

@ -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>

View File

@ -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(),
} }