yavsc/Yavsc/Views/Blogspot/userposts.cshtml

89 lines
2.1 KiB
Plaintext

@model IEnumerable<Blog>
@{
ViewData["Title"] = "User posts";
}
<h2>Index</h2>
<p class="text-success">@ViewData["StatusMessage"]</p>
<p>
<a asp-action="Create">Create New</a>
</p>
<table class="table">
<tr>
<th>
@SR["Author"]
</th>
<th>
8 years ago
@Html.DisplayNameFor(model => model.Content)
</th>
<th>
8 years ago
@Html.DisplayNameFor(model => model.Modified)
</th>
<th>
8 years ago
@Html.DisplayNameFor(model => model.Photo)
</th>
<th>
8 years ago
@Html.DisplayNameFor(model => model.Posted)
</th>
<th>
8 years ago
@Html.DisplayNameFor(model => model.Rate)
</th>
<th>
8 years ago
@Html.DisplayNameFor(model => model.Title)
</th>
<th>
8 years ago
@Html.DisplayNameFor(model => model.Visible)
</th>
<th></th>
</tr>
@foreach (var item in Model) {
<tr>
<td>
@item.Author?.UserName
</td>
<td>
8 years ago
<div md-content="@item.Content"/>
</td>
<td>
8 years ago
<table>
<tr>
<td>
@Html.DisplayFor(modelItem => item.Modified)
</td>
<td>
8 years ago
@Html.DisplayFor(modelItem => item.Photo)
</td>
<td>
8 years ago
@Html.DisplayFor(modelItem => item.Posted)
</td>
<td>
8 years ago
@Html.DisplayFor(modelItem => item.Rate)
</td>
<td>
8 years ago
@Html.DisplayFor(modelItem => item.Title)
</td>
<td>
8 years ago
@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>