mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-03 22:10:26 +00:00
11 lines
546 B
Plaintext
11 lines
546 B
Plaintext
title: $:/plugins/tiddlywiki/comments/add-comment-button
|
|
|
|
<$reveal state="$:/status/IsReadOnly" type="match" text="no" default="no" tag="div" class="tc-comment-button">
|
|
<$button class="tc-btn-invisible">
|
|
<$set name="username" value={{$:/status/UserName}} emptyValue="(anonymous)">
|
|
<$action-createtiddler $basetitle={{{ [[Comment by ']addsuffix<username>addsuffix[' on ']addsuffix<currentTiddler>addsuffix[']] }}} comment-target=<<currentTiddler>> text="" edit-mode="yes"/>
|
|
</$set>
|
|
add comment {{$:/core/images/add-comment}}
|
|
</$button>
|
|
</$reveal>
|