From 5b7f5160b2ba9cb6a806b09404efaf76ec0fb813 Mon Sep 17 00:00:00 2001 From: RaidMax Date: Fri, 22 Apr 2022 16:56:29 -0500 Subject: [PATCH] show login token for longer period --- WebfrontCore/Views/Action/_ActionForm.cshtml | 2 +- .../Views/Client/Profile/Index.cshtml | 11 +++++++ WebfrontCore/Views/Shared/_Layout.cshtml | 2 -- WebfrontCore/Views/Shared/_LeftNavBar.cshtml | 2 +- WebfrontCore/wwwroot/js/action.js | 33 +++++++------------ 5 files changed, 24 insertions(+), 26 deletions(-) diff --git a/WebfrontCore/Views/Action/_ActionForm.cshtml b/WebfrontCore/Views/Action/_ActionForm.cshtml index 961041aae..c2dd3fd3f 100644 --- a/WebfrontCore/Views/Action/_ActionForm.cshtml +++ b/WebfrontCore/Views/Action/_ActionForm.cshtml @@ -61,6 +61,6 @@ }
- Close + Close
diff --git a/WebfrontCore/Views/Client/Profile/Index.cshtml b/WebfrontCore/Views/Client/Profile/Index.cshtml index 76bdfdf9f..72a2689ac 100644 --- a/WebfrontCore/Views/Client/Profile/Index.cshtml +++ b/WebfrontCore/Views/Client/Profile/Index.cshtml @@ -297,6 +297,17 @@ Icon = "oi-flag" }); } + + if (Model.LevelInt < (int)ViewBag.User.Level && Model.Online) + { + menuItems.Items.Add(new SideContextMenuItem + { + Title = "Kick", + IsButton = true, + Reference = "kick", + Icon = "oi-circle-x", + }); + } if ((Model.LevelInt < (int)ViewBag.User.Level && !Model.HasActivePenalty || isTempBanned) && ViewBag.Authorized) { diff --git a/WebfrontCore/Views/Shared/_Layout.cshtml b/WebfrontCore/Views/Shared/_Layout.cshtml index 1373b8995..02a281831 100644 --- a/WebfrontCore/Views/Shared/_Layout.cshtml +++ b/WebfrontCore/Views/Shared/_Layout.cshtml @@ -139,12 +139,10 @@ -
@await RenderSectionAsync("targetid", required: false)
-