Admin Panel improvements

Replaced Home to Status, added a fallback option for older browsers, added a way to go to the user details on the user list.
This commit is contained in:
tersiswilvin 2022-09-02 23:25:39 -07:00
parent dfdffdfcfb
commit e22a442c3f
4 changed files with 22 additions and 13 deletions

View File

@ -70,6 +70,7 @@ h6 {
.NewPanel .AdminSubHeader {
width: 100%;
height: 25px;
background: #333; /*/Fallback for older browsers/*/
background: linear-gradient(180deg, #333, #191919);
box-shadow: 0 2px 8px 0 #000;
z-index: 1;
@ -88,7 +89,7 @@ h6 {
text-align: center;
list-style: none;
float: left;
padding: 3px 0;
padding: 5px 0;
color: #fff;
}
.NewPanel .AdminSubHeader li a {
@ -232,6 +233,7 @@ display: flex;
.NewPanel.AdminPanel .Stat-Separator {
width: 50%;
height: 1px;
background: #555; /*/Fallback for older browsers/*/
background: linear-gradient(90deg,rgb(85, 85, 85,0) 0%, #555 50%, rgb(85, 85, 85,0) 100%);
display: block;
margin: auto;
@ -245,6 +247,7 @@ display: flex;
display: -webkit-box;
display: -webkit-flex;
display: -ms-flexbox;
display: block; /*/Fallback for older browsers/*/
display: flex;
align-items: center;
align-content: center;
@ -337,6 +340,7 @@ display: flex;
border-radius: 50%;
}
.NewPanel .website {
background: #0087e0; /*/Fallback for older browsers/*/
background: linear-gradient(0deg, #0087e0 0%, #005085 49%,#005a85 50%, #0099ff 95%, #fff 100%);
border: 2px solid #111;
width: 12px;
@ -346,6 +350,7 @@ display: flex;
margin: -8px;
}
.NewPanel .offline {
background: #a3a3a3; /*/Fallback for older browsers/*/
background: linear-gradient(0deg, #a3a3a3 0%, #7a7a7a 49%, #797979 50%, #c9c9c9 95%, #fff 100%);
border: 2px solid #111;
width: 12px;

View File

@ -6,7 +6,7 @@
@section('Body')
<div id="Body" style="width: 970px;">
<h2 class="MainHeader">
Home
Status
</h2>
<div class="StatsContainer">
<div class="Stats-Wrapper">
@ -33,6 +33,14 @@
Online within the past day.
</span>
</div>
<div class="Stats-Wrapper">
<span class="Stats Counter">
{{ App\Models\User::where('last_seen', '>', Carbon\Carbon::now()->subMinute()->toDateTimeString())->count(); }}
</span>
<span class="Stats">
Currently Online.
</span>
</div>
<br>
<span class="Stat-Separator"></span>
<br>

View File

@ -48,9 +48,13 @@
<div class="text-secondary">
Username:
</div>
<a href="{{ route('profile', $user->id) }}" class="AuthenticatedUserName">
<a href="{{ route('profile', $user->id) }}" title="{{ $user->name }}'s profile" class="AuthenticatedUserName">
{{ $user->name }}
</a>
@unless (request()->query('q'))
<a href="/iphone/users?q={{ $user->id }}&searchBy=id" title="{{ $user->name }}'s Details" class="AuthenticatedUserName userInfo"></a>
@endunless
<a href="/iphone/tree?q={{ $user->id }}&searchBy=id" title="{{ $user->name }}'s Invite Tree" class="forwardArrow AuthenticatedUserName"></a>
</div>
@if ($user->settings->changed_name)
<div class="Row">
@ -164,7 +168,7 @@
<div class="text-secondary">
Invited By
</div>
<a href="{{ route('profile', App\Models\User::where('id', $user->invited_by)->first()->id) }}" class="AuthenticatedUserName">
<a href="{{ route('profile', App\Models\User::where('id', $user->invited_by)->first()->id) }}" title="{{ App\Models\User::where('id', $user->invited_by)->first()->name }}'s Profile" class="AuthenticatedUserName">
{{ App\Models\User::where('id', $user->invited_by)->first()->name }}
</a>
@unless (request()->query('q'))
@ -172,14 +176,6 @@
@endunless
<a href="/iphone/tree?q={{ App\Models\User::where('id', $user->invited_by)->first()->id }}&searchBy=id" title="{{ App\Models\User::where('id', $user->invited_by)->first()->name }}'s Invite Tree" class="forwardArrow AuthenticatedUserName"></a>
</div>
<div class="Row">
<div class="text-secondary">
View
</div>
<a href="/iphone/tree?q={{ $user->id }}&searchBy=id" title="View invite tree from {{ $user->name }}" class="AuthenticatedUserName">
Invite Tree
</a>
</div>
<div class="Row">
<div class="text-secondary">
Type:

View File

@ -43,7 +43,7 @@
</li>
<li>
<a class="sub-menu" href="{{ route('admin_index') }}">
Home
Status
</a>
</li>
<li>