yavsc/src/Yavsc/Views/Blogspot/userposts.cshtml

88 lines
2 KiB
Text
Raw Normal View History

2019-01-01 16:28:47 +00:00
@model IEnumerable<BlogPost>
@{
ViewData["Title"] = "User posts";
}
2019-06-23 00:05:23 +01:00
<h2>@SR["Index"]</h2>
2019-01-01 16:28:47 +00:00
<p class="text-success">@ViewData["StatusMessage"]</p>
<p>
2019-06-23 00:05:23 +01:00
<a asp-action="Create">@SR["Create New"]</a>
2019-01-01 16:28:47 +00:00
</p>
<table class="table">
<tr>
<th>
@SR["Author"]
</th>
<th>
@Html.DisplayNameFor(model => model.Content)
</th>
<th>
@Html.DisplayNameFor(model => model.Modified)
</th>
<th>
@Html.DisplayNameFor(model => model.Photo)
</th>
<th>
@Html.DisplayNameFor(model => model.Posted)
</th>
<th>
@Html.DisplayNameFor(model => model.Rate)
</th>
<th>
@Html.DisplayNameFor(model => model.Title)
</th>
<th>
@Html.DisplayNameFor(model => model.Visible)
</th>
<th></th>
</tr>
@foreach (var item in Model) {
<tr>
<td>
@item.Author?.UserName
</td>
<td>
<div md-content="@item.Content"/>
</td>
<td>
<table>
<tr>
<td>
@Html.DisplayFor(modelItem => item.Modified)
</td>
<td>
@Html.DisplayFor(modelItem => item.Photo)
</td>
<td>
@Html.DisplayFor(modelItem => item.Posted)
</td>
<td>
@Html.DisplayFor(modelItem => item.Rate)
</td>
<td>
@Html.DisplayFor(modelItem => item.Title)
</td>
<td>
@Html.DisplayFor(modelItem => item.Visible)
</td>
</tr>
</table>
</td>
<td>
<ul class="actiongroup">
<li>
<a asp-action="Edit" asp-route-id="@item.Id">Edit</a>
</li><li>
<a asp-action="Details" asp-route-id="@item.Id">Details</a>
</li><li>
<a asp-action="Delete" asp-route-id="@item.Id">Delete</a>
</li>
</ul>
</td>
</tr>
}
</table>