yavsc/src/Yavsc.Org/Views/Comments/Index.cshtml

62 lines
1.5 KiB
Text
Raw Normal View History

2017-10-04 23:53:47 +02:00
@model IEnumerable<Yavsc.Models.Blog.Comment>
@{
2026-06-04 12:13:37 +01:00
ViewBag.Title = "Index";
2017-10-04 23:53:47 +02:00
}
2023-03-20 09:13:16 +00:00
<h2>Index</h2>
2017-10-04 23:53:47 +02:00
<p>
2023-03-20 09:13:16 +00:00
<a asp-action="Create">Create New</a>
2017-10-04 23:53:47 +02:00
</p>
<table class="table">
<tr>
<th>
2026-02-22 19:59:33 +00:00
@Html.DisplayNameFor(model => model.Article)
2017-10-04 23:53:47 +02:00
</th>
<th>
@Html.DisplayNameFor(model => model.DateCreated)
</th>
<th>
@Html.DisplayNameFor(model => model.DateModified)
</th>
<th>
@Html.DisplayNameFor(model => model.UserCreated)
</th>
<th>
@Html.DisplayNameFor(model => model.UserModified)
</th>
<th>
@Html.DisplayNameFor(model => model.Visible)
</th>
<th></th>
</tr>
@foreach (var item in Model) {
<tr>
<td>
2026-02-22 19:59:33 +00:00
@Html.DisplayFor(modelItem => item.Article)
2017-10-04 23:53:47 +02:00
</td>
<td>
@Html.DisplayFor(modelItem => item.DateCreated)
</td>
<td>
@Html.DisplayFor(modelItem => item.DateModified)
</td>
<td>
@Html.DisplayFor(modelItem => item.UserCreated)
</td>
<td>
@Html.DisplayFor(modelItem => item.UserModified)
</td>
<td>
@Html.DisplayFor(modelItem => item.Visible)
</td>
<td>
<a asp-action="Edit" asp-route-id="@item.Id">Edit</a> |
<a asp-action="Details" asp-route-id="@item.Id">Details</a> |
<a asp-action="Delete" asp-route-id="@item.Id">Delete</a>
</td>
</tr>
}
</table>