Separate truncated announcement text and link with "..."

This commit is contained in:
sudokoko 2024-03-29 16:56:21 -04:00
commit 46dfd3dc11
No known key found for this signature in database
GPG key ID: 248D68C664937395

View file

@ -69,7 +69,7 @@
@if (Model.LatestAnnouncement.Content.Length > 250)
{
<span style="white-space: pre-line">
@Model.LatestAnnouncement.Content[..250]
@Model.LatestAnnouncement.Content[..250]...
<a href="@ServerConfiguration.Instance.ExternalUrl/notifications">read more</a>
</span>
}