aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/admin_aside.tpl
diff options
context:
space:
mode:
authorredmatrix <git@macgirvin.com>2016-03-19 16:17:19 -0700
committerredmatrix <git@macgirvin.com>2016-03-19 16:17:19 -0700
commit77094f8d2bffa70c9e95518b9883f8752304102c (patch)
treeb05a4693bae8bc99ef503ba438274b24ee0eca6f /view/tpl/admin_aside.tpl
parent51cd4e8519ef97f348013320e612811f9da1ad0e (diff)
downloadvolse-hubzilla-77094f8d2bffa70c9e95518b9883f8752304102c.tar.gz
volse-hubzilla-77094f8d2bffa70c9e95518b9883f8752304102c.tar.bz2
volse-hubzilla-77094f8d2bffa70c9e95518b9883f8752304102c.zip
make the admin side menu extensible and provide a hook for a channel "move" operation that federation plugins might use to re-establish connections after a channel move.
Diffstat (limited to 'view/tpl/admin_aside.tpl')
-rwxr-xr-xview/tpl/admin_aside.tpl21
1 files changed, 7 insertions, 14 deletions
diff --git a/view/tpl/admin_aside.tpl b/view/tpl/admin_aside.tpl
index da762a094..70e1677af 100755
--- a/view/tpl/admin_aside.tpl
+++ b/view/tpl/admin_aside.tpl
@@ -5,7 +5,7 @@
$("nav").bind('nav-update', function(e,data){
var elm = $('#pending-update');
var register = $(data).find('register').text();
- if (register=="0") { reigster=""; elm.hide();} else { elm.show(); }
+ if (register=="0") { register=""; elm.hide();} else { elm.show(); }
elm.html(register);
});
});
@@ -13,16 +13,9 @@
<div class="widget">
<h3>{{$admtxt}}</h3>
<ul class="nav nav-pills nav-stacked">
- <li><a href='{{$admin.site.0}}'>{{$admin.site.1}}</a></li>
- <li><a href='{{$admin.users.0}}'>{{$admin.users.1}}<span id='pending-update' title='{{$h_pending}}'></span></a></li>
- <li><a href='{{$admin.channels.0}}'>{{$admin.channels.1}}</a></li>
- <li><a href='{{$admin.security.0}}'>{{$admin.security.1}}</a></li>
- <li><a href='{{$admin.queue.0}}'>{{$admin.queue.1}}</a></li>
- <li><a href='{{$admin.plugins.0}}'>{{$admin.plugins.1}}</a></li>
- <li><a href='{{$admin.themes.0}}'>{{$admin.themes.1}}</a></li>
- <li><a href='{{$admin.features.0}}'>{{$admin.features.1}}</a></li>
- <li><a href='{{$admin.profs.0}}'>{{$admin.profs.1}}</a></li>
- <li><a href='{{$admin.dbsync.0}}'>{{$admin.dbsync.1}}</a></li>
+ {{foreach $admin as $link}}
+ <li><a href='{{$link.0}}'>{{$link.1}}{{if $link.3}}<span id='{{$link.3}}' title='{{$link.4}}'></span>{{/if}}</a></li>
+ {{/foreach}}
</ul>
</div>
@@ -34,11 +27,11 @@
{{/if}}
-{{if $admin.plugins_admin}}
+{{if $plugins}}
<div class="widget">
<h3>{{$plugadmtxt}}</h3>
<ul class="nav nav-pills nav-stacked">
- {{foreach $admin.plugins_admin as $l}}
+ {{foreach $plugins as $l}}
<li><a href='{{$l.0}}'>{{$l.1}}</a></li>
{{/foreach}}
</ul>
@@ -48,6 +41,6 @@
<div class="widget">
<h3>{{$logtxt}}</h3>
<ul class="nav nav-pills nav-stacked">
- <li><a href='{{$admin.logs.0}}'>{{$admin.logs.1}}</a></li>
+ <li><a href='{{$logs.0}}'>{{$logs.1}}</a></li>
</ul>
</div>