From b1e6d3dee9fa6519c65dd7564eac02b9e68bc3ce Mon Sep 17 00:00:00 2001 From: Michael Date: Fri, 7 Apr 2017 21:13:44 -0400 Subject: Developer blog --- Project-Unite/Views/Blog/Index.cshtml | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 Project-Unite/Views/Blog/Index.cshtml (limited to 'Project-Unite/Views/Blog/Index.cshtml') diff --git a/Project-Unite/Views/Blog/Index.cshtml b/Project-Unite/Views/Blog/Index.cshtml new file mode 100644 index 0000000..56af4ef --- /dev/null +++ b/Project-Unite/Views/Blog/Index.cshtml @@ -0,0 +1,27 @@ +@model IEnumerable +@{ + ViewBag.Title = "Blog"; +} + +

Developer Blog

+ +

We ShiftOS devs have a lot going on. If you want to find out a bit more about what we do behind the scenes, this is the place for you. We'll post lots of things for you to read here.

+ +@if(ACL.Granted(User.Identity.Name, "CanBlog")) +{ + +} + +@foreach(var blog in Model) +{ +
+
+

@blog.Name

+

Posted by @Html.UserLink(blog.AuthorId) at @blog.PostedAt - @blog.Likes.Length likes, @blog.Dislikes.Length dislikes

+

@Html.Markdown(blog.Summary)

+ @Html.ActionLink("Read more", "ViewBlog", "Blog", new { id = blog.Id }, new { @class = "btn btn-default" }) +
+
+} \ No newline at end of file -- cgit v1.2.3