From 427fbfd6230200a4185507880943643648e8bdef Mon Sep 17 00:00:00 2001 From: Simon Huber Date: Fri, 2 Aug 2019 15:32:36 +0200 Subject: [PATCH] Fix tags not animating in viewtemplate (#4142) * fix tags not animating in viewtemplate this PR uses the addprefix removesuffix filters, not a new filter as proposed in #3763 * use new `then` operator --- core/ui/ViewTemplate.tid | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/core/ui/ViewTemplate.tid b/core/ui/ViewTemplate.tid index ce685c148..54765fbde 100644 --- a/core/ui/ViewTemplate.tid +++ b/core/ui/ViewTemplate.tid @@ -1,11 +1,8 @@ title: $:/core/ui/ViewTemplate -\define frame-classes() -tc-tiddler-frame tc-tiddler-view-frame $(missingTiddlerClass)$ $(shadowTiddlerClass)$ $(systemTiddlerClass)$ $(tiddlerTagClasses)$ $(userClass)$ -\end \define folded-state() $:/state/folded/$(currentTiddler)$ \end -<$vars storyTiddler=<> tiddlerInfoState=<> userClass={{!!class}}><$tiddler tiddler=<>>
> data-tags={{!!tags}} class=<>><$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!has[draft.of]]" variable="listItem"><$transclude tiddler=<>/> +<$vars storyTiddler=<> tiddlerInfoState=<>>
> data-tags={{!!tags}} class={{{ tc-tiddler-frame tc-tiddler-view-frame [is[tiddler]then[tc-tiddler-exists]] [is[missing]!is[shadow]then[tc-tiddler-missing]] [is[shadow]then[tc-tiddler-exists tc-tiddler-shadow]] [is[system]then[tc-tiddler-system]] [{!!class}] [tags[]encodeuricomponent[]addprefix[tc-tagged-]] +[join[ ]] }}}><$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!has[draft.of]]" variable="listItem"><$transclude tiddler=<>/>
- +