yavsc/Yavsc/Views/Blogspot/Details.cshtml

72 lines
1.8 KiB
Text
Raw Normal View History

2016-05-17 18:35:45 +02:00
@model Yavsc.Models.Blog
2016-05-17 18:22:18 +02:00
@{
ViewData["Title"]="Details";
}
<div>
<h4>Blog</h4>
<hr />
2016-08-12 23:02:16 +02:00
<dl class="dl-horizo qntal">
<dt>
2016-08-12 23:02:16 +02:00
<a href="/Title/@Model.Title" > @SR[Html.DisplayNameFor(model => model.Title)] </a>
</dt>
<dd>
2016-08-02 17:02:38 +02:00
@Html.DisplayFor(model => model.Title)
</dd>
<dt>
2016-08-02 17:02:38 +02:00
@SR[Html.DisplayNameFor(model => model.Photo)]
</dt>
<dd>
2016-08-02 17:02:38 +02:00
@Html.DisplayFor(model => model.Photo)
</dd>
2016-05-17 18:22:18 +02:00
<dt>
@SR["Author"]
</dt>
<dd>
@Model.Author.UserName
</dd>
<dt>
2016-07-27 11:01:22 +02:00
@SR["Content"]
2016-05-17 18:22:18 +02:00
</dt>
<dd>
2016-08-03 16:38:25 +02:00
<div markdown="@Model.Content" site="SiteSettings.Value"></div>
2016-05-17 18:22:18 +02:00
</dd>
<dt>
2016-08-02 17:02:38 +02:00
@SR[Html.DisplayNameFor(model => model.Modified)]
2016-05-17 18:22:18 +02:00
</dt>
<dd>
2016-08-02 17:02:38 +02:00
@Html.DisplayFor(model => model.Modified)
2016-05-17 18:22:18 +02:00
</dd>
2016-05-17 18:22:18 +02:00
<dt>
2016-08-02 17:02:38 +02:00
@SR[Html.DisplayNameFor(model => model.Posted)]
2016-05-17 18:22:18 +02:00
</dt>
<dd>
2016-08-02 17:02:38 +02:00
@Html.DisplayFor(model => model.Posted)
2016-05-17 18:22:18 +02:00
</dd>
<dt>
2016-08-02 17:02:38 +02:00
@SR[Html.DisplayNameFor(model => model.Rate)]
2016-05-17 18:22:18 +02:00
</dt>
<dd>
2016-08-02 17:02:38 +02:00
@Html.DisplayFor(model => model.Rate)
2016-05-17 18:22:18 +02:00
</dd>
2016-05-17 18:22:18 +02:00
<dt>
2016-08-02 17:02:38 +02:00
@SR[Html.DisplayNameFor(model => model.Visible)]
2016-05-17 18:22:18 +02:00
</dt>
<dd>
2016-08-02 17:02:38 +02:00
@Html.DisplayFor(model => model.Visible)
2016-05-17 18:22:18 +02:00
</dd>
</dl>
</div>
<ul>
@if (await AuthorizationService.AuthorizeAsync(User, Model, new EditRequirement())) {
<li>
2016-07-27 11:01:22 +02:00
<a asp-action="Edit" asp-route-id="@Model.Id">@SR["Edit"]</a>
2016-05-17 18:22:18 +02:00
</li>
}
<li>
2016-07-27 11:01:22 +02:00
<a asp-action="Index">@SR["Back to List"]</a>
2016-05-17 18:22:18 +02:00
</li>
</ul>