2015-08-31 15:49:47 +00:00
|
|
|
title: $:/plugins/tiddlywiki/text-slicer/templates/interactive/heading
|
2015-08-30 18:15:04 +00:00
|
|
|
|
|
|
|
\define config-heading-status()
|
2015-09-04 07:42:07 +00:00
|
|
|
$(tv-heading-status-config-title)$/$(tv-heading-status-config-prefix)$/$(currentTiddler)$
|
2015-08-30 18:15:04 +00:00
|
|
|
\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">
|
2017-12-14 14:16:54 +00:00
|
|
|
<$reveal type="nomatch" state=<<tv-heading-status-config-title>> text="close" default=<<tv-default-heading-state>> tag="div">
|
2016-02-28 20:18:01 +00:00
|
|
|
<$button set=<<tv-heading-status-config-title>> setTo="close" class="tc-btn-invisible">
|
2015-08-30 18:15:04 +00:00
|
|
|
{{$:/core/images/down-arrow}}
|
|
|
|
</$button>
|
|
|
|
</$reveal>
|
2017-12-14 14:16:54 +00:00
|
|
|
<$reveal type="match" state=<<tv-heading-status-config-title>> text="close" default=<<tv-default-heading-state>> tag="div">
|
2016-02-28 20:18:01 +00:00
|
|
|
<$button set=<<tv-heading-status-config-title>> setTo="open" class="tc-btn-invisible">
|
2015-08-30 18:15:04 +00:00
|
|
|
{{$:/core/images/right-arrow}}
|
|
|
|
</$button>
|
|
|
|
</$reveal>
|
|
|
|
</div>
|
|
|
|
<$link tag="$level$" class="tc-document-tiddler-link">
|
2015-09-11 12:33:58 +00:00
|
|
|
<$transclude/>
|
2015-08-30 18:15:04 +00:00
|
|
|
</$link>
|
2017-12-14 14:16:54 +00:00
|
|
|
<$reveal type="nomatch" state=<<tv-heading-status-config-title>> text="close" default=<<tv-default-heading-state>> tag="div">
|
2015-09-04 08:05:33 +00:00
|
|
|
<$list filter="[list<currentTiddler>!has[draft.of]]" template="$:/plugins/tiddlywiki/text-slicer/templates/interactive/tiddler"/>
|
2015-08-30 18:15:04 +00:00
|
|
|
</$reveal>
|
|
|
|
</div>
|
|
|
|
</$set>
|
|
|
|
\end
|
|
|
|
|
|
|
|
<$macrocall $name="body" level={{!!toc-heading-level}}/>
|