From aaebed46d56f3beeb4552d8f18e9b2653959bcce Mon Sep 17 00:00:00 2001 From: Michael Date: Sat, 25 Mar 2017 12:06:19 -0400 Subject: Skin repo index and viewskin pages --- Project-Unite/Views/Skins/Index.cshtml | 47 +++++++++++++++++++++++++++++++ Project-Unite/Views/Skins/ViewSkin.cshtml | 23 +++++++++++++++ 2 files changed, 70 insertions(+) create mode 100644 Project-Unite/Views/Skins/Index.cshtml create mode 100644 Project-Unite/Views/Skins/ViewSkin.cshtml (limited to 'Project-Unite/Views') diff --git a/Project-Unite/Views/Skins/Index.cshtml b/Project-Unite/Views/Skins/Index.cshtml new file mode 100644 index 0000000..4ef209e --- /dev/null +++ b/Project-Unite/Views/Skins/Index.cshtml @@ -0,0 +1,47 @@ +@model IEnumerable +@{ + ViewBag.Title = "Skin Repository"; +} + +

ShiftOS Skin Repository

+ +

ShiftOS skins allow you to shift the operating system to look like anything you want. You can make it look like other operating systems, you can give the UI a different feel, or you could just change the titlebar font. The sky and your disk space is the limit.

+ +

You can either create your own skin, or you can select from the many skins in the Skin Reposiory made by the community.

+ + + + + + + + + + + @foreach(var skin in Model) + { + + + + + + + } +
SkinPopularityDownload
+ @Html.ActionLink(skin.Name, "ViewSkin", "Skins", new { id = skin.Name }, null)
+

By @Html.UserLink(skin.UserId) on @skin.PostedAt

+
+ @* First we'll do the likes... *@ + @skin.Likes.Length + @* Now the dislikes. *@ + @skin.Dislikes.Length + @*Now the views.*@ + @skin.Views.Length + + Download this skin +
\ No newline at end of file diff --git a/Project-Unite/Views/Skins/ViewSkin.cshtml b/Project-Unite/Views/Skins/ViewSkin.cshtml new file mode 100644 index 0000000..8b3b7c9 --- /dev/null +++ b/Project-Unite/Views/Skins/ViewSkin.cshtml @@ -0,0 +1,23 @@ +@model Project_Unite.Models.Skin +@{ + ViewBag.Title = Model.Name + " - Skin Repository"; +} + +

@Model.Name

+ +

...a skin by @Html.UserLink(Model.UserId) on @Model.PostedAt

+ +
+
+ Screenshot of @Model.Name. Click to show full-size image. + + + +

@Model.ShortDescription

+ +

@Html.Markdown(Model.FullDescription)

+
+
+ -- cgit v1.2.3