Merge pull request #410 from Moonlight-Panel/v2_AdminPageLinkFix

Fixed Linking and Cards on Admin Page
This commit is contained in:
Masu Baumgartner 2024-05-17 08:42:01 +02:00 committed by GitHub
commit c27b1689f3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 10 additions and 40 deletions

View file

@ -11,14 +11,14 @@
else
{
<div class="row">
<div class="col-3 text-center d-flex align-items-center">
<div class="col-auto text-center d-flex align-items-center px-5">
<i class="bx bx-lg text-white align-middle @(Icon)"></i>
</div>
<div class="col-9">
<div class="col">
<div class="fw-semibold text-primary fs-2">
@Value
</div>
<div class="fs-4 mt-2">
<div class="fs-4 mt-2 text-white">
@Description
</div>
</div>

View file

@ -9,47 +9,17 @@
@attribute [RequirePermission(999)]
<LazyLoader Load="Load">
<div class="row">
<div class="row g-4">
<div class="col-12 col-lg-6 col-xl">
<a class="mt-4 card" href="/admin/servers">
<div class="card-body">
<div class="row align-items-center gx-0">
<div class="col">
<h6 class="text-uppercase text-muted mb-2">
Users
</h6>
<span class="h2 mb-0">
@UserCount
</span>
</div>
<div class="col-auto">
<span class="h2 text-muted mb-0">
<i class="text-primary bx bxs-group bx-lg"></i>
</span>
</div>
</div>
</div>
<a href="/admin/servers">
<StatCard Value="@UserCount.ToString()" Description="Users" Icon="bxs-group">
</StatCard>
</a>
</div>
<div class="col-12 col-lg-6 col-xl">
<a class="mt-4 card" href="/admin/users">
<div class="card-body">
<div class="row align-items-center gx-0">
<div class="col">
<h6 class="text-uppercase text-muted mb-2">
Servers
</h6>
<span class="h2 mb-0">
@ServerCount
</span>
</div>
<div class="col-auto">
<span class="h2 text-muted mb-0">
<i class="text-primary bx bx-server bx-lg"></i>
</span>
</div>
</div>
</div>
<a href="/admin/servers">
<StatCard Value="@ServerCount.ToString()" Description="Servers" Icon="bxs-server">
</StatCard>
</a>
</div>
</div>