Improved ArticleView Page header
Some checks failed
Build, Tag, Push Docker Image / build (push) Has been cancelled
Create Release / Generate Release (push) Has been cancelled

This commit is contained in:
Mia Rose Winter 2024-02-27 16:03:49 +01:00
parent 1f4887aa80
commit 461ac238ac
Signed by: miawinter
GPG key ID: 4B6F6A83178F595E

View file

@ -11,22 +11,25 @@
</h1>
<p>
<small class="text-sm">
@Article.Author.FullName <br>
<time datetime="@Article.PublishDate.ToString("u")"
title="@Article.PublishDate.ToString("g")">
@Article.PublishDate.Humanize()
@Article.PublishDate.ToString("g")
</time>
@if (Article.LastModified is not null && Article.LastModified > Article.PublishDate) {
<time datetime="@Article.LastModified.Value.ToString("u")"
title="@Article.LastModified.Value.ToString("g")">
&ensp;(@Localizer["ModifiedOn"] @Article.LastModified.Humanize())
(@Localizer["ModifiedOn"] @Article.LastModified.Humanize())
</time>
}
</small>
@if (Article.Status < ArticleStatus.Published) {
<span class="badge badge-sm badge-outline badge-warning ml-2">
@Article.Status.Humanize()
</span>
}
</small>
</p>
<div class="flex justify-between items-end my-3">
@if (Article.Categories.Count > 0) {