From f76c7e95601573602601f9442e9478c8cea08c5b Mon Sep 17 00:00:00 2001 From: Andrew J Harrison Date: Tue, 14 Jun 2016 08:46:40 -0700 Subject: [PATCH] Refactor $:/core/ui/TagTemplate using sub-tiddlers (#2477) The Open All by tag feature should really be in a plugin. --- core/ui/TagTemplate.tid | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/core/ui/TagTemplate.tid b/core/ui/TagTemplate.tid index 006758f73..f302d8f3d 100644 --- a/core/ui/TagTemplate.tid +++ b/core/ui/TagTemplate.tid @@ -7,18 +7,18 @@ color:$(foregroundColor)$; \end \define tag-body-inner(colour,fallbackTarget,colourA,colourB) -<$set name="foregroundColor" value=<>> -<$set name="backgroundColor" value="""$colour$"""> +<$vars foregroundColor=<> backgroundColor="""$colour$"""> <$button popup=<> class="tc-btn-invisible tc-tag-label" style=<>> <$transclude tiddler={{!!icon}}/> <$view field="title" format="text" /> -<$reveal state=<> type="popup" position="below" animate="yes">
<$transclude tiddler="$:/core/ui/ListItemTemplate"/> +<$reveal state=<> type="popup" position="below" animate="yes" class="tc-drop-down"><$transclude tiddler="$:/core/ui/ListItemTemplate"/> +<$list filter="[all[shadows+tiddlers]tag[$:/tags/TagDropdown]!has[draft.of]]" variable="listItem"> +<$transclude tiddler=<>/> +
<$list filter="[all[current]tagging[]]" template="$:/core/ui/ListItemTemplate"/> -
- - + \end \define tag-body(colour,palette) @@ -27,4 +27,4 @@ color:$(foregroundColor)$; \end -<$macrocall $name="tag-body" colour={{!!color}} palette={{$:/palette}}/> \ No newline at end of file +<$macrocall $name="tag-body" colour={{!!color}} palette={{$:/palette}}/>