fix dashboard styling and invite count
This commit is contained in:
parent
77b1f5268a
commit
01cd99b3e6
|
@ -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
|
||||
}
|
||||
|
|
|
@ -22,7 +22,7 @@
|
|||
id="online-count"
|
||||
class="col-span-2 font-black text-black text-xl"
|
||||
>{{.OnlineCount}}</div>
|
||||
<div class="col-span-2 text-gray-500">Online</iv>
|
||||
<div class="col-span-2 text-gray-500">Online</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
@ -85,4 +85,5 @@
|
|||
</div>
|
||||
{{end}}
|
||||
</div>
|
||||
</div>
|
||||
{{end}}
|
Loading…
Reference in New Issue