src/ZKEACMS.Article/Views/Widget.ArticleDetail.cshtml
(开头部分) 2KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
@using ZKEACMS.Article.Extend
@model ZKEACMS.Article.ViewModel.ArticleDetailViewModel
@{
Style.Reqiured("Article").AtHead();
}
@if (Model != null && Model.Current != null)
{
<div class="article-detail">
<div class="page-header">
<h1 class="align-center">
@Model.Current.Title
</h1>
<div class="align-right">
<span>
<i class="glyphicon glyphicon-eye-open"></i>
@Html.RawCount(Model.Current.Counter ?? 1)
</span>
<span>
<i class="glyphicon glyphicon-user"></i>
@Model.Current.CreatebyName
</span>
<span>
<i class="glyphicon glyphicon-calendar"></i>
@((Model.Current.PublishDate ?? DateTime.Now).ToString("yyyy/MM/dd"))
</span>
@if (Authorizer.Authorize(ZKEACMS.Article.PermissionKeys.ManageArticle) && Model.Current.ID > 0)
{
<a href="@Url.Action("Edit", "Article", new { id = Model.Current.ID,ReturnUrl=ViewContext.HttpContext.Request.Path })">@L("Edit")</a>
}
</div>
</div>
<div class="panel-body detail clearfix">
@if (Model.Current.ImageUrl.IsNotNullAndWhiteSpace())
{
<img class="thumbnail" src="@Url.Content(Model.Current.ImageUrl)" alt="@Model.Current.Title" />
}
@Html.Raw(Model.Current.ArticleContent)
</div>
<div class="container-fluid">
<div class="row">
<div class="col-sm-6">
@if (Model.Prev != null)
{
<span>
@L("Previous:")
</span>
<a href="@Url.PostUrl(ViewContext.RouteData.GetPath(), Model.Prev)">
@Model.Prev.Title
</a>
}
</div>
<div class="col-sm-6 text-right">
@if (Model.Next != null)
{
<span>
@L("Next:")
</span>
<a href="@Url.PostUrl(ViewContext.RouteData.GetPath(), Model.Next)">
@Model.Next.Title
后面还有 8 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。