-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1097 from scireum/feature/aha/filter-empty-tag
Prevents empty <t:tag> tags from being rendered.
- Loading branch information
Showing
1 changed file
with
12 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,17 @@ | ||
<i:arg type="String" name="color" default="gray" description="Specifies the color to use." /> | ||
<i:arg type="boolean" name="marginRight" default="true" description="Determines if the dot has an auto margin at the right"/> | ||
<i:arg type="String" name="class" default="" | ||
description="Defines addition classes to add."/> | ||
<i:arg type="String" name="color" default="gray" description="Specifies the color to use."/> | ||
<i:arg type="boolean" | ||
name="marginRight" | ||
default="true" | ||
description="Determines if the dot has an auto margin at the right"/> | ||
<i:arg type="String" name="class" default="" description="Defines addition classes to add."/> | ||
<i:arg type="String" name="value" default="@renderToString('body')"/> | ||
|
||
<i:pragma name="description"> | ||
Renders a colored tag using the given text. | ||
</i:pragma> | ||
|
||
<span class="border-sirius-@color tycho-tag @if(marginRight){ mr-2 } mb-2 d-inline-block @class"> | ||
<i:render name="body" /> | ||
</span> | ||
<i:if test="isFilled(value)"> | ||
<span class="border-sirius-@color tycho-tag @if(marginRight){ mr-2 } mb-2 d-inline-block @class"> | ||
<i:raw>@value</i:raw> | ||
</span> | ||
</i:if> |