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.
|
|
|
@model Teknik.Areas.Blog.ViewModels.CommentViewModel
|
|
|
|
|
|
|
|
@using Teknik.Helpers
|
|
|
|
|
|
|
|
<hr>
|
|
|
|
<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>
|
|
|
|
<p id="comment_@Model.CommentId">@Html.Markdown(Model.Article)</p>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|