diff --git a/Project-Unite/Views/Admin/Index.cshtml b/Project-Unite/Views/Admin/Index.cshtml index 872f158..9ec5202 100644 --- a/Project-Unite/Views/Admin/Index.cshtml +++ b/Project-Unite/Views/Admin/Index.cshtml @@ -136,7 +136,7 @@ git clone https://github.com/MichaelTheShifter/Project-Unite { } - @if (role.Priority < roles.Length) + @if (role.Priority < roles.Length - 1) { } @@ -153,6 +153,59 @@ git clone https://github.com/MichaelTheShifter/Project-Unite + @*SKINS*@ +
+

Skins

+ +

Below is a list of all skins in the system.

+ + +
+ @for (int i = 0; i < db.Skins.GetPageCount(10); i++) + { + string htmlClass = "tab-pane fade in"; + if (i == 0) + { + htmlClass += " active"; + } +
+ + + + + + @foreach (var skin in db.Skins.OrderByDescending(x => x.PostedAt).ToArray().GetItemsOnPage(i, 10)) + { + + + + + } +
SkinActions
+ @Html.ActionLink(skin.Name, "ViewSkin", "Skins", new { id = skin.Id }, null)
+

Created at: @skin.PostedAt • Likes: @skin.Likes.Count() • Dislikes: @skin.Dislikes.Count() • Views: @skin.Views.Count()

+

@Html.Markdown(skin.ShortDescription)

+
+ Moderate +
+
+ } +
+
+ + +