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}}
|
|
|
|
|
2014-10-08 17:35:25 +00:00
|
|
|
\define journalButton()
|
2014-10-08 16:46:34 +00:00
|
|
|
<$button tooltip={{$:/language/Buttons/NewJournal/Hint}} aria-label={{$:/language/Buttons/NewJournal/Caption}} class=<<tv-config-toolbar-class>>>
|
2014-10-09 14:35:17 +00:00
|
|
|
<$action-sendmessage $message="tm-new-tiddler" title=<<now "$(journalTitleTemplate)$">> tags="$(journalTags)$"/>
|
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]]">
|
|
|
|
<$text text={{$:/language/Buttons/NewJournal/Caption}}/>
|
|
|
|
</$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}}>
|
2014-10-08 17:35:25 +00:00
|
|
|
<<journalButton>>
|
2014-10-09 14:35:17 +00:00
|
|
|
</$set></$set>
|