Show a warning on pics with no description
This commit is contained in:
parent
5c64890daf
commit
e4212c9436
1 changed files with 9 additions and 1 deletions
|
@ -12,7 +12,15 @@
|
|||
<i class="fa fa-clock"></i> @Pic.RelativeTime
|
||||
</a>
|
||||
</nav>
|
||||
@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>
|
||||
<div class="max"></div>
|
||||
@if(Editable) {
|
||||
|
|
Loading…
Reference in a new issue