2014-10-08 16:46:34 +00:00
|
|
|
title: $:/core/ui/Buttons/new-journal
|
|
|
|
tags: $:/tags/PageControls
|
|
|
|
caption: {{$:/core/images/new-journal-button}} {{$:/language/Buttons/NewJournal/Caption}}
|
|
|
|
description: {{$:/language/Buttons/NewJournal/Hint}}
|
|
|
|
|
2018-06-06 18:41:02 +00:00
|
|
|
\define journalActions()
|
2018-05-10 07:52:02 +00:00
|
|
|
<$wikify name="journalTitle" text="""<$macrocall $name="now" format=<<journalTitleTemplate>>/>""">
|
2018-05-10 10:28:07 +00:00
|
|
|
<$reveal type="nomatch" state=<<journalTitle>> text="">
|
|
|
|
<$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> tags=<<journalTags>> text={{{ [<journalTitle>get[]] }}}/>
|
|
|
|
</$reveal>
|
|
|
|
<$reveal type="match" state=<<journalTitle>> text="">
|
2018-05-10 07:52:02 +00:00
|
|
|
<$action-sendmessage $message="tm-new-tiddler" title=<<journalTitle>> tags=<<journalTags>> text=<<journalText>>/>
|
2018-05-10 10:28:07 +00:00
|
|
|
</$reveal>
|
2018-06-06 18:41:02 +00:00
|
|
|
</$wikify>
|
|
|
|
\end
|
|
|
|
|
|
|
|
\define journalButton()
|
|
|
|
<$button tooltip={{$:/language/Buttons/NewJournal/Hint}} aria-label={{$:/language/Buttons/NewJournal/Caption}} class=<<tv-config-toolbar-class>> actions=<<journalActions>>>
|
2014-10-08 16:46:34 +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/NewJournal/Caption}}/></span>
|
2014-10-08 16:46:34 +00:00
|
|
|
</$list>
|
|
|
|
</$button>
|
2014-10-08 17:35:25 +00:00
|
|
|
\end
|
|
|
|
<$set name="journalTitleTemplate" value={{$:/config/NewJournal/Title}}>
|
2014-10-09 14:35:17 +00:00
|
|
|
<$set name="journalTags" value={{$:/config/NewJournal/Tags}}>
|
2017-04-04 17:06:49 +00:00
|
|
|
<$set name="journalText" value={{$:/config/NewJournal/Text}}>
|
2014-10-08 17:35:25 +00:00
|
|
|
<<journalButton>>
|
2017-04-04 17:15:49 +00:00
|
|
|
</$set></$set></$set>
|