mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-27 03:57:21 +00:00
Text-slicer refactoring
This commit is contained in:
parent
0be82ea7fb
commit
17dc21b809
@ -1,3 +1,3 @@
|
||||
title: $:/plugins/tiddlywiki/text-slicer/exporters/full-doc
|
||||
|
||||
<$list filter="[list<currentTiddler>!has[draft.of]]" template="$:/plugins/tiddlywiki/text-slicer/templates/static/tiddler" listItem="item"/>
|
||||
{{||$:/plugins/tiddlywiki/text-slicer/templates/static/document}}
|
||||
|
@ -15,18 +15,7 @@ $:/config/plugins/tiddlywiki/text-slicer/heading-status/$(currentTiddler)$
|
||||
|
||||
<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>
|
||||
|
||||
<$button>
|
||||
<$action-sendmessage $message="tm-open-window" $param=<<currentTiddler>> template="$:/plugins/tiddlywiki/text-slicer/exporters/full-doc"/>
|
||||
View document
|
||||
</$button>
|
||||
|
||||
</div>
|
||||
{{||$:/plugins/tiddlywiki/text-slicer/ui/document/header}}
|
||||
|
||||
<div class='tc-sliced-document-body'>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
title: $:/plugins/tiddlywiki/text-slicer/templates/interactive/tiddler
|
||||
|
||||
<$list filter="[<tv-show-toolbar>prefix[yes]]" variable="hasToolbar">
|
||||
{{||$:/plugins/tiddlywiki/text-slicer/ui/toolbar/tiddler-toolbar}}
|
||||
{{||$:/plugins/tiddlywiki/text-slicer/ui/tiddler/toolbar}}
|
||||
</$list>
|
||||
|
||||
<$reveal type="match" state="!!toc-type" text="document">
|
||||
|
16
plugins/tiddlywiki/text-slicer/ui/document/header.tid
Normal file
16
plugins/tiddlywiki/text-slicer/ui/document/header.tid
Normal file
@ -0,0 +1,16 @@
|
||||
title: $:/plugins/tiddlywiki/text-slicer/ui/document/header
|
||||
|
||||
<div class="tc-sliced-document-header">
|
||||
|
||||
''Document'': <$link><$view field="title"/></$link>
|
||||
|
||||
''Exclude tags'': <$edit-text field="toc-exclude-tags"/>
|
||||
|
||||
<$checkbox tiddler=<<config-show-toolbar>> field="text" checked="yes" unchecked="no" default="no"> Show toolbar</$checkbox>
|
||||
|
||||
<$button>
|
||||
<$action-sendmessage $message="tm-open-window" $param=<<currentTiddler>> template="$:/plugins/tiddlywiki/text-slicer/exporters/full-doc"/>
|
||||
View document
|
||||
</$button>
|
||||
|
||||
</div>
|
@ -1,4 +1,4 @@
|
||||
title: $:/plugins/tiddlywiki/text-slicer/ui/toolbar/tiddler-toolbar
|
||||
title: $:/plugins/tiddlywiki/text-slicer/ui/tiddler/toolbar
|
||||
|
||||
<div class="tc-slice-toolbar">
|
||||
<$list filter="[all[shadows+tiddlers]tag[$:/tags/TextSlicerToolbar]!has[draft.of]]" variable="listItem"><$transclude tiddler=<<listItem>>/></$list>
|
@ -1,4 +1,4 @@
|
||||
title: $:/plugins/tiddlywiki/text-slicer/ui/toolbar/title
|
||||
title: $:/plugins/tiddlywiki/text-slicer/ui/tiddler/toolbar/title
|
||||
tags: $:/tags/TextSlicerToolbar
|
||||
|
||||
\define renameProxyTitle()
|
Loading…
Reference in New Issue
Block a user