2018-11-13 08:54:50 +00:00
|
|
|
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>] }}}>
|
2018-11-29 09:48:35 +00:00
|
|
|
<$reveal stateTitle=<<state>> type="match" text="true" tag="div">
|
2018-11-13 08:54:50 +00:00
|
|
|
<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>
|
2018-11-29 09:48:35 +00:00
|
|
|
<$reveal stateTitle=<<state>> type="nomatch" text="true" tag="div">
|
2018-11-13 08:54:50 +00:00
|
|
|
<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>
|