4caa4655e2
changed Event to GameEvent finally fixed the stats NaN check ip for bans consolidated console, profile, and logout into dropdown make sure game is iw4 before using :^ in say fix pm not showing from name if in web console show time left of temban on profile
148 lines
8.3 KiB
Plaintext
148 lines
8.3 KiB
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
|
<title>@ViewBag.Title | IW4MAdmin</title>
|
|
<meta property="og:title" content="@ViewBag.Title | IW4MAdmin">
|
|
<meta property="og:type" content="website">
|
|
<meta property="og:image" content="@ViewBag.Url/images/icon.png">
|
|
<meta property="og:description" content="@ViewBag.Description">
|
|
<meta property="og:url" content="@ViewBag.Url">
|
|
<meta name="description" content="@ViewBag.Description">
|
|
<meta name="keywords" content="@ViewBag.Keywords">
|
|
<link href='https://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css'>
|
|
<environment include="Development">
|
|
<link rel="stylesheet" href="~/css/bootstrap-custom.css" />
|
|
<link rel="stylesheet" href="~/lib/open-iconic/font/css/open-iconic-bootstrap.css" />
|
|
<link rel="stylesheet" href="~/css/profile.css" />
|
|
</environment>
|
|
<environment include="Production">
|
|
<link rel="stylesheet" href="~/css/global.min.css" />
|
|
</environment>
|
|
</head>
|
|
<body>
|
|
<header>
|
|
<nav class="navbar navbar-expand-md navbar-dark bg-dark">
|
|
@Html.ActionLink("IW4MAdmin", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
|
|
<button class="navbar-toggler" type="button" data-toggle="collapse" data-target="#navbarCollapse" aria-controls="navbarCollapse" aria-expanded="false" aria-label="Toggle navigation">
|
|
<span class="navbar-toggler-icon"></span>
|
|
</button>
|
|
<div class="collapse navbar-collapse" id="navbarCollapse">
|
|
<ul class="navbar-nav mr-auto">
|
|
<li class="nav-item text-center text-md-left">@Html.ActionLink("Home", "Index", "Home", new { area = "" }, new { @class = "nav-link" })</li>
|
|
<li class="nav-item text-center text-md-left">@Html.ActionLink("Penalties", "List", "Penalty", new { area = "" }, new { @class = "nav-link" })</li>
|
|
<li class="nav-item text-center text-md-left">@Html.ActionLink("Admins", "PrivilegedAsync", "Client", new { area = "" }, new { @class = "nav-link" })</li>
|
|
<li class="nav-item text-center text-md-left"></li>
|
|
@if (!string.IsNullOrEmpty(ViewBag.DiscordLink))
|
|
{
|
|
<li class="nav-item text-center text-md-left"><a href="@ViewBag.DiscordLink" class="nav-link" target="_blank">Discord</a></li>
|
|
}
|
|
@if (ViewBag.Authorized)
|
|
{
|
|
<li class="nav-link dropdown text-center text-md-left p-0">
|
|
<a href="#" class="nav-link oi oi-person dropdown-toggle oi-fix-navbar w-100" id="account_dropdown" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></a>
|
|
|
|
<div class="dropdown-menu p-0" aria-labelledby="account_dropdown">
|
|
@Html.ActionLink("Console", "Index", "Console", new { area = "" }, new
|
|
{
|
|
@class = "dropdown-item bg-dark text-muted text-center text-md-left",
|
|
title = "Web Console"
|
|
})
|
|
@Html.ActionLink("Profile", "ProfileAsync", "Client", new { id = ViewBag.User.ClientId }, new
|
|
{
|
|
@class = "dropdown-item bg-dark text-muted text-center text-md-left",
|
|
title = "Client Profile",
|
|
})
|
|
@Html.ActionLink("Logout", "LogoutAsync", "Account", new { area = "" }, new
|
|
{
|
|
@class = "dropdown-item bg-dark text-muted text-center text-md-left",
|
|
title = "Logout of account"
|
|
})
|
|
</div>
|
|
</li>
|
|
<li class="nav-item text-center text-md-left"></li>
|
|
<li class="nav-item text-center text-md-left"></li>
|
|
}
|
|
else
|
|
{
|
|
<li class="nav-item text-center text-md-left">
|
|
<a href="#" id="profile_action_login_btn" class="nav-link profile-action oi oi-key oi-fix-navbar w-100" title="Login" data-action="login" aria-hidden="true"></a>
|
|
</li>
|
|
}
|
|
</ul>
|
|
<form class="form-inline text-primary pt-3 pb-3" method="get" action="/Client/FindAsync">
|
|
<input id="client_search" name="clientName" class="form-control mr-auto ml-auto mr-md-2" type="text" placeholder="Find Player" />
|
|
</form>
|
|
</div>
|
|
</nav>
|
|
</header>
|
|
<!-- loading icon -->
|
|
<div class="oi oi-loop-circular layout-loading-icon"></div>
|
|
|
|
<!-- Main Modal -->
|
|
<div class="modal fade" id="mainModal" tabindex="-1" role="dialog" aria-labelledby="mainModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content bg-dark">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title" id="mainModalLabel"></h5>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true" class="text-danger">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<!-- End Main Modal -->
|
|
<!-- Action Modal -->
|
|
<div class="modal fade" id="actionModal" tabindex="-1" role="dialog" aria-labelledby="actionModalLabel" aria-hidden="true">
|
|
<div class="modal-dialog" role="document">
|
|
<div class="modal-content bg-dark">
|
|
<div class="modal-header">
|
|
<h5 class="modal-title" id="actionModalLabel">IW4MAdmin</h5>
|
|
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
|
<span aria-hidden="true" class="text-danger">×</span>
|
|
</button>
|
|
</div>
|
|
<div class="modal-body">
|
|
<div class="modal-message text-danger mb-3"></div>
|
|
<div class="modal-body-content"></div>
|
|
</div>
|
|
<!--<div class="modal-footer">
|
|
<button type="button" class="btn btn-primary">Action</button>
|
|
<button type="button" class="btn btn-secondary" data-dismiss="modal">Cancel</button>
|
|
</div>-->
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div id="target_id">
|
|
@RenderSection("targetid", required: false)
|
|
</div>
|
|
<!-- End Action Modal -->
|
|
|
|
<div class="container p-4">
|
|
@RenderBody()
|
|
<footer></footer>
|
|
</div>
|
|
<environment include="Development">
|
|
<script type="text/javascript" src="~/lib/jQuery/dist/jquery.js"></script>
|
|
<script type="text/javascript" src="~/lib/moment/moment.js"></script>
|
|
<script type="text/javascript" src="~/lib/moment-timezone/builds/moment-timezone-with-data.js"></script>
|
|
<script type="text/javascript" src="~/lib/bootstrap/dist/js/bootstrap.js"></script>
|
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/canvasjs/1.7.0/canvasjs.min.js"></script>
|
|
<script type="text/javascript" src="~/js/action.js"></script>
|
|
<script type="text/javascript" src="~/js/search.js"></script>
|
|
</environment>
|
|
<environment include="Production">
|
|
<script type="text/javascript" src="~/lib/jQuery/dist/jquery.min.js"></script>
|
|
<script type="text/javascript" src="~/lib/moment/min/moment.min.js"></script>
|
|
<script type="text/javascript" src="~/lib/moment-timezone/builds/moment-timezone.min.js"></script>
|
|
<script type="text/javascript" src="~/lib/bootstrap/dist/js/bootstrap.min.js"></script>
|
|
<script type="text/javascript" src="https://cdnjs.cloudflare.com/ajax/libs/canvasjs/1.7.0/canvasjs.min.js"></script>
|
|
<script type="text/javascript" src="~/js/global.min.js"></script>
|
|
</environment>
|
|
@RenderSection("scripts", required: false)
|
|
</body>
|
|
</html> |