From 01cd99b3e6a462081efd66591858b5d9b9625760 Mon Sep 17 00:00:00 2001 From: Henry Date: Mon, 5 Apr 2021 11:46:58 +0200 Subject: [PATCH] fix dashboard styling and invite count --- roomdb/sqlite/invites.go | 2 +- web/templates/admin/dashboard.tmpl | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/roomdb/sqlite/invites.go b/roomdb/sqlite/invites.go index 77445f3..19b1de6 100644 --- a/roomdb/sqlite/invites.go +++ b/roomdb/sqlite/invites.go @@ -227,7 +227,7 @@ func (i Invites) List(ctx context.Context) ([]roomdb.Invite, error) { } func (i Invites) Count(ctx context.Context) (uint, error) { - count, err := models.Members().Count(ctx, i.db) + count, err := models.Invites().Count(ctx, i.db) if err != nil { return 0, err } diff --git a/web/templates/admin/dashboard.tmpl b/web/templates/admin/dashboard.tmpl index 2e471b6..814576a 100644 --- a/web/templates/admin/dashboard.tmpl +++ b/web/templates/admin/dashboard.tmpl @@ -22,7 +22,7 @@ id="online-count" class="col-span-2 font-black text-black text-xl" >{{.OnlineCount}} -
Online +
Online
@@ -85,4 +85,5 @@ {{end}} + {{end}} \ No newline at end of file