aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2024-07-22 21:19:28 +0000
committerMario <mario@mariovavti.com>2024-07-22 21:19:28 +0000
commit39e5e29ce5ff98e87c1dd824d5f06a6d2b090ae0 (patch)
treed3f4adc3e6cd5ee8c5bcdd0fc8f21799f69ebb13 /view/tpl
parentf4ffef967aeea6da57edcf21a1094e14f6d15e2c (diff)
downloadvolse-hubzilla-39e5e29ce5ff98e87c1dd824d5f06a6d2b090ae0.tar.gz
volse-hubzilla-39e5e29ce5ff98e87c1dd824d5f06a6d2b090ae0.tar.bz2
volse-hubzilla-39e5e29ce5ff98e87c1dd824d5f06a6d2b090ae0.zip
fix logic and add translateable strings
Diffstat (limited to 'view/tpl')
-rw-r--r--view/tpl/conv_item.tpl8
-rw-r--r--view/tpl/conv_list.tpl8
2 files changed, 8 insertions, 8 deletions
diff --git a/view/tpl/conv_item.tpl b/view/tpl/conv_item.tpl
index 14ac86df7..1af6c34ba 100644
--- a/view/tpl/conv_item.tpl
+++ b/view/tpl/conv_item.tpl
@@ -115,9 +115,9 @@
<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 && ($item.my_responses.$verb && $verb != 'announce')}} {{** undo announce is not yet supported **}}
+ {{if $item.reactions_allowed && !($verb === 'announce' && $item.my_responses.announce)}} {{** 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.like}}- Remove{{else}}+ Add{{/if}} yours</a>
+ <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>
{{/if}}
<div class="modal-body response-list">
@@ -135,9 +135,9 @@
</div><!-- /.modal -->
{{else}}
<div class="dropdown-menu">
- {{if $item.reactions_allowed && ($item.my_responses.$verb && $verb != 'announce')}} {{** undo announce is not yet supported **}}
+ {{if $item.reactions_allowed && !($verb === 'announce' && $item.my_responses.announce)}} {{** 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}}- Remove{{else}}+ Add{{/if}} yours</a>
+ <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>
<div class="dropdown-divider"></div>
{{/if}}
diff --git a/view/tpl/conv_list.tpl b/view/tpl/conv_list.tpl
index bc1b386e3..991acff4d 100644
--- a/view/tpl/conv_list.tpl
+++ b/view/tpl/conv_list.tpl
@@ -128,9 +128,9 @@
<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 && ($item.my_responses.$verb && $verb != 'announce')}} {{** undo announce is not yet supported **}}
+ {{if $item.reactions_allowed && !($verb === 'announce' && $item.my_responses.announce)}} {{** 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.like}}- Remove{{else}}+ Add{{/if}} yours</a>
+ <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>
{{/if}}
<div class="modal-body response-list">
@@ -148,9 +148,9 @@
</div><!-- /.modal -->
{{else}}
<div class="dropdown-menu">
- {{if $item.reactions_allowed && ($item.my_responses.$verb && $verb != 'announce')}} {{** undo announce is not yet supported **}}
+ {{if $item.reactions_allowed && !($verb === 'announce' && $item.my_responses.announce)}} {{** 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}}- Remove{{else}}+ Add{{/if}} yours</a>
+ <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>
<div class="dropdown-divider"></div>
{{/if}}