mirror of https://github.com/Ombi-app/Ombi
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
92 lines
3.4 KiB
92 lines
3.4 KiB
@using Nancy.Security
|
|
@using Nancy.Session
|
|
@using PlexRequests.UI.Models
|
|
@inherits Nancy.ViewEngines.Razor.NancyRazorViewBase
|
|
<html>
|
|
<head>
|
|
<title>Plex Requests</title>
|
|
<!-- Styles -->
|
|
<link rel="stylesheet" href="~/Content/custom.min.css" type="text/css"/>
|
|
<link rel="stylesheet" href="~/Content/bootstrap.css" type="text/css"/>
|
|
<link rel="stylesheet" href="~/Content/font-awesome.css" type="text/css"/>
|
|
<link rel="stylesheet" href="~/Content/pace.min.css" type="text/css"/>
|
|
|
|
|
|
<!-- Scripts -->
|
|
<script src="/Content/jquery-2.2.1.min.js"></script>
|
|
<script src="/Content/handlebars.min.js"></script>
|
|
<script src="/Content/bootstrap.min.js"></script>
|
|
<script src="/Content/bootstrap-notify.min.js"></script>
|
|
<script src="/Content/site.js"></script>
|
|
<script src="/Content/pace.min.js"></script>
|
|
</head>
|
|
<body>
|
|
|
|
|
|
<nav class="navbar navbar-default">
|
|
<div class="container-fluid">
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1">
|
|
<span class="sr-only">Toggle navigation</span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
<a class="navbar-brand" href="#">Plex Requests</a>
|
|
</div>
|
|
|
|
<div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
|
|
<ul class="nav navbar-nav">
|
|
@if (Context.Request.Path == "/search")
|
|
{
|
|
<li class="active"><a href="/search">Search</a></li>
|
|
}
|
|
else
|
|
{
|
|
<li><a href="/search">Search</a></li>
|
|
}
|
|
|
|
|
|
@if (Context.Request.Path == "/requests")
|
|
{
|
|
<li class="active"><a href="/requests">Requests</a></li>
|
|
}
|
|
else
|
|
{
|
|
<li><a href="/requests">Requests</a></li>
|
|
}
|
|
@if (Context.CurrentUser.IsAuthenticated())
|
|
{
|
|
if (Context.Request.Path == "/admin")
|
|
{
|
|
<li class="active"><a href="/admin">Admin</a></li>
|
|
}
|
|
else
|
|
{
|
|
<li><a href="/admin">Admin</a></li>
|
|
}
|
|
}
|
|
</ul>
|
|
<ul class="nav navbar-nav navbar-right">
|
|
@if (!Context.CurrentUser.IsAuthenticated())
|
|
{
|
|
<li><a href="/login">Admin</a></li>
|
|
}
|
|
else
|
|
{
|
|
<li><a href="/logout">Admin Logout</a></li>
|
|
}
|
|
@if (Context.Request.Session[SessionKeys.UsernameKey] != null)
|
|
{
|
|
<li><a href="/userlogin/logout">Logout</a></li>
|
|
}
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</nav>
|
|
|
|
<div class="container">
|
|
@RenderBody()
|
|
</div>
|
|
</body>
|
|
</html> |