2017-10-20 09:21:42 -04:00
|
|
|
<script type="text/javascript">
|
2017-04-27 15:25:53 -04:00
|
|
|
// update pending count //
|
|
|
|
$(function(){
|
2017-05-01 12:25:56 -04:00
|
|
|
$("nav").bind('nav-update', function(e,data){
|
2017-04-27 15:25:53 -04:00
|
|
|
var elm = $('#pending-update');
|
|
|
|
var register = $(data).find('register').text();
|
2017-05-01 12:25:56 -04:00
|
|
|
if (register=="0") { register = ""; }
|
2017-04-27 15:25:53 -04:00
|
|
|
elm.html(register);
|
|
|
|
});
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<div class="widget">
|
|
|
|
<h3><a href="{{$admurl}}">{{$admtxt}}</a></h3>
|
|
|
|
|
|
|
|
<ul role="menu">
|
2017-05-01 12:25:56 -04:00
|
|
|
{{foreach $subpages as $name => $item}}
|
|
|
|
<li role="menuitem" class="{{$item.2}}">
|
|
|
|
<a href="{{$item.0}}" {{if $item.accesskey}}accesskey="{{$item.accesskey}}"{{/if}}>
|
|
|
|
{{$item.1}}
|
|
|
|
{{if $name == "users"}}
|
|
|
|
<span id="pending-update" class="badge pull-right"></span>
|
|
|
|
{{/if}}
|
|
|
|
</a>
|
|
|
|
</li>
|
2017-04-27 15:25:53 -04:00
|
|
|
{{/foreach}}
|
|
|
|
</ul>
|
|
|
|
|
|
|
|
{{if $admin.update}}
|
|
|
|
<ul role="menu">
|
|
|
|
<li role="menuitem" class="{{$admin.update.2}}">
|
|
|
|
<a href="{{$admin.update.0}}" {{if $admin.update.accesskey}}accesskey="{{$admin.update.accesskey}}"{{/if}}>
|
|
|
|
{{$admin.update.1}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
{{/if}}
|
|
|
|
</div>
|
|
|
|
|
|
|
|
{{if $admin.plugins_admin}}
|
|
|
|
<div class="widget">
|
|
|
|
<h3>{{$plugadmtxt}}</h3>
|
|
|
|
<ul role="menu">
|
2017-05-01 12:25:56 -04:00
|
|
|
{{foreach $admin.plugins_admin as $name => $item}}
|
2017-04-27 15:25:53 -04:00
|
|
|
<li role="menuitem" class="{{$item.2}}">
|
|
|
|
<a href="{{$item.0}}" {{if $item.accesskey}}accesskey="{{$item.accesskey}}"{{/if}}>
|
|
|
|
{{$item.1}}
|
|
|
|
</a>
|
|
|
|
</li>
|
2017-05-01 12:25:56 -04:00
|
|
|
{{/foreach}}
|
2017-04-27 15:25:53 -04:00
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
{{/if}}
|
|
|
|
|
|
|
|
<div class="widget">
|
|
|
|
<h3>{{$logtxt}}</h3>
|
|
|
|
<ul role="menu">
|
|
|
|
<li role="menuitem" class="{{$admin.logs.2}}">
|
|
|
|
<a href="{{$admin.logs.0}}" {{if $admin.logs.accesskey}}accesskey="{{$admin.logs.accesskey}}"{{/if}}>
|
|
|
|
{{$admin.logs.1}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li role="menuitem" class="{{$admin.viewlogs.2}}">
|
|
|
|
<a href="{{$admin.viewlogs.0}}" {{if $admin.viewlogs.accesskey}}accesskey="{{$admin.viewlogs.accesskey}}"{{/if}}>
|
|
|
|
{{$admin.viewlogs.1}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<div class="widget">
|
|
|
|
<h3>{{$diagnosticstxt}}</h3>
|
|
|
|
<ul role="menu">
|
|
|
|
<li role="menuitem" class="{{$admin.diagnostics_probe.2}}">
|
|
|
|
<a href="{{$admin.diagnostics_probe.0}}" {{if $admin.diagnostics_probe.accesskey}}accesskey="{{$admin.diagnostics_probe.accesskey}}"{{/if}}>
|
|
|
|
{{$admin.diagnostics_probe.1}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
<li role="menuitem" class="{{$admin.diagnostics_webfinger.2}}">
|
|
|
|
<a href="{{$admin.diagnostics_webfinger.0}}" {{if $admin.viewlogs.accesskey}}accesskey="{{$admin.diagnostics_webfinger.accesskey}}"{{/if}}>
|
|
|
|
{{$admin.diagnostics_webfinger.1}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|