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}}
|
|
|
|
|
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>>>
|
2014-10-09 19:11:11 +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]]">
|
2014-10-11 14:26:51 +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>>
|
2014-11-23 16:32:29 +00:00
|
|
|
</$set></$set></$set>
|