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-05-10 07:52:02 +00:00
|
|
|
<$wikify name="journalTitle" text="""<$macrocall $name="now" format=<<journalTitleTemplate>>/>""">
|
|
|
|
<$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> tags=<<journalButtonTags>>/>
|
2019-07-31 08:30:16 +00:00
|
|
|
<$list filter="[<tv-config-toolbar-icons>match[yes]]">
|
2014-10-09 14:35:17 +00:00
|
|
|
{{$:/core/images/new-journal-button}}
|
|
|
|
</$list>
|
2019-07-31 08:30:16 +00:00
|
|
|
<$list filter="[<tv-config-toolbar-text>match[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>
|
2018-05-10 07:52:02 +00:00
|
|
|
</$wikify>
|
2014-10-09 14:35:17 +00:00
|
|
|
</$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>
|