2018-06-21 07:36:15 +00:00
|
|
|
title: $:/plugins/tiddlywiki/comments/header-view-template-segment
|
|
|
|
tags: $:/tags/ViewTemplate
|
|
|
|
list-before: $:/core/ui/ViewTemplate/body
|
|
|
|
|
2019-11-02 09:31:36 +00:00
|
|
|
\define display-original-comment()
|
|
|
|
<$link><$text text=<<currentTiddler>>/></$link>
|
|
|
|
\end
|
|
|
|
|
|
|
|
\define find-original-comment(exclude)
|
|
|
|
<$list filter="[<currentTiddler>role[comment]]" emptyMessage=<<display-original-comment>> variable="ignore">
|
|
|
|
<$list filter="[list<currentTiddler>sort[title]] -[enlist<__exclude__>]">
|
|
|
|
<$set name="newExclude" filter="[enlist<__exclude__>] [<currentTiddler>]">
|
|
|
|
<$macrocall $name="find-original-comment" exclude=<<newExclude>>/>
|
|
|
|
</$set>
|
|
|
|
</$list>
|
|
|
|
</$list>
|
|
|
|
\end
|
|
|
|
|
2018-08-15 12:50:29 +00:00
|
|
|
<$list filter="[all[current]role[comment]]" variable="ignore">
|
2018-06-21 07:36:15 +00:00
|
|
|
<div class="tc-is-comment-header">
|
2019-11-02 09:31:36 +00:00
|
|
|
<p>
|
|
|
|
This tiddler a comment on
|
2018-08-15 12:50:29 +00:00
|
|
|
<$list filter="[list<currentTiddler>sort[title]]">
|
2019-11-02 09:31:36 +00:00
|
|
|
<<find-original-comment>>
|
|
|
|
</$list>
|
|
|
|
</p>
|
|
|
|
<$list filter="[list<currentTiddler>role[comment]sort[title]limit[1]]" variable="ignore">
|
|
|
|
<p>
|
|
|
|
Parent comments:
|
|
|
|
</p>
|
|
|
|
<ul>
|
|
|
|
<$list filter="[list<currentTiddler>role[comment]sort[title]]">
|
2018-08-15 12:50:29 +00:00
|
|
|
<li>
|
|
|
|
<$link to=<<currentTiddler>>><$text text=<<currentTiddler>>/></$link>
|
|
|
|
</li>
|
|
|
|
</$list>
|
|
|
|
</ul>
|
2019-11-02 09:31:36 +00:00
|
|
|
</$list>
|
2018-06-21 07:36:15 +00:00
|
|
|
</div>
|
|
|
|
</$list>
|