2015-08-30 18:15:04 +00:00
|
|
|
title: $:/plugins/tiddlywiki/text-slicer/templates/template-heading
|
|
|
|
|
|
|
|
\define config-heading-status()
|
|
|
|
$(tv-heading-status-config-title)$/$(currentTiddler)$
|
|
|
|
\end
|
|
|
|
|
|
|
|
\define body(level:"h1")
|
|
|
|
<$set name="tv-heading-status-config-title" value=<<config-heading-status>>>
|
|
|
|
<div class="tc-document-tiddler">
|
|
|
|
<div class="tc-document-tiddler-toolbar">
|
2015-08-31 13:15:44 +00:00
|
|
|
|
2015-08-31 13:54:39 +00:00
|
|
|
<$list filter="[<tv-show-gadgets>prefix[yes]]" variable="hasToolbar">
|
2015-08-30 18:15:04 +00:00
|
|
|
<$reveal type="nomatch" state=<<tv-heading-status-config-title>> text="open" default=<<tv-default-heading-state>>>
|
|
|
|
<$button set=<<tv-heading-status-config-title>> setTo="open" class="tc-btn-invisible">
|
|
|
|
{{$:/core/images/down-arrow}}
|
|
|
|
</$button>
|
|
|
|
</$reveal>
|
|
|
|
<$reveal type="match" state=<<tv-heading-status-config-title>> text="open" default=<<tv-default-heading-state>>>
|
|
|
|
<$button set=<<tv-heading-status-config-title>> setTo="close" class="tc-btn-invisible">
|
|
|
|
{{$:/core/images/right-arrow}}
|
|
|
|
</$button>
|
|
|
|
</$reveal>
|
2015-08-31 13:15:44 +00:00
|
|
|
</$list>
|
|
|
|
|
2015-08-30 18:15:04 +00:00
|
|
|
</div>
|
|
|
|
<$link tag="$level$" class="tc-document-tiddler-link">
|
|
|
|
<$view field="text"/>
|
|
|
|
</$link>
|
|
|
|
<$reveal type="nomatch" state=<<tv-heading-status-config-title>> text="open" default=<<tv-default-heading-state>>>
|
|
|
|
<$list filter="[tag<currentTiddler>!has[draft.of]]" template="$:/plugins/tiddlywiki/text-slicer/templates/template-tiddler" listItem="item"/>
|
|
|
|
</$reveal>
|
|
|
|
</div>
|
|
|
|
</$set>
|
|
|
|
\end
|
|
|
|
|
|
|
|
<$macrocall $name="body" level={{!!toc-heading-level}}/>
|