Improved ArticleView Page header
This commit is contained in:
parent
1f4887aa80
commit
461ac238ac
|
@ -11,22 +11,25 @@
|
||||||
</h1>
|
</h1>
|
||||||
<p>
|
<p>
|
||||||
<small class="text-sm">
|
<small class="text-sm">
|
||||||
|
@Article.Author.FullName <br>
|
||||||
|
|
||||||
<time datetime="@Article.PublishDate.ToString("u")"
|
<time datetime="@Article.PublishDate.ToString("u")"
|
||||||
title="@Article.PublishDate.ToString("g")">
|
title="@Article.PublishDate.ToString("g")">
|
||||||
@Article.PublishDate.Humanize()
|
@Article.PublishDate.ToString("g")
|
||||||
</time>
|
</time>
|
||||||
|
|
||||||
@if (Article.LastModified is not null && Article.LastModified > Article.PublishDate) {
|
@if (Article.LastModified is not null && Article.LastModified > Article.PublishDate) {
|
||||||
<time datetime="@Article.LastModified.Value.ToString("u")"
|
<time datetime="@Article.LastModified.Value.ToString("u")"
|
||||||
title="@Article.LastModified.Value.ToString("g")">
|
title="@Article.LastModified.Value.ToString("g")">
|
||||||
 (@Localizer["ModifiedOn"] @Article.LastModified.Humanize())
|
(@Localizer["ModifiedOn"] @Article.LastModified.Humanize())
|
||||||
</time>
|
</time>
|
||||||
}
|
}
|
||||||
|
</small>
|
||||||
@if (Article.Status < ArticleStatus.Published) {
|
@if (Article.Status < ArticleStatus.Published) {
|
||||||
<span class="badge badge-sm badge-outline badge-warning ml-2">
|
<span class="badge badge-sm badge-outline badge-warning ml-2">
|
||||||
@Article.Status.Humanize()
|
@Article.Status.Humanize()
|
||||||
</span>
|
</span>
|
||||||
}
|
}
|
||||||
</small>
|
|
||||||
</p>
|
</p>
|
||||||
<div class="flex justify-between items-end my-3">
|
<div class="flex justify-between items-end my-3">
|
||||||
@if (Article.Categories.Count > 0) {
|
@if (Article.Categories.Count > 0) {
|
||||||
|
|
Loading…
Reference in a new issue