2015-08-31 15:49:47 +00:00
|
|
|
title: $:/plugins/tiddlywiki/text-slicer/templates/interactive/document
|
2015-08-30 18:15:04 +00:00
|
|
|
|
2015-09-12 08:41:25 +00:00
|
|
|
\define config-document-status()
|
|
|
|
$:/config/plugins/tiddlywiki/text-slicer/show-preview-document/$(tv-heading-status-config-prefix)$/$(currentTiddler)$
|
|
|
|
\end
|
|
|
|
|
2015-08-30 18:15:04 +00:00
|
|
|
\define config-show-toolbar()
|
|
|
|
$:/config/plugins/tiddlywiki/text-slicer/show-toolbar/$(currentTiddler)$
|
|
|
|
\end
|
|
|
|
|
|
|
|
\define config-heading-status()
|
|
|
|
$:/config/plugins/tiddlywiki/text-slicer/heading-status/$(currentTiddler)$
|
|
|
|
\end
|
|
|
|
|
|
|
|
\define body()
|
|
|
|
<$set name="tv-heading-status-config-title" value=<<config-heading-status>>>
|
|
|
|
<$set name="tv-show-toolbar" value={{$(config-show-toolbar)$}}>
|
|
|
|
<div class="tc-sliced-document">
|
2015-09-12 08:41:25 +00:00
|
|
|
<div class="tc-sliced-document-header">
|
|
|
|
<div class="tc-document-tiddler-toolbar">
|
|
|
|
<$reveal type="nomatch" state=<<config-document-status>> text="open" default="closed">
|
|
|
|
<$button set=<<config-document-status>> setTo="open" class="tc-btn-invisible">
|
|
|
|
{{$:/core/images/down-arrow}}
|
|
|
|
</$button>
|
|
|
|
</$reveal>
|
|
|
|
<$reveal type="match" state=<<config-document-status>> text="open" default="closed">
|
|
|
|
<$button set=<<config-document-status>> setTo="close" class="tc-btn-invisible">
|
|
|
|
{{$:/core/images/right-arrow}}
|
|
|
|
</$button>
|
|
|
|
</$reveal>
|
|
|
|
</div>
|
|
|
|
<h1 class="tc-sliced-document-title">''Document'': <$link><$view field="title"/></$link></h1>
|
|
|
|
</div>
|
|
|
|
<$reveal type="nomatch" state=<<config-document-status>> text="open" default="closed">
|
2015-08-31 19:32:32 +00:00
|
|
|
{{||$:/plugins/tiddlywiki/text-slicer/ui/document/header}}
|
2015-08-31 13:15:44 +00:00
|
|
|
<div class='tc-sliced-document-body'>
|
2015-08-30 18:15:04 +00:00
|
|
|
<$set name="tv-show-toolbar" value={{$(config-show-toolbar)$}}>
|
2015-09-01 08:59:23 +00:00
|
|
|
<$set name="tv-exclude-filter" value={{!!toc-exclude-filter}}>
|
2015-09-04 07:42:07 +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
|
|
|
</$set>
|
2015-09-01 08:59:23 +00:00
|
|
|
</$set>
|
2015-08-30 18:15:04 +00:00
|
|
|
</div>
|
2015-09-12 08:41:25 +00:00
|
|
|
</$reveal>
|
2015-08-30 18:15:04 +00:00
|
|
|
</div>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
|
|
|
\end
|
|
|
|
|
|
|
|
<<body>>
|