The next generation of the Teknik Services. Written in ASP.NET.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

21 lines
1.1 KiB

@model Teknik.Areas.Blog.ViewModels.CommentViewModel
@using Teknik.Helpers
<div class="row">
<div class="col-sm-8 col-sm-offset-2">
<div class="post-comment">
<p class="post-comment-meta text-muted">
<a href="@Url.SubRouteUrl("profile", "Profile.Index", new { username = Model.Post.Blog.User.Username })">@Model.Post.Blog.User.Username</a> replied at <time datetime="@Model.DatePosted.ToString("o")">@Model.DatePosted.ToString("hh:mm:ss tt") on @Model.DatePosted.ToString("MMMM dd, yyyy")</time>
@if (Model.Post.Blog.User.Username == User.Identity.Name || User.IsInRole("Admin"))
<br />
<button type="button" class="btn btn-info edit_comment" id="@Model.CommentId" data-toggle="modal" data-target="#editComment">Edit</button>
<button type="button" class="btn btn-danger delete_comment" id="@Model.CommentId">Delete</button>
<p id="comment_@Model.CommentId">@Html.Markdown(Model.Article)</p>