mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-05 02:57:14 +00:00
First stab at a threaded commenting plugin
This commit is contained in:
10
plugins/tiddlywiki/comments/add-comment-button.tid
Normal file
10
plugins/tiddlywiki/comments/add-comment-button.tid
Normal file
@@ -0,0 +1,10 @@
|
||||
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>
|
||||
Reference in New Issue
Block a user