The next generation of the Teknik Services. Written in ASP.NET.
https://www.teknik.io/
Nie możesz wybrać więcej, niż 25 tematów
Tematy muszą się zaczynać od litery lub cyfry, mogą zawierać myślniki ('-') i mogą mieć do 35 znaków.
21 wiersze
1.1 KiB
21 wiersze
1.1 KiB
@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> |