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()
|
2016-02-27 14:40:11 +00:00
|
|
|
$:/state/plugins/tiddlywiki/text-slicer/show-preview-document/$(tv-heading-status-config-prefix)$/$(currentTiddler)$
|
2015-09-12 08:41:25 +00:00
|
|
|
\end
|
|
|
|
|
2015-08-30 18:15:04 +00:00
|
|
|
\define config-show-toolbar()
|
2016-02-27 14:40:11 +00:00
|
|
|
$:/state/plugins/tiddlywiki/text-slicer/show-toolbar/$(currentTiddler)$
|
2015-08-30 18:15:04 +00:00
|
|
|
\end
|
|
|
|
|
2016-02-03 12:48:11 +00:00
|
|
|
\define config-show-metadata()
|
2016-02-27 14:40:11 +00:00
|
|
|
$:/state/plugins/tiddlywiki/text-slicer/show-metadata/$(currentTiddler)$
|
2016-02-03 12:48:11 +00:00
|
|
|
\end
|
|
|
|
|
2015-08-30 18:15:04 +00:00
|
|
|
\define config-heading-status()
|
2016-02-27 14:40:11 +00:00
|
|
|
$:/state/plugins/tiddlywiki/text-slicer/heading-status/$(currentTiddler)$
|
2015-08-30 18:15:04 +00:00
|
|
|
\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">
|
2016-02-28 20:18:01 +00:00
|
|
|
<$reveal type="nomatch" state=<<config-document-status>> text="close" default="open">
|
|
|
|
<$button set=<<config-document-status>> setTo="close" class="tc-btn-invisible">
|
2015-09-12 08:41:25 +00:00
|
|
|
{{$:/core/images/down-arrow}}
|
|
|
|
</$button>
|
|
|
|
</$reveal>
|
2016-02-28 20:18:01 +00:00
|
|
|
<$reveal type="match" state=<<config-document-status>> text="close" default="open">
|
|
|
|
<$button set=<<config-document-status>> setTo="open" class="tc-btn-invisible">
|
2015-09-12 08:41:25 +00:00
|
|
|
{{$:/core/images/right-arrow}}
|
|
|
|
</$button>
|
|
|
|
</$reveal>
|
|
|
|
</div>
|
|
|
|
<h1 class="tc-sliced-document-title">''Document'': <$link><$view field="title"/></$link></h1>
|
|
|
|
</div>
|
2016-02-28 20:18:01 +00:00
|
|
|
<$reveal type="nomatch" state=<<config-document-status>> text="close" default="open">
|
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>>
|