diff options
author | zotlabs <mike@macgirvin.com> | 2017-05-02 12:46:50 -0700 |
---|---|---|
committer | zotlabs <mike@macgirvin.com> | 2017-05-02 12:46:50 -0700 |
commit | 80ec92ce8d9f615eeb06d92b67ad1ff840cad0cc (patch) | |
tree | 484f2101b78ae16f397310470b7e30f2c03d7b57 /view/tpl/locmanage.tpl | |
parent | 83c4dd6bda1677a3441d06247ea076094394703e (diff) | |
download | volse-hubzilla-80ec92ce8d9f615eeb06d92b67ad1ff840cad0cc.tar.gz volse-hubzilla-80ec92ce8d9f615eeb06d92b67ad1ff840cad0cc.tar.bz2 volse-hubzilla-80ec92ce8d9f615eeb06d92b67ad1ff840cad0cc.zip |
Revert "move theme specific files to theme dir"
This reverts commit e332d1074f1b663ec66d37b0f575df2e41d5535c.
Diffstat (limited to 'view/tpl/locmanage.tpl')
-rw-r--r-- | view/tpl/locmanage.tpl | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/view/tpl/locmanage.tpl b/view/tpl/locmanage.tpl new file mode 100644 index 000000000..a8c75b6a8 --- /dev/null +++ b/view/tpl/locmanage.tpl @@ -0,0 +1,41 @@ +<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 pull-right" onclick="window.location.href='/locs/f=&sync=1'; return false;"><i class="fa fa-refresh"></i> {{$sync}}</button> + <h2>{{$header}}</h2> + </div> + <div class="section-content-wrapper-np"> + <div class="section-content-warning-wrapper"> + {{$sync_text}} + </div> + <div class="section-content-info-wrapper"> + {{$drop_text}}<br> + {{$last_resort}} + </div> + <table id="locs-index"> + <tr> + <th>{{$addr}}</th> + <th class="d-none d-md-table-cell">{{$loc}}</th> + <th>{{$mkprm}}</th> + <th>{{$drop}}</th> + </tr> + {{foreach $hubs as $hub}} + {{if ! $hub.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> + </tr> + {{/if}} + {{/foreach}} + </table> + </div> +</div> |