From cdc61eb4ea5309769ad4db84d92594e4dc3dff67 Mon Sep 17 00:00:00 2001 From: Michael Date: Mon, 20 Mar 2017 16:45:17 -0400 Subject: Initial commit (azure deploy test) --- Project-Unite/Views/Shared/_Layout.cshtml | 162 ++++++++++++++++++++++++++++++ 1 file changed, 162 insertions(+) create mode 100644 Project-Unite/Views/Shared/_Layout.cshtml (limited to 'Project-Unite/Views/Shared/_Layout.cshtml') diff --git a/Project-Unite/Views/Shared/_Layout.cshtml b/Project-Unite/Views/Shared/_Layout.cshtml new file mode 100644 index 0000000..0e64010 --- /dev/null +++ b/Project-Unite/Views/Shared/_Layout.cshtml @@ -0,0 +1,162 @@ + + + + + + @ViewBag.Title - My ASP.NET Application + @Styles.Render("~/Content/css") + @Styles.Render("~/Content/bootstrap-theme.css") + @Styles.Render("~/Content/Site.css") + + + @Scripts.Render("~/bundles/modernizr") + + + + @Scripts.Render("~/Scripts/highlight.js") + + + @if (ViewBag.Modals != null) + { + + foreach (var id in ViewBag.Modals) + { + + + } + + } + +
+ @if (!ACL.UserEmailConfirmed(User.Identity.Name)) + { +
+
+ Email address not confirmed! Hi! It appears that your email has not been confirmed. Please check your email. @Html.ActionLink("Resend confirmation link", "ResendConf", "Account") +
+
+ } + + @if (ViewBag.Moderator == true) + { + + @RenderBody(); + } + else if (ACL.Granted(User.Identity.Name, ViewBag.ACLRule)) + { + if (ViewBag.Admin == true) + { + if (ACL.Granted(User.Identity.Name, "CanAccessAdminCP")) + { + + @RenderBody(); + } + else + { +

Access denied.

+

You do not have permission to access this page. Contact an admin if this is in error.

+ } + } + else + { + @RenderBody() + + } + } + else + { +

Access denied.

+

You do not have permission to access this page. Contact an admin if this is in error.

+ + }
+ + +
+ + @Scripts.Render("~/bundles/jquery") + @Scripts.Render("~/bundles/bootstrap") + @RenderSection("scripts", required: false) + + -- cgit v1.2.3