diff options
author | Mario <mario@mariovavti.com> | 2024-07-22 21:32:24 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2024-07-22 21:32:24 +0000 |
commit | 475cbf65100196e841735e9be3bcc3a2cd3d46b2 (patch) | |
tree | 88b0ffb72e9156e50616c68db8505b4754fd84af /view | |
parent | 39e5e29ce5ff98e87c1dd824d5f06a6d2b090ae0 (diff) | |
download | volse-hubzilla-475cbf65100196e841735e9be3bcc3a2cd3d46b2.tar.gz volse-hubzilla-475cbf65100196e841735e9be3bcc3a2cd3d46b2.tar.bz2 volse-hubzilla-475cbf65100196e841735e9be3bcc3a2cd3d46b2.zip |
more fix logic
Diffstat (limited to 'view')
-rw-r--r-- | view/tpl/conv_item.tpl | 4 | ||||
-rw-r--r-- | view/tpl/conv_list.tpl | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl index 1af6c34ba..a8bc93eed 100644 --- a/view/tpl/conv_item.tpl +++ b/view/tpl/conv_item.tpl @@ -115,7 +115,7 @@ <h3 class="modal-title">{{$response.count}} {{$response.button.label}}</h3> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-hidden="true"></button> </div> - {{if $item.reactions_allowed && !($verb === 'announce' && $item.my_responses.announce)}} {{** undo announce is not yet supported **}} + {{if $item.reactions_allowed && !($verb === 'announce' && $item.my_responses.$verb)}} {{** undo announce is not yet supported **}} <div class="modal-header"> <a href="#" class="text-reset" onclick="{{$response.button.onclick}}({{$item.id}},'{{$verb}}'); return false;">{{if $item.my_responses.$verb}}- {{$item.reaction_str.1}}{{else}}+ {{$item.reaction_str.0}}{{/if}}</a> </div> @@ -135,7 +135,7 @@ </div><!-- /.modal --> {{else}} <div class="dropdown-menu"> - {{if $item.reactions_allowed && !($verb === 'announce' && $item.my_responses.announce)}} {{** undo announce is not yet supported **}} + {{if $item.reactions_allowed && !($verb === 'announce' && $item.my_responses.$verb)}} {{** undo announce is not yet supported **}} <div class="dropdown-item"> <a href="#" class="text-reset" onclick="{{$response.button.onclick}}({{$item.id}},'{{$verb}}'); return false;">{{if $item.my_responses.$verb}}- {{$item.reaction_str.1}}{{else}}+ {{$item.reaction_str.0}}{{/if}}</a> </div> diff --git a/view/tpl/conv_list.tpl b/view/tpl/conv_list.tpl index 991acff4d..47845c990 100644 --- a/view/tpl/conv_list.tpl +++ b/view/tpl/conv_list.tpl @@ -128,7 +128,7 @@ <h3 class="modal-title">{{$response.count}} {{$response.button.label}}</h3> <button type="button" class="btn-close" data-bs-dismiss="modal" aria-hidden="true"></button> </div> - {{if $item.reactions_allowed && !($verb === 'announce' && $item.my_responses.announce)}} {{** undo announce is not yet supported **}} + {{if $item.reactions_allowed && !($verb === 'announce' && $item.my_responses.$verb)}} {{** undo announce is not yet supported **}} <div class="modal-header"> <a href="#" class="text-reset" onclick="{{$response.button.onclick}}({{$item.id}},'{{$verb}}'); return false;">{{if $item.my_responses.$verb}}- {{$item.reaction_str.1}}{{else}}+ {{$item.reaction_str.0}}{{/if}}</a> </div> @@ -148,7 +148,7 @@ </div><!-- /.modal --> {{else}} <div class="dropdown-menu"> - {{if $item.reactions_allowed && !($verb === 'announce' && $item.my_responses.announce)}} {{** undo announce is not yet supported **}} + {{if $item.reactions_allowed && !($verb === 'announce' && $item.my_responses.$verb)}} {{** undo announce is not yet supported **}} <div class="dropdown-item"> <a href="#" class="text-reset" onclick="{{$response.button.onclick}}({{$item.id}},'{{$verb}}'); return false;">{{if $item.my_responses.$verb}}- {{$item.reaction_str.1}}{{else}}+ {{$item.reaction_str.0}}{{/if}}</a> </div> |