mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-30 12:00:28 +00:00
bc448ce1fd
* Add warning in document tiddler toolbar if tiddler already exists * Live preview document in new window * Fix slicer.js bug that was preventing the list field of headings from being filled in correctly * Rationalise some class names
46 lines
1.1 KiB
Plaintext
46 lines
1.1 KiB
Plaintext
title: $:/plugins/tiddlywiki/text-slicer/templates/template-document
|
|
|
|
\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">
|
|
|
|
<div class="tc-sliced-document-header">
|
|
|
|
''Document'': <$link><$view field="title"/></$link>
|
|
|
|
<$checkbox tiddler=<<config-show-toolbar>> field="text" checked="yes" unchecked="no" default="no"> Show toolbar</$checkbox>
|
|
|
|
{{||$:/plugins/tiddlywiki/text-slicer/templates/view-document}}
|
|
|
|
</div>
|
|
|
|
<div class='tc-sliced-document-body'>
|
|
|
|
<$set name="tv-show-toolbar" value={{$(config-show-toolbar)$}}>
|
|
|
|
<$list filter="[list<currentTiddler>!has[draft.of]]" template="$:/plugins/tiddlywiki/text-slicer/templates/template-tiddler" listItem="item"/>
|
|
|
|
</$set>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
|
\end
|
|
|
|
<<body>>
|