mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-06 01:56:20 +00:00
aba835fb74
* Storyviews expose a static "singleTiddlerMode" property to determine if they require single tiddler mode * Navigator widget adds a "singleTiddlerMode" attribute; when set to "yes", the story list is entirely replaced during navigation * Navigator widget now updates "list" field of $:/HistoryList with a more accessible version of the history list * Add a getstoryviewsingletiddlermode[] operator so that we can obtain the story view STM status for passing to the navigator widget
56 lines
1.3 KiB
Plaintext
56 lines
1.3 KiB
Plaintext
title: $:/core/ui/PageTemplate
|
|
|
|
\define containerClasses()
|
|
tc-page-container tc-page-view-$(storyviewTitle)$ tc-language-$(languageTitle)$
|
|
\end
|
|
|
|
<$importvariables filter="[[$:/core/ui/PageMacros]] [all[shadows+tiddlers]tag[$:/tags/Macro]!has[draft.of]]">
|
|
|
|
<$set name="tv-config-toolbar-icons" value={{$:/config/Toolbar/Icons}}>
|
|
|
|
<$set name="tv-config-toolbar-text" value={{$:/config/Toolbar/Text}}>
|
|
|
|
<$set name="tv-config-toolbar-class" value={{$:/config/Toolbar/ButtonClass}}>
|
|
|
|
<$set name="storyviewTitle" value={{$:/view}}>
|
|
|
|
<$set name="currentTiddler" value={{$:/language}}>
|
|
|
|
<$set name="languageTitle" value={{!!name}}>
|
|
|
|
<$set name="currentTiddler" value="">
|
|
|
|
<div class=<<containerClasses>>>
|
|
|
|
<$navigator story="$:/StoryList" history="$:/HistoryList" singleTiddlerMode={{{ [{$:/view}getstoryviewsingletiddlermode[]] }}} openLinkFromInsideRiver={{$:/config/Navigation/openLinkFromInsideRiver}} openLinkFromOutsideRiver={{$:/config/Navigation/openLinkFromOutsideRiver}} relinkOnRename={{$:/config/RelinkOnRename}}>
|
|
|
|
<$dropzone>
|
|
|
|
<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageTemplate]!has[draft.of]]" variable="listItem">
|
|
|
|
<$transclude tiddler=<<listItem>>/>
|
|
|
|
</$list>
|
|
|
|
</$dropzone>
|
|
|
|
</$navigator>
|
|
|
|
</div>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
|
|
|
</$set>
|
|
|
|
</$importvariables>
|