mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 09:30:28 +00:00
afa677b9a0
We’re already marking tiddlers in edit mode with tw-tiddler-edit-mode, makes sense to make view mode tiddlers too.
9 lines
605 B
Plaintext
9 lines
605 B
Plaintext
title: $:/core/ui/ViewTemplate
|
|
|
|
\define frame-classes()
|
|
tw-tiddler-frame tw-tiddler-view-frame $(missingTiddlerClass)$ $(shadowTiddlerClass)$ $(systemTiddlerClass)$
|
|
\end
|
|
<$set name="storyTiddler" value=<<currentTiddler>>><$set name="tiddlerInfoState" value=<<qualify "$:/state/tiddlerInfo">>><$tiddler tiddler=<<currentTiddler>>><div class=<<frame-classes>>><$list filter="[is[shadow]!has[draft.of]tag[$:/tags/ViewTemplate]] [!is[shadow]!has[draft.of]tag[$:/tags/ViewTemplate]] +[tag[$:/tags/ViewTemplate]]" variable="listItem"><$transclude tiddler=<<listItem>>/></$list>
|
|
</div>
|
|
</$tiddler></$set></$set>
|