From 76c12a9eccc7d78e488779ce5537ef7d4ce46e81 Mon Sep 17 00:00:00 2001 From: Jermolene Date: Mon, 7 Sep 2015 17:00:03 +0100 Subject: [PATCH] Make it easier for other view template segments to support folding --- core/ui/ViewTemplate.tid | 3 +++ core/ui/ViewTemplate/body.tid | 4 ---- core/ui/ViewTemplate/subtitle.tid | 4 ---- core/ui/ViewTemplate/tags.tid | 4 ---- 4 files changed, 3 insertions(+), 12 deletions(-) diff --git a/core/ui/ViewTemplate.tid b/core/ui/ViewTemplate.tid index 7d6bc230b..83af05645 100644 --- a/core/ui/ViewTemplate.tid +++ b/core/ui/ViewTemplate.tid @@ -3,6 +3,9 @@ title: $:/core/ui/ViewTemplate \define frame-classes() tc-tiddler-frame tc-tiddler-view-frame $(missingTiddlerClass)$ $(shadowTiddlerClass)$ $(systemTiddlerClass)$ $(tiddlerTagClasses)$ \end +\define folded-state() +$:/state/folded/$(currentTiddler)$ +\end <$set name="storyTiddler" value=<>><$set name="tiddlerInfoState" value=<>><$tiddler tiddler=<>>
>><$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!has[draft.of]]" variable="listItem"><$transclude tiddler=<>/>
diff --git a/core/ui/ViewTemplate/body.tid b/core/ui/ViewTemplate/body.tid index 55c67f977..4ef5b5650 100644 --- a/core/ui/ViewTemplate/body.tid +++ b/core/ui/ViewTemplate/body.tid @@ -1,10 +1,6 @@ title: $:/core/ui/ViewTemplate/body tags: $:/tags/ViewTemplate -\define folded-state() -$:/state/folded/$(currentTiddler)$ -\end - <$reveal tag="div" class="tc-tiddler-body" type="nomatch" state=<> text="hide" retain="yes" animate="yes"> <$list filter="[all[current]!has[plugin-type]!field:hide-body[yes]]"> diff --git a/core/ui/ViewTemplate/subtitle.tid b/core/ui/ViewTemplate/subtitle.tid index c1b646dde..f96c80fbd 100644 --- a/core/ui/ViewTemplate/subtitle.tid +++ b/core/ui/ViewTemplate/subtitle.tid @@ -1,10 +1,6 @@ title: $:/core/ui/ViewTemplate/subtitle tags: $:/tags/ViewTemplate -\define folded-state() -$:/state/folded/$(currentTiddler)$ -\end - <$reveal type="nomatch" state=<> text="hide" tag="div" retain="yes" animate="yes">
<$link to={{!!modifier}}> diff --git a/core/ui/ViewTemplate/tags.tid b/core/ui/ViewTemplate/tags.tid index c385e7c7b..a9f85a5b6 100644 --- a/core/ui/ViewTemplate/tags.tid +++ b/core/ui/ViewTemplate/tags.tid @@ -1,10 +1,6 @@ title: $:/core/ui/ViewTemplate/tags tags: $:/tags/ViewTemplate -\define folded-state() -$:/state/folded/$(currentTiddler)$ -\end - <$reveal type="nomatch" state=<> text="hide" tag="div" retain="yes" animate="yes">
<$list filter="[all[current]tags[]sort[title]]" template="$:/core/ui/TagTemplate" storyview="pop"/>
\ No newline at end of file