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"> <a class="chip transparent-border">
<i class="fa fa-clock"></i> @Status.RelativeTime <i class="fa fa-clock"></i> @Status.RelativeTime
</a> </a>
<a class="chip transparent-border" href="@Status.ExternalUrl" target="_blank"> @if (!string.IsNullOrWhiteSpace(Status.ExternalUrl))
<i class="fa fa-message-dots"></i> Respond {
</a> <a class="chip transparent-border" href="@Status.ExternalUrl" target="_blank">
<i class="fa fa-message-dots"></i> @(new Uri(Status.ExternalUrl).Host)
</a>
}
</nav> </nav>
</div> </div>
</div> </div>