diff options
author | Mario <mario@mariovavti.com> | 2021-11-09 09:10:19 +0000 |
---|---|---|
committer | Mario <mario@mariovavti.com> | 2021-11-09 09:10:19 +0000 |
commit | fe7ecede700fe04631d23f36473e697ce2b364dc (patch) | |
tree | e713fc39dba500a25cb2acf8561e286fb8b41ff0 /view/tpl/locmanage.tpl | |
parent | 42de18d96d201d74e5df3ed1b8f6132cb00357b6 (diff) | |
parent | 089708ab9f90309a0c27ae633cf8f2604fce1170 (diff) | |
download | volse-hubzilla-6.4.tar.gz volse-hubzilla-6.4.tar.bz2 volse-hubzilla-6.4.zip |
Merge branch '6.4RC'6.4
Diffstat (limited to 'view/tpl/locmanage.tpl')
-rw-r--r-- | view/tpl/locmanage.tpl | 26 |
1 files changed, 15 insertions, 11 deletions
diff --git a/view/tpl/locmanage.tpl b/view/tpl/locmanage.tpl index 9b988c9c5..70426dd3e 100644 --- a/view/tpl/locmanage.tpl +++ b/view/tpl/locmanage.tpl @@ -1,13 +1,5 @@ <div class="generic-content-wrapper"> <div class="section-title-wrapper"> - <script> - function primehub(id) { - $.post(baseurl + '/locs','primary='+id,function(data) { window.location.href=window.location.href; }); - } - function drophub(id) { - $.post(baseurl + '/locs','drop='+id,function(data) { window.location.href=window.location.href; }); - } - </script> <button class="btn btn-success btn-sm float-end" onclick="window.location.href='/locs/f=&sync=1'; return false;"><i class="fa fa-refresh"></i> {{$sync}}</button> <h2>{{$header}}</h2> </div> @@ -27,15 +19,27 @@ <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}} </table> </div> </div> +<script> + function primehub(id) { + $.post(baseurl + '/locs','primary='+id,function(data) { window.location.href=window.location.href; }); + } + function drophub(id) { + $.post(baseurl + '/locs','drop='+id,function(data) { window.location.href=window.location.href; }); + } +</script> |