mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-15 06:14:53 +00:00
31 lines
1.5 KiB
Plaintext
31 lines
1.5 KiB
Plaintext
|
title: $:/core/ui/ViewTemplate
|
||
|
|
||
|
\whitespace trim
|
||
|
\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=<<currentTiddler>> tiddlerInfoState=<<qualify "$:/state/popup/tiddler-info">> userClass={{!!class}}>
|
||
|
<$tiddler tiddler=<<currentTiddler>>>
|
||
|
<div data-tiddler-title=<<currentTiddler>> data-tags={{!!tags}} class=<<frame-classes>>>
|
||
|
|
||
|
<$set name="state" value={{{ [[$:/state/viewtemplate/visibility/]addsuffix<currentTiddler>] }}}>
|
||
|
<$reveal state=<<state>> type="match" text="true" tag="div">
|
||
|
<div class="tc-dynaview-set-tiddler-when-visible tc-dynaview-expand-viewport" data-dynaview-set-tiddler=<<state>> data-dynaview-set-value="true" data-dynaview-unset-tiddler=<<state>> data-dynaview-unset-value="false" data-dynaview-has-triggered={{{ [<state>get[text]] }}}>
|
||
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/ViewTemplate]!has[draft.of]]" variable="listItem">
|
||
|
<$transclude tiddler=<<listItem>>/>
|
||
|
</$list>
|
||
|
</div>
|
||
|
</$reveal>
|
||
|
<$reveal state=<<state>> type="nomatch" text="true" tag="div">
|
||
|
<div class="tc-dynaview-set-tiddler-when-visible tc-dynaview-expand-viewport" style="min-height: 5em;" data-dynaview-set-tiddler=<<state>> data-dynaview-set-value="true" data-dynaview-unset-tiddler=<<state>> data-dynaview-unset-value="false" data-dynaview-has-triggered={{{ [<state>get[text]] }}}>
|
||
|
</div>
|
||
|
</$reveal>
|
||
|
</$set>
|
||
|
|
||
|
</div>
|
||
|
</$tiddler>
|
||
|
</$vars>
|