minor fix for not showing status external links if not present

This commit is contained in:
Gordon Pedersen 2024-06-20 14:26:45 +10:00
parent e9716b4157
commit 5c64890daf

View file

@ -23,9 +23,12 @@
<a class="chip transparent-border">
<i class="fa fa-clock"></i> @Status.RelativeTime
</a>
@if (!string.IsNullOrWhiteSpace(Status.ExternalUrl))
{
<a class="chip transparent-border" href="@Status.ExternalUrl" target="_blank">
<i class="fa fa-message-dots"></i> Respond
<i class="fa fa-message-dots"></i> @(new Uri(Status.ExternalUrl).Host)
</a>
}
</nav>
</div>
</div>