summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Admin
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-05-07 11:31:31 -0400
committerMichael <[email protected]>2017-05-07 11:31:31 -0400
commitf8fd937d3aa902186ac4fc885ce536119a55b1ad (patch)
tree97e3e6ccdf14acefebf13fe74f094164579f4578 /Project-Unite/Views/Admin
parent6777edffa113afd063db18c811e90a43e6043064 (diff)
downloadproject-unite-f8fd937d3aa902186ac4fc885ce536119a55b1ad.tar.gz
project-unite-f8fd937d3aa902186ac4fc885ce536119a55b1ad.tar.bz2
project-unite-f8fd937d3aa902186ac4fc885ce536119a55b1ad.zip
ACP redesign
Diffstat (limited to 'Project-Unite/Views/Admin')
-rw-r--r--Project-Unite/Views/Admin/Index.cshtml87
1 files changed, 79 insertions, 8 deletions
diff --git a/Project-Unite/Views/Admin/Index.cshtml b/Project-Unite/Views/Admin/Index.cshtml
index 815a20b..6547bd5 100644
--- a/Project-Unite/Views/Admin/Index.cshtml
+++ b/Project-Unite/Views/Admin/Index.cshtml
@@ -1,14 +1,85 @@
-
+@using Project_Unite.Models;
+@using Microsoft.AspNet.Identity;
@{
ViewBag.Title = "Administration Control Panel";
+ var db = new ApplicationDbContext();
}
-<p>Wow, an actual index page.</p>
+<div class="panel row">
+ <div class="panel-body">
+ <div class="col-xs-4">
+ <h4>Navigation</h4>
-<button class="btn btn-default" onclick="sendMessageToApi();">Send test notification.</button>
+ <ul class="nav nav-stacked" id="tabs" data-tabs="tabs" role="tablist">
+ <li class="active"><a data-toggle="tab" href="#a_index">Home</a></li>
+ <li><a data-toggle="tab" href="#a_site_config">Site Config</a></li>
+ <li><a data-toggle="tab" href="#a_users">Users</a></li>
+ <li><a data-toggle="tab" href="#a_roles">Roles</a></li>
+ <li><a data-toggle="tab" href="#a_forums">Forums</a></li>
+ <li><a data-toggle="tab" href="#a_skins">Skins</a></li>
+ <li><a data-toggle="tab" href="#a_groups">Groups</a></li>
+ <li><a data-toggle="tab" href="#a_backups">Backups</a></li>
+ <li><a data-toggle="tab" href="#a_logs">Audit Logs</a></li>
-<script>
- function sendMessageToApi() {
- $.ajax({ url: "/API/TestNotification" });
- }
-</script> \ No newline at end of file
+
+
+ </ul>
+ </div>
+ <div class="col-xs-8">
+ <div class="tab-content">
+ <div class="tab-pane fade in active" id="a_index">
+ <h2>Administration Control Panel</h2>
+
+ <p>Welcome to the ShiftOS Administration Control Panel. To begin administrating, select an option from the left.</p>
+
+ <h4>System status</h4>
+
+ <table class="table-condensed">
+ <tr>
+ <td><strong>Current user: </strong></td>
+ <td>@Html.UserLink(User.Identity.GetUserId())</td>
+ </tr>
+ <tr>
+ <td><strong>Users:</strong></td>
+ <td>@db.Users.Count()</td>
+ </tr>
+ <tr>
+ <td><strong>Forum Categories:</strong></td>
+ <td>@db.ForumCategories.Count()</td>
+ </tr>
+ <tr>
+ <td><strong>Posts:</strong></td>
+ <td>@db.ForumPosts.Count()</td>
+ </tr>
+ <tr>
+ <td><strong>Topics:</strong></td>
+ <td><strong>@db.ForumTopics.Count()</strong></td>
+ </tr>
+ <tr>
+ <td><strong>Skins:</strong></td>
+ <td>@db.Skins.Count()</td>
+ </tr>
+ <tr>
+ <td><strong>Releases:</strong></td>
+ <td>@db.Downloads.Count()</td>
+ </tr>
+ </table>
+
+ <hr/>
+
+ <h4>Shifting the website</h4>
+
+ <p>You can add new features to the website by modifying our GitHub repository. If you are a ShiftOS developer, chances are you have write access to the repository. If not, please contact Michael.</p>
+
+ <p>To clone the repository, use this command:</p>
+
+ @Html.Markdown(@"```bash
+git clone https://github.com/MichaelTheShifter/Project-Unite
+```")
+
+ <p>Your changes will be applied after you push your commits to this repository, or your pull request gets merged.</p>
+ </div>
+ </div>
+ </div>
+ </div>
+</div> \ No newline at end of file