Browse Source

Merge pull request #12987 from abpframework/enisn/tags-design-fix

CmsKit - Fix broken tags design
pull/12994/head
Musa Demir 4 years ago
committed by GitHub
parent
commit
47f0be5570
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 9
      modules/cms-kit/src/Volo.CmsKit.Public.Web/Pages/CmsKit/Shared/Components/Tags/Default.cshtml

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