cleanning
This commit is contained in:
parent
be5f0b1c3d
commit
3031839c65
1 changed files with 3 additions and 17 deletions
|
|
@ -1,22 +1,8 @@
|
||||||
@model IEnumerable<Yavsc.Models.Blog>
|
|
||||||
|
|
||||||
@{
|
@{
|
||||||
ViewData["Title"] = "Index des blogs";
|
ViewData["Title"] = "Index";
|
||||||
}
|
}
|
||||||
|
|
||||||
<h2>Index des blogs</h2>
|
<h2>Index</h2>
|
||||||
|
|
||||||
<p>
|
|
||||||
<a asp-action="Create" asp-controller="Blog">Create New</a>
|
|
||||||
</p>
|
|
||||||
|
|
||||||
@foreach (var item in Model) {
|
|
||||||
<h1><markdown>@item.title</markdown></h1>
|
|
||||||
<em>@item.Author?.UserName</em>
|
|
||||||
<div markdown="@item.bcontent"></div>
|
|
||||||
<p>
|
|
||||||
<a asp-action="Edit" asp-controller="Blog" asp-route-id="@item.Id">Edit</a> |
|
|
||||||
<a asp-action="Details" asp-controller="Blog" asp-route-id="@item.Id">Details</a> |
|
|
||||||
<a asp-action="Delete" asp-controller="Blog" asp-route-id="@item.Id">Delete</a>
|
|
||||||
</p>
|
|
||||||
}
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue