|
|
@ -1,8 +1,10 @@ |
|
|
@using Microsoft.AspNetCore.Mvc.ViewComponents |
|
|
@using Microsoft.AspNetCore.Mvc.ViewComponents |
|
|
|
|
|
@using Microsoft.Extensions.Localization |
|
|
@using Microsoft.Extensions.Logging |
|
|
@using Microsoft.Extensions.Logging |
|
|
@using Volo.Abp.Data |
|
|
@using Volo.Abp.Data |
|
|
@using Volo.Abp.Reflection |
|
|
@using Volo.Abp.Reflection |
|
|
@using Volo.CmsKit.Contents |
|
|
@using Volo.CmsKit.Contents |
|
|
|
|
|
@using Volo.CmsKit.Localization |
|
|
@using Volo.CmsKit.Web.Renderers; |
|
|
@using Volo.CmsKit.Web.Renderers; |
|
|
@using Volo.CmsKit.Web.Pages.CmsKit.Components.Contents; |
|
|
@using Volo.CmsKit.Web.Pages.CmsKit.Components.Contents; |
|
|
|
|
|
|
|
|
@ -11,6 +13,7 @@ |
|
|
@inject IMarkdownToHtmlRenderer MarkdownRenderer |
|
|
@inject IMarkdownToHtmlRenderer MarkdownRenderer |
|
|
@inject IViewComponentSelector ViewComponentSelector |
|
|
@inject IViewComponentSelector ViewComponentSelector |
|
|
@inject ILogger<ContentFragmentViewComponent> Logger |
|
|
@inject ILogger<ContentFragmentViewComponent> Logger |
|
|
|
|
|
@inject IStringLocalizer<CmsKitResource> L |
|
|
|
|
|
|
|
|
@foreach (var contentFragment in Model.ContentDto.ContentFragments) |
|
|
@foreach (var contentFragment in Model.ContentDto.ContentFragments) |
|
|
{ |
|
|
{ |
|
|
@ -43,9 +46,8 @@ |
|
|
} |
|
|
} |
|
|
catch (Exception ex) |
|
|
catch (Exception ex) |
|
|
{ |
|
|
{ |
|
|
<div class="alert alert-danger alert-dismissible fade show" role="alert"> |
|
|
<div class="alert alert-danger" role="alert"> |
|
|
|
|
|
@L["ThisPartOfContentCouldntBeLoaded"] |
|
|
This part of content couldn't be loaded. |
|
|
|
|
|
</div> |
|
|
</div> |
|
|
|
|
|
|
|
|
Logger.LogWarning(ex, $"Couldn't load the widget: {componentName}"); |
|
|
Logger.LogWarning(ex, $"Couldn't load the widget: {componentName}"); |
|
|
|