mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-01 11:27:02 +00:00
Comments plugin: Switch to using the list field to attach comments
https://github.com/Jermolene/TiddlyWiki5/issues/3378#issuecomment-413137626
This commit is contained in:
@@ -2,8 +2,15 @@ title: $:/plugins/tiddlywiki/comments/header-view-template-segment
|
||||
tags: $:/tags/ViewTemplate
|
||||
list-before: $:/core/ui/ViewTemplate/body
|
||||
|
||||
<$list filter="[all[current]has[comment-target]]" variable="ignore">
|
||||
<$list filter="[all[current]role[comment]]" variable="ignore">
|
||||
<div class="tc-is-comment-header">
|
||||
This tiddler is a comment on <$link to={{!!comment-target}}><$text text={{!!comment-target}}/></$link>
|
||||
This tiddler is a comment on:
|
||||
<ul>
|
||||
<$list filter="[list<currentTiddler>sort[title]]">
|
||||
<li>
|
||||
<$link to=<<currentTiddler>>><$text text=<<currentTiddler>>/></$link>
|
||||
</li>
|
||||
</$list>
|
||||
</ul>
|
||||
</div>
|
||||
</$list>
|
||||
|
||||
Reference in New Issue
Block a user