Skip to content

Commit

Permalink
Improve check and allow revisionreason html #1428
Browse files Browse the repository at this point in the history
  • Loading branch information
eirikn-artsdatabanken committed Aug 9, 2024
1 parent c6cf3f2 commit 70180aa
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@model SpeciesAssessment2021
@if (!string.IsNullOrWhiteSpace(Model.RevisionReason))
@if (!string.IsNullOrEmpty(Model.RevisionReason.StripHtml()))
{
<div>
<span class="material-icons" style="float:left;display:inline-block; padding:10px;">
Expand All @@ -10,7 +10,7 @@
<i style="display:none;">NB - Vurderingen er justert etter publisering: </i>
<b>Justeringer etter publisering</b>
<p>
@Model.RevisionReason
@Html.Raw(Model.RevisionReason)
<a is-visible="Model.Revisions.Any()" asp-action="Detail" asp-route-id="@Model.Id" asp-route-revisionid="1">Gå til første utgave</a>
</p>
</div>
Expand Down

0 comments on commit 70180aa

Please sign in to comment.