mirror of
https://github.com/YunoHost-Apps/hubzilla_ynh.git
synced 2024-09-03 19:26:21 +02:00
27 lines
939 B
Smarty
27 lines
939 B
Smarty
|
<h2>{{$header}}</h2>
|
||
|
|
||
|
<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>
|
||
|
|
||
|
<table>
|
||
|
<tr><td>{{$loc}}</td><td>{{$mkprm}}</td><td>{{$drop}}</td></tr>
|
||
|
{{foreach $hubs as $hub}}
|
||
|
<tr><td>
|
||
|
{{if $hub.deleted}}<strike>{{/if}}
|
||
|
{{$hub.hubloc_url}} ({{$hub.hubloc_addr}}){{if $hub.deleted}}</strike>{{/if}}</td>
|
||
|
<td>
|
||
|
|
||
|
{{if $hub.primary}}<i class="icon-check"></i>{{else}}<button class="btn btn-std" onclick="primehub({{$hub.hubloc_id}}); return false;" ><i class="icon-check-empty" ></i></button>{{/if}}
|
||
|
</td>
|
||
|
<td>{{if $hub.primary}}{{else}}{{if ! $hub.deleted}}<button class="btn btn-std" onclick="drophub({{$hub.hubloc_id}}); return false;"><i class="icon-trash"></i></button>{{/if}}{{/if}}</td>
|
||
|
</tr>
|
||
|
{{/foreach}}
|
||
|
</table>
|
||
|
|