2014-10-09 14:35:17 +00:00
|
|
|
title: $:/core/ui/Buttons/new-journal-here
|
|
|
|
tags: $:/tags/ViewToolbar
|
|
|
|
caption: {{$:/core/images/new-journal-button}} {{$:/language/Buttons/NewJournalHere/Caption}}
|
|
|
|
description: {{$:/language/Buttons/NewJournalHere/Hint}}
|
|
|
|
|
2017-07-12 15:47:52 +00:00
|
|
|
\whitespace trim
|
2014-10-09 19:11:11 +00:00
|
|
|
\define journalButtonTags()
|
|
|
|
[[$(currentTiddlerTag)$]] $(journalTags)$
|
|
|
|
\end
|
2014-10-09 14:35:17 +00:00
|
|
|
\define journalButton()
|
|
|
|
<$button tooltip={{$:/language/Buttons/NewJournalHere/Hint}} aria-label={{$:/language/Buttons/NewJournalHere/Caption}} class=<<tv-config-toolbar-class>>>
|
2018-04-02 18:42:26 +00:00
|
|
|
<$action-sendmessage $message="tm-new-tiddler" title=<<now """$(journalTitleTemplate)$ """>> tags=<<journalButtonTags>>/>
|
2014-10-09 14:35:17 +00:00
|
|
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
|
|
|
{{$:/core/images/new-journal-button}}
|
|
|
|
</$list>
|
|
|
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
2017-07-12 15:47:52 +00:00
|
|
|
<span class="tc-btn-text">
|
|
|
|
<$text text={{$:/language/Buttons/NewJournalHere/Caption}}/>
|
|
|
|
</span>
|
2014-10-09 14:35:17 +00:00
|
|
|
</$list>
|
|
|
|
</$button>
|
|
|
|
\end
|
|
|
|
<$set name="journalTitleTemplate" value={{$:/config/NewJournal/Title}}>
|
|
|
|
<$set name="journalTags" value={{$:/config/NewJournal/Tags}}>
|
|
|
|
<$set name="currentTiddlerTag" value=<<currentTiddler>>>
|
|
|
|
<<journalButton>>
|
2017-07-12 15:47:52 +00:00
|
|
|
</$set>
|
|
|
|
</$set>
|
|
|
|
</$set>
|