mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-08-02 10:08:39 +00:00
Separate truncated announcement text and link with "..."
This commit is contained in:
parent
1884ffd95f
commit
46dfd3dc11
1 changed files with 1 additions and 1 deletions
|
@ -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>
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue