Browse Source

Merge branch 'dev' into cmskit-widget-render

pull/13082/head
malik masis 4 years ago
parent
commit
6860b620ea
  1. 1
      modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/BlogPosts/index.js
  2. 9
      modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Tags/Default.cshtml

1
modules/cms-kit/src/Volo.CmsKit.Admin.Web/Pages/CmsKit/BlogPosts/index.js

@ -169,6 +169,7 @@ $(function () {
function checkHasBlogPostWaitingForReview(){
if (!abp.auth.isGranted('CmsKit.BlogPosts.Publish')){
$('#alertHasBlogPostWaitingForReview').hide();
return;
}
blogsService.hasBlogPostWaitingForReview().then(function (result) {

9
modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Tags/Default.cshtml

@ -10,19 +10,14 @@
{
if (Model.UrlFormat.IsNullOrWhiteSpace())
{
<span class="badge bg-light px-3 py-2 cmskit-tag font-weight-normal">
<span class="badge rounded-pill bg-light text-dark px-3 py-2 cmskit-tag font-weight-normal">
@tag.Name
</span>
}
else
{
var formattedUrl = Model.UrlFormat.Replace("{TagId}", tag.Id.ToString());
<a href="@formattedUrl">
<span class="badge bg-light px-3 py-2 cmskit-tag font-weight-normal">
@tag.Name
</span>
</a>
<a href="@formattedUrl"><span class="badge rounded-pill bg-light text-dark px-3 py-2 cmskit-tag font-weight-normal">@tag.Name</span></a>
}
}
}

Loading…
Cancel
Save