|
|
|
@ -60,13 +60,13 @@ |
|
|
|
<input hidden id="BlogId" value="@Model.ViewModel.Id" /> |
|
|
|
<abp-card-body> |
|
|
|
<abp-row> |
|
|
|
<div class="col-lg-8 col-md-10 mx-auto pb-4"> |
|
|
|
<div class="col-lg-8 col-md-10 mx-auto"> |
|
|
|
<h1 class="mt-lg-4 mt-md-3">@Model.ViewModel.Title</h1> |
|
|
|
<p class="mb-lg-5 mb-md-3"> |
|
|
|
<a href="/@CmsBlogsWebConsts.BlogsRoutePrefix/@Model.BlogSlug?authorId=@Model.ViewModel.Author.Id"> |
|
|
|
<span class="font-weight-bold">@@@Model.ViewModel.Author?.UserName</span> |
|
|
|
<a class="text-decoration-none" href="/@CmsBlogsWebConsts.BlogsRoutePrefix/@Model.BlogSlug?authorId=@Model.ViewModel.Author.Id"> |
|
|
|
<span class="fw-bold text-dark">@@@Model.ViewModel.Author?.UserName</span> |
|
|
|
</a> |
|
|
|
<small style="opacity:.65;">@Model.ViewModel.CreationTime</small> |
|
|
|
<small class="text-muted">@Model.ViewModel.CreationTime</small> |
|
|
|
</p> |
|
|
|
@(await Component.InvokeAsync(typeof(ContentFragmentViewComponent), new DefaultContentDto |
|
|
|
{ |
|
|
|
@ -96,35 +96,41 @@ |
|
|
|
} |
|
|
|
</div> |
|
|
|
</abp-row> |
|
|
|
|
|
|
|
<abp-row class="row"> |
|
|
|
<div class="col-lg-8 col-md-10 mx-auto pb-4"> |
|
|
|
<hr class="mt-0" /> |
|
|
|
<abp-row> |
|
|
|
<abp-column size-lg="_6" size-md="_12"> |
|
|
|
@if (GlobalFeatureManager.Instance.IsEnabled<RatingsFeature>()) |
|
|
|
{ |
|
|
|
if (Model.RatingsFeature?.IsEnabled == true) |
|
|
|
{ |
|
|
|
@await Component.InvokeAsync(typeof(RatingViewComponent), new |
|
|
|
{ |
|
|
|
entityType = Volo.CmsKit.Blogs.BlogPostConsts.EntityType, |
|
|
|
entityId = Model.ViewModel.Id.ToString() |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
</abp-column> |
|
|
|
<abp-column class="d-flex justify-content-end" size-lg="_6" size-md="_12"> |
|
|
|
@if (GlobalFeatureManager.Instance.IsEnabled<ReactionsFeature>()) |
|
|
|
{ |
|
|
|
if (Model.ReactionsFeature?.IsEnabled == true) |
|
|
|
{ |
|
|
|
@await Component.InvokeAsync(typeof(ReactionSelectionViewComponent), new |
|
|
|
{ |
|
|
|
entityType = Volo.CmsKit.Blogs.BlogPostConsts.EntityType, |
|
|
|
entityId = Model.ViewModel.Id.ToString() |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
</abp-column> |
|
|
|
</abp-row> |
|
|
|
</div> |
|
|
|
|
|
|
|
<abp-row class="row"> |
|
|
|
<abp-column size-lg="_6" size-md="_12"> |
|
|
|
@if (GlobalFeatureManager.Instance.IsEnabled<ReactionsFeature>()) |
|
|
|
{ |
|
|
|
if (Model.ReactionsFeature?.IsEnabled == true) |
|
|
|
{ |
|
|
|
@await Component.InvokeAsync(typeof(ReactionSelectionViewComponent), new |
|
|
|
{ |
|
|
|
entityType = Volo.CmsKit.Blogs.BlogPostConsts.EntityType, |
|
|
|
entityId = Model.ViewModel.Id.ToString() |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
</abp-column> |
|
|
|
<abp-column size-lg="_6" size-md="_12"> |
|
|
|
@if (GlobalFeatureManager.Instance.IsEnabled<RatingsFeature>()) |
|
|
|
{ |
|
|
|
if (Model.RatingsFeature?.IsEnabled == true) |
|
|
|
{ |
|
|
|
@await Component.InvokeAsync(typeof(RatingViewComponent), new |
|
|
|
{ |
|
|
|
entityType = Volo.CmsKit.Blogs.BlogPostConsts.EntityType, |
|
|
|
entityId = Model.ViewModel.Id.ToString() |
|
|
|
}) |
|
|
|
} |
|
|
|
} |
|
|
|
</abp-column> |
|
|
|
</abp-row> |
|
|
|
</abp-row> |
|
|
|
</abp-card-body> |
|
|
|
</abp-card> |
|
|
|
</div> |
|
|
|
|