mirror of
https://github.com/lempamo/Project-Unite.git
synced 2025-03-14 03:50:23 +00:00
234 lines
9.6 KiB
Text
234 lines
9.6 KiB
Text
<!DOCTYPE html>
|
|
@{
|
|
string style = "";
|
|
if (ViewBag.Banner != null)
|
|
{
|
|
style = "background: url(\"" + ViewBag.Banner + "\") center center fixed;background-size:cover;";
|
|
}
|
|
}
|
|
|
|
<html style="@style">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<title>@ViewBag.Title • Project: Unite</title>
|
|
@Styles.Render("~/Content/css")
|
|
@Styles.Render("~/Content/bootstrap-theme.css")
|
|
@Styles.Render("~/Content/Site.css")
|
|
|
|
|
|
@Scripts.Render("~/bundles/modernizr")
|
|
|
|
</head>
|
|
<body>
|
|
@Scripts.Render("~/Scripts/highlight.js")
|
|
<div class="navbar navbar-default navbar-fixed-top">
|
|
<div> <!--Let's just add some padding there so the page doesn't look fucked.-->
|
|
<div class="navbar-header">
|
|
<button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
<span class="icon-bar"></span>
|
|
</button>
|
|
@Html.ActionLink("ShiftOS", "Index", "Home", new { area = "" }, new { @class = "navbar-brand" })
|
|
</div>
|
|
<div class="navbar-collapse collapse">
|
|
<ul class="nav navbar-nav">
|
|
<li>@Html.ActionLink("Home", "Index", "Home")</li>
|
|
<li>@Html.ActionLink("Download", "Index", "Download")</li>
|
|
<li>@Html.ActionLink("Customize", "Index", "Skins")</li>
|
|
<li class="dropdown"><a href="#" data-toggle="dropdown" class="dropdown-toggle">Community <span class="caret"></span></a>
|
|
<ul class="dropdown-menu">
|
|
<li>@Html.ActionLink("Discord", "Discord", "Home")</li>
|
|
<li>@Html.ActionLink("Forum", "Index", "Forum")</li>
|
|
<li>@Html.ActionLink("Wiki", "Index", "Wiki")</li>
|
|
<li>@Html.ActionLink("Developer blog", "Index", "Blog")</li>
|
|
<li>@Html.ActionLink("Bug tracker", "Index", "Bugs")</li>
|
|
<li><a href="http://github.com/shiftos-game/ShiftOS">GitHub</a></li>
|
|
</ul>
|
|
</li>
|
|
</ul>
|
|
@Html.Partial("_LoginPartial")
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
@if (ViewBag.Modals != null)
|
|
{
|
|
|
|
foreach (var id in ViewBag.Modals)
|
|
{
|
|
<div id="m_@id.Key" class="modal fade" role="dialog">
|
|
<div class="modal-dialog">
|
|
|
|
<!-- Modal content-->
|
|
<div class="modal-content">
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="modal">×</button>
|
|
<h4 class="modal-title">Are you sure?</h4>
|
|
</div>
|
|
<div class="modal-body">
|
|
<p>Deleting this category will delete all child categories and topics associated with it. This <strong>cannot</strong> be undone.</p>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<a href="@id.Value" class="btn btn-primary">Yes</a>
|
|
<button type="button" class="btn btn-default" data-dismiss="modal">Nope.</button>
|
|
</div>
|
|
</div>
|
|
|
|
</div>
|
|
</div>
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<div class="container clearfix body-content">
|
|
<div class="panel panel-success">
|
|
<div class="panel-body">
|
|
<p><span class="glyphicon glyphicon-exclamation-sign"></span> <strong>Welcome to Project: Unite!</strong> Things are a bit barren right now and not a lot of stuff is implemented - but feel free to explore!</p>
|
|
</div>
|
|
</div>
|
|
|
|
@if (!ACL.UserEmailConfirmed(User.Identity.Name))
|
|
{
|
|
<div class="panel panel-warning">
|
|
<div class="panel-body">
|
|
<span class="glyphicon glyphicon-info-sign"></span> <strong>Email address not confirmed!</strong> Hi! It appears that your email has not been confirmed. Please check your email. @Html.ActionLink("Resend confirmation link", "ResendConf", "Account")
|
|
</div>
|
|
</div>
|
|
}
|
|
|
|
@if (ViewBag.Moderator == true)
|
|
{
|
|
<ul class="nav nav-tabs">
|
|
<li>@Html.ActionLink("Home", "Index", "Moderator")</li>
|
|
@if (ACL.Granted(User.Identity.Name, "CanIssueBan"))
|
|
{
|
|
<li>@Html.ActionLink("Bans", "Bans", "Moderator")</li>
|
|
}
|
|
@if (ACL.Granted(User.Identity.Name, "CanEditProfiles"))
|
|
{
|
|
<li>@Html.ActionLink("Users", "Users", "Moderator")</li>
|
|
}
|
|
<li>@Html.ActionLink("Audit logs", "Logs", "Moderator")</li>
|
|
</ul>
|
|
@RenderBody();
|
|
}
|
|
else if (ViewBag.Developer == true)
|
|
{
|
|
<ul class="nav nav-pills">
|
|
<li>@Html.ActionLink("Home", "Index", "Developer")</li>
|
|
<li>@Html.ActionLink("Releases", "Releases", "Developer")</li>
|
|
<li>@Html.ActionLink("Wiki", "Wiki", "Developer")</li>
|
|
<li>@Html.ActionLink("Bugs", "Bugs", "Developer")</li>
|
|
|
|
</ul>
|
|
|
|
|
|
@RenderBody();
|
|
}
|
|
else if (ACL.Granted(User.Identity.Name, ViewBag.ACLRule))
|
|
{
|
|
if (ViewBag.Admin == true)
|
|
{
|
|
if (ACL.Granted(User.Identity.Name, "CanAccessAdminCP"))
|
|
{
|
|
|
|
<ul class="nav nav-tabs">
|
|
<li>@Html.ActionLink("Home", "Index", "Admin")</li>
|
|
|
|
@if (ACL.Granted(User.Identity.Name, "CanEditRoles"))
|
|
{
|
|
<li>@Html.ActionLink("Roles", "Roles", "Admin")</li>
|
|
<li>@Html.ActionLink("Access Control", "AccessControl", "Admin")</li>
|
|
|
|
}
|
|
|
|
@if (ACL.Granted(User.Identity.Name, "CanEditProfiles"))
|
|
{
|
|
<li>@Html.ActionLink("Users", "Users", "Admin")</li>
|
|
}
|
|
@if (ACL.Granted(User.Identity.Name, "CanEditForumCategories"))
|
|
{
|
|
<li>@Html.ActionLink("Forum Categories", "Forums", "Admin")</li>
|
|
}
|
|
<li>@Html.ActionLink("Audit logs", "Logs", "Admin")</li>
|
|
</ul>
|
|
|
|
@RenderBody();
|
|
}
|
|
else
|
|
{
|
|
<h2>Access denied.</h2>
|
|
<p>You do not have permission to access this page. Contact an admin if this is in error.</p>
|
|
}
|
|
}
|
|
else
|
|
{
|
|
|
|
@RenderBody()
|
|
|
|
}
|
|
}
|
|
else
|
|
{
|
|
<h2>Access denied.</h2>
|
|
<p>You do not have permission to access this page. Contact an admin if this is in error.</p>
|
|
|
|
}<hr />
|
|
|
|
</div>
|
|
|
|
<footer class="navbar navbar-default">
|
|
|
|
<p>© @DateTime.Now.Year Michael VanOverbeek and the ShiftOS Dev Team</p>
|
|
<p>Website styling courtesy of <a href="http://vicr123.github.io/">Victor Tran</a>.</p>
|
|
|
|
<div class="row">
|
|
<div class="col-xs-4">
|
|
<p><strong>Community</strong></p>
|
|
<ul>
|
|
<li>@Html.ActionLink("Forums", "Index", "Forum")</li>
|
|
<li>@Html.ActionLink("Discord", "Discord", "Home")</li>
|
|
<li>@Html.ActionLink("Wiki", "Index", "Wiki")</li>
|
|
<li>@Html.ActionLink("Skin Repository", "Index", "Skins")</li>
|
|
</ul>
|
|
</div>
|
|
<div class="col-xs-4">
|
|
<p><strong>Discover</strong></p>
|
|
<ul>
|
|
<li><a href="http://youtube.com/ShiftOS">YouTube</a></li>
|
|
<li><a href="http://github.com/shiftos-game">ShiftOS on GitHub</a></li>
|
|
<li><a href="http://github.com/ShiftOS-CSharp/TheShiftOSMemorial">The Memorial</a></li>
|
|
</ul>
|
|
</div>
|
|
<div class="col-xs-4">
|
|
<p><strong>Help & About</strong></p>
|
|
<ul>
|
|
<li>@Html.ActionLink("Terms of service", "TOS", "Legal")</li>
|
|
<li>@Html.ActionLink("Privacy Policy", "Privacy", "Legal")</li>
|
|
<li>@Html.ActionLink("About Project: Unite", "AboutUnite", "Home")</li>
|
|
<li>@Html.ActionLink("About ShiftOS", "About", "Home")</li>
|
|
<li>@Html.ActionLink("Get in touch", "Contact", "Home")</li>
|
|
</ul>
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<p><strong>We'd like to formally thank Philip Adams.</strong> Without him, we would not exist. Phil has contributed years of work and help to ShiftOS and is the original developer of the game. He has written code that is still used to this day in modern ShiftOS, and much of the ideas and mechanics in the game are from his mind.</p>
|
|
<p>Check Phil out on YouTube: <a href="http://youtube.com/OSFirstTimer">OSFirstTimer</a> | <a href="https://www.youtube.com/user/AstralPhaser">AstralPhaser</a> | <a href="https://www.youtube.com/channel/UC2wLfbZrHQOxP2e5zkxYRjA">YouTube Millionaire</a></p>
|
|
|
|
@if (ACL.Granted(User.Identity.Name, "CanAccessAdminCP"))
|
|
{
|
|
<p>@Html.ActionLink("Administrator Control Panel", "Index", "Admin")</p>}
|
|
</footer>
|
|
|
|
|
|
|
|
|
|
@Scripts.Render("~/bundles/jquery")
|
|
@Scripts.Render("~/bundles/bootstrap")
|
|
@RenderSection("scripts", required: false)
|
|
</body>
|
|
</html>
|