mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-19 19:51:28 +00:00
Fix errant line breaks in landing page announcement view
This commit is contained in:
parent
0ee8970c64
commit
da8322e01a
1 changed files with 8 additions and 13 deletions
|
@ -68,16 +68,11 @@
|
|||
<div style="padding-bottom: 2em;">
|
||||
@if (Model.LatestAnnouncement.Content.Length > 250)
|
||||
{
|
||||
<span style="white-space: pre-line">
|
||||
@Model.LatestAnnouncement.Content[..250]...
|
||||
<a href="@ServerConfiguration.Instance.ExternalUrl/notifications">read more</a>
|
||||
</span>
|
||||
<span style="white-space: pre-line">@Model.LatestAnnouncement.Content[..250]...<a href="@ServerConfiguration.Instance.ExternalUrl/notifications">read more</a></span>
|
||||
}
|
||||
else
|
||||
{
|
||||
<span style="white-space: pre-line">
|
||||
@Model.LatestAnnouncement.Content
|
||||
</span>
|
||||
<span style="white-space: pre-line">@Model.LatestAnnouncement.Content</span>
|
||||
}
|
||||
</div>
|
||||
@if (Model.LatestAnnouncement.Publisher != null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue