diff --git a/Project-Unite/Controllers/DeveloperController.cs b/Project-Unite/Controllers/DeveloperController.cs new file mode 100644 index 0000000..301038d --- /dev/null +++ b/Project-Unite/Controllers/DeveloperController.cs @@ -0,0 +1,19 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.Mvc; + +namespace Project_Unite.Controllers +{ + [Authorize] + public class DeveloperController : Controller + { + // GET: Developer + public ActionResult Index() + { + ViewBag.Developer = true; + return View(); + } + } +} \ No newline at end of file diff --git a/Project-Unite/Project-Unite.csproj b/Project-Unite/Project-Unite.csproj index 2872ce2..9fe031a 100644 --- a/Project-Unite/Project-Unite.csproj +++ b/Project-Unite/Project-Unite.csproj @@ -238,6 +238,7 @@ + @@ -537,6 +538,7 @@ + diff --git a/Project-Unite/Views/Developer/index.cshtml b/Project-Unite/Views/Developer/index.cshtml index a39b5fc..447df64 100644 --- a/Project-Unite/Views/Developer/index.cshtml +++ b/Project-Unite/Views/Developer/index.cshtml @@ -1 +1,8 @@ -This is/will be the developer cp page. its not done yet \ No newline at end of file + +@{ + ViewBag.Title = "Dev Control Panel"; +} + +

Welcome!

+ +

Hey devs! In the future, this page will give you fancy details on how ShiftOS and the website are progressing. But, that data is not yet available to me - so for now, here's some placeholder text telling you that the dev CP is work-in-progress.

\ No newline at end of file diff --git a/Project-Unite/Views/Shared/_Layout.cshtml b/Project-Unite/Views/Shared/_Layout.cshtml index 024c6bf..3a6487f 100644 --- a/Project-Unite/Views/Shared/_Layout.cshtml +++ b/Project-Unite/Views/Shared/_Layout.cshtml @@ -115,21 +115,37 @@ @RenderBody(); } + else if (ViewBag.Developer) + { + + + + @RenderBody(); + } else if (ACL.Granted(User.Identity.Name, ViewBag.ACLRule)) { - if (ViewBag.Admin == true) - { - if (ACL.Granted(User.Identity.Name, "CanAccessAdminCP")) + if (ViewBag.Admin == true) { -