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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
7 deletions
-
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> |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|