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> </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")">
&ensp;(@Localizer["ModifiedOn"] @Article.LastModified.Humanize()) (@Localizer["ModifiedOn"] @Article.LastModified.Humanize())
</time> </time>
} }
@if (Article.Status < ArticleStatus.Published) {
<span class="badge badge-sm badge-outline badge-warning ml-2">
@Article.Status.Humanize()
</span>
}
</small> </small>
@if (Article.Status < ArticleStatus.Published) {
<span class="badge badge-sm badge-outline badge-warning ml-2">
@Article.Status.Humanize()
</span>
}
</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) {