mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-08-23 10:06:44 +00:00
![Tobias Beer](/assets/img/avatar_default.png)
Note: I did NOT test the results as I have yet to figure out how to make node.js... * actually run the server without a 403 * build the core tw after me having made changes
20 lines
931 B
Plaintext
20 lines
931 B
Plaintext
title: $:/core/ui/Buttons/new-journal
|
|
tags: $:/tags/PageControls
|
|
caption: {{$:/core/images/new-journal-button}} {{$:/language/Buttons/NewJournal/Caption}}
|
|
description: {{$:/language/Buttons/NewJournal/Hint}}
|
|
|
|
\define journalButton()
|
|
<$button tooltip={{$:/language/Buttons/NewJournal/Hint}} aria-label={{$:/language/Buttons/NewJournal/Caption}} class=<<tv-config-toolbar-class>>>
|
|
<$action-sendmessage $message="tm-new-tiddler" title=<<now "$(journalTitleTemplate)$">> tags="$(journalTags)$"/>
|
|
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
|
|
{{$:/core/images/new-journal-button}}
|
|
</$list>
|
|
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
|
|
<span class="tc-btn-text"><$text text={{$:/language/Buttons/NewJournal/Caption}}/></span>
|
|
</$list>
|
|
</$button>
|
|
\end
|
|
<$set name="journalTitleTemplate" value={{$:/config/NewJournal/Title}}>
|
|
<$set name="journalTags" value={{$:/config/NewJournal/Tags}}>
|
|
<<journalButton>>
|
|
</$set></$set> |