aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorMario <mario@mariovavti.com>2021-10-03 17:48:00 +0000
committerMario <mario@mariovavti.com>2021-10-03 17:48:00 +0000
commit5c3b89a68b045b7251c0600411fe5e81f41af594 (patch)
tree43afbc632f3a4c2aa684836195bd8f36b6e97cd4 /view
parentda923d7749764ca0d6038f72ca48c6960092228c (diff)
downloadvolse-hubzilla-5c3b89a68b045b7251c0600411fe5e81f41af594.tar.gz
volse-hubzilla-5c3b89a68b045b7251c0600411fe5e81f41af594.tar.bz2
volse-hubzilla-5c3b89a68b045b7251c0600411fe5e81f41af594.zip
mod locs: do not show drop icon for local clones and get rid of redundant for loop
Diffstat (limited to 'view')
-rw-r--r--view/tpl/locmanage.tpl10
1 files changed, 7 insertions, 3 deletions
diff --git a/view/tpl/locmanage.tpl b/view/tpl/locmanage.tpl
index 9b988c9c5..b4d986a1c 100644
--- a/view/tpl/locmanage.tpl
+++ b/view/tpl/locmanage.tpl
@@ -27,12 +27,16 @@
<th>{{$drop}}</th>
</tr>
{{foreach $hubs as $hub}}
- {{if ! $hub.deleted }}
+ {{if ! $hub.hubloc_deleted }}
<tr class="locs-index-row">
<td>{{$hub.hubloc_addr}}</td>
<td class="d-none d-md-table-cell">{{$hub.hubloc_url}}</td>
- <td>{{if $hub.primary}}<i class="fa fa-check-square-o"></i>{{else}}<i class="fa fa-square-o primehub" onclick="primehub({{$hub.hubloc_id}}); return false;"></i>{{/if}}</td>
- <td><i class="fa fa-trash-o drophub" onclick="drophub({{$hub.hubloc_id}}); return false;"></i></td>
+ <td>{{if $hub.hubloc_primary}}<i class="fa fa-check-square-o"></i>{{else}}<i class="fa fa-square-o primehub" onclick="primehub({{$hub.hubloc_id}}); return false;"></i>{{/if}}</td>
+ <td>
+ {{if $hub.hubloc_url != $base_url}}
+ <i class="fa fa-trash-o drophub" onclick="drophub({{$hub.hubloc_id}}); return false;"></i>
+ {{/if}}
+ </td>
</tr>
{{/if}}
{{/foreach}}