From 966ad0c588d6de48de444a1488530159a55c39e1 Mon Sep 17 00:00:00 2001 From: Michael Date: Thu, 23 Mar 2017 19:16:46 -0400 Subject: User posting front-end --- Project-Unite/Views/Profiles/ViewProfile.cshtml | 28 +++++++++++++++++++++++++ 1 file changed, 28 insertions(+) (limited to 'Project-Unite/Views/Profiles/ViewProfile.cshtml') diff --git a/Project-Unite/Views/Profiles/ViewProfile.cshtml b/Project-Unite/Views/Profiles/ViewProfile.cshtml index 94ca858..80c8e7a 100644 --- a/Project-Unite/Views/Profiles/ViewProfile.cshtml +++ b/Project-Unite/Views/Profiles/ViewProfile.cshtml @@ -24,4 +24,32 @@
  • Topics: @Model.TopicCount
  • +
    + @if(Model.UserName == User.Identity.Name) + { + Html.RenderPartial("~/Profiles/_NewPost.cshtml", new Project_Unite.Models.UserPost()); + } + @foreach(var post in Model.Posts.OrderByDescending(x => x.PostedAt)) + { + +
    +

    Posted on @post.PostedAt:

    +

    @Html.Markdown(post.PostContents

    + +
    + } +
    \ No newline at end of file -- cgit v1.2.3