Fix views

This commit is contained in:
Bjarke Berg
2020-04-01 11:31:21 +02:00
parent 9e38ed045f
commit 6012d6749e
2 changed files with 3 additions and 3 deletions

View File

@@ -1,5 +1,5 @@
@model dynamic
@using Umbraco.Web.Templates
@using Umbraco.Core.Media
@if (Model.value != null)
{
@@ -21,7 +21,7 @@
var altText = Model.value.altText ?? Model.value.caption ?? string.Empty;
<img src="@url" alt="@altText">
if (Model.value.caption != null)
{
<p class="caption">@Model.value.caption</p>