Fix views
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
@using Umbraco.Core.Models.PublishedContent
|
||||
@using Umbraco.Web
|
||||
@using Umbraco.Core
|
||||
@using Umbraco.Core.Models
|
||||
@using Umbraco.Core.Media
|
||||
@using Umbraco.Web.Composing
|
||||
@inherits Umbraco.Web.Macros.PartialViewMacroPage
|
||||
|
||||
|
||||
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user