Show a warning on pics with no description

This commit is contained in:
Gordon Pedersen 2024-06-20 14:47:17 +10:00
parent 5c64890daf
commit e4212c9436

View file

@ -12,7 +12,15 @@
<i class="fa fa-clock"></i> @Pic.RelativeTime <i class="fa fa-clock"></i> @Pic.RelativeTime
</a> </a>
</nav> </nav>
<p>@((MarkupString)Pic.DescriptionHtml)</p> @if(!string.IsNullOrWhiteSpace(Pic.Description)){
<p>@((MarkupString)Pic.DescriptionHtml)</p>
}
else {
<div class="padding padding yellow-2-bg yellow-9-fg">
<i class="fa-solid fa-triangle-exclamation"></i>
<span>This picture needs a description in order to be shared.</span>
</div>
}
<nav> <nav>
<div class="max"></div> <div class="max"></div>
@if(Editable) { @if(Editable) {