mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-19 21:55:15 +00:00
provide comment box for hubzilla, perhaps friendica
This commit is contained in:
parent
dc5f116a1c
commit
aed6d74668
2 changed files with 4 additions and 3 deletions
|
@ -521,6 +521,7 @@ class ThreadItem
|
|||
'indentpx' => intval(get_pconfig(local_channel(), 'system', 'thread_indent_px', get_config('system', 'thread_indent_px', 0))),
|
||||
'thread_max' => intval(get_config('system', 'thread_maxlevel', 80)) + 1,
|
||||
'reply_convo' => t('Reply to conversation'),
|
||||
'replyto' => $item['replyto'],
|
||||
'convo_link' => zid($item['mid']),
|
||||
'convo' => t('Conversation'),
|
||||
'archive' => t('Archive'),
|
||||
|
|
|
@ -129,7 +129,7 @@
|
|||
<i class="fa fa-thumbs-o-down{{if $item.my_responses.dislike}} ivoted{{/if}}" ></i>
|
||||
</button>
|
||||
{{/if}}
|
||||
{{if $item.comment && ($item.thread_level > 1 || !$item.contained) }}
|
||||
{{if $item.comment && ($item.thread_level > 1 || !($item.contained || $item.replyto)) }}
|
||||
<button type="button" title="{{$item.comment_lbl}}" class="btn btn-outline-secondary btn-sm" onclick="doreply({{$item.parent}},{{$item.id}}); return false;">
|
||||
<i class="fa fa-reply"></i>
|
||||
</button>
|
||||
|
@ -258,7 +258,7 @@
|
|||
{{if $item.collapsed}}
|
||||
</div>
|
||||
{{/if}}
|
||||
{{if $item.comment && (!$item.contained || $item.thread_level > 1)}}
|
||||
{{if $item.comment && (!($item.contained || $item.replyto) || $item.thread_level > 1)}}
|
||||
<div id="wall-item-comment-wrapper-{{$item.id}}" class="p-2 wall-item-comment-wrapper" style="display:none;">
|
||||
{{$item.comment}}
|
||||
</div>
|
||||
|
@ -266,7 +266,7 @@
|
|||
{{foreach $item.children as $child}}
|
||||
{{include file="{{$child.template}}" item=$child}}
|
||||
{{/foreach}}
|
||||
{{if $item.comment && $item.toplevel && $item.contained }}
|
||||
{{if $item.comment && $item.toplevel && ($item.contained || $item.replyto) }}
|
||||
<div id="wall-item-comment-wrapper-{{$item.id}}" class="p-2 wall-item-comment-wrapper">
|
||||
<i class="btn-outline-secondary fa fa-fw fa-reply-all" title="{{$item.reply_convo}}"></i>
|
||||
{{$item.comment}}
|
||||
|
|
Loading…
Reference in a new issue