summaryrefslogtreecommitdiff
path: root/Project-Unite/Views/Developer
diff options
context:
space:
mode:
authorMichael <[email protected]>2017-04-06 11:22:05 -0400
committerMichael <[email protected]>2017-04-06 11:22:05 -0400
commitf7756ab7cc07265f5c54c4cfa5713be993d80d00 (patch)
treee38446157d31dd651a12d3820ac2446e865d8083 /Project-Unite/Views/Developer
parente6aa1c4fd5ead9fbe6ca5d31200c16acf293afd0 (diff)
downloadproject-unite-f7756ab7cc07265f5c54c4cfa5713be993d80d00.tar.gz
project-unite-f7756ab7cc07265f5c54c4cfa5713be993d80d00.tar.bz2
project-unite-f7756ab7cc07265f5c54c4cfa5713be993d80d00.zip
Add wiki list to dev CP
Diffstat (limited to 'Project-Unite/Views/Developer')
-rw-r--r--Project-Unite/Views/Developer/Wiki.cshtml34
1 files changed, 34 insertions, 0 deletions
diff --git a/Project-Unite/Views/Developer/Wiki.cshtml b/Project-Unite/Views/Developer/Wiki.cshtml
new file mode 100644
index 0000000..f83d9c5
--- /dev/null
+++ b/Project-Unite/Views/Developer/Wiki.cshtml
@@ -0,0 +1,34 @@
+@model IEnumerable<Project_Unite.Models.WikiCategory>
+@{
+ ViewBag.Title = "Wiki";
+}
+
+<h2>Wiki</h2>
+
+<p>The ShiftOS Wiki can be used to hold everything from coding guides to character details and everything in between.</p>
+
+<p>Here you can manage categories.</p>
+
+<ul class="nav nav-tabs">
+ <li><a href="@Url.Action("AddWikiCategory", "Developer")"><span class="glyphicon glyphicon-plus"></span> Add new category</a></li>
+</ul>
+
+<table class="table">
+ <tr>
+ <th style="width:45%">Category</th>
+ <th style="width:5%">Pages</th>
+ <th>Actions</th>
+ </tr>
+ @foreach(var wiki in Model)
+ {
+ <tr>
+ <th>@wiki.Name</th>
+ <th>@wiki.Pages.Count()</th>
+ <th>
+ <a href="@Url.Action("EditWikiCategory", "Developer", new { id = wiki.Id })" class="btn btn-default"><span class="glyphicon glyphicon-pencil"></span> Edit</a>
+ <a href="@Url.Action("DeleteWikiCategory", "Developer", new { id = wiki.Id })" class="btn btn-default"><span class="glyphicon glyphicon-trash"></span> Delete</a>
+
+ </th>
+ </tr>
+ }
+</table> \ No newline at end of file