Make it easier for other view template segments to support folding

This commit is contained in:
Jermolene
2015-09-07 17:00:03 +01:00
parent 2e0845b806
commit 76c12a9ecc
4 changed files with 3 additions and 12 deletions
-4
View File
@@ -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=<<folded-state>> text="hide" retain="yes" animate="yes">
<$list filter="[all[current]!has[plugin-type]!field:hide-body[yes]]">
-4
View File
@@ -1,10 +1,6 @@
title: $:/core/ui/ViewTemplate/subtitle
tags: $:/tags/ViewTemplate
\define folded-state()
$:/state/folded/$(currentTiddler)$
\end
<$reveal type="nomatch" state=<<folded-state>> text="hide" tag="div" retain="yes" animate="yes">
<div class="tc-subtitle">
<$link to={{!!modifier}}>
-4
View File
@@ -1,10 +1,6 @@
title: $:/core/ui/ViewTemplate/tags
tags: $:/tags/ViewTemplate
\define folded-state()
$:/state/folded/$(currentTiddler)$
\end
<$reveal type="nomatch" state=<<folded-state>> text="hide" tag="div" retain="yes" animate="yes">
<div class="tc-tags-wrapper"><$list filter="[all[current]tags[]sort[title]]" template="$:/core/ui/TagTemplate" storyview="pop"/></div>
</$reveal>