mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-06 01:56:20 +00:00
daf439121b
Now the ViewTemplate just renders the current tiddler through each template tagged `$:/tags/ViewTemplate`. This allows plugins (and users) to add/remove elements from the ViewTemplate easily, without overwriting the ViewTemplate itself. (For @giffmex)
12 lines
801 B
Plaintext
12 lines
801 B
Plaintext
title: $:/core/ui/ViewTemplate/title
|
|
tags: $:/tags/ViewTemplate
|
|
|
|
<div class="tw-tiddler-title"><div class="title"><$setstyle name="fill" value={{!!color}}><span class="tw-tiddler-controls"><$button popup="$:/state/tiddlerInfo" qualifyTiddlerTitles="yes" class="btn-invisible">{{$:/core/images/info-button}}</$button><$button message="tw-edit-tiddler" class="btn-invisible">{{$:/core/images/edit-button}}</$button><$button message="tw-close-tiddler" class="btn-invisible">{{$:/core/images/close-button}}</$button>
|
|
|
|
</span><$transclude target={{!!icon}}/> <$view field="title"/></$setstyle></div>
|
|
|
|
<$reveal type="nomatch" text="" default="" state="$:/state/tiddlerInfo" qualifyTiddlerTitles="yes" class="tw-tiddler-info" animate="yes">
|
|
|
|
<$transclude template="$:/core/ui/TiddlerInfo"/>
|
|
|
|
</$reveal></div> |