friendica-github/view/templates/admin/aside.tpl

49 lines
1.2 KiB
Smarty
Raw Normal View History

2024-08-24 18:23:27 +00:00
{{*
* Copyright (C) 2010-2024, the Friendica project
* SPDX-FileCopyrightText: 2010-2024 the Friendica project
*
* SPDX-License-Identifier: AGPL-3.0-or-later
*}}
<script>
// update pending count //
$(function(){
$("nav").bind('nav-update', function(e,data){
var elm = $('#pending-update');
var register = $(data).find('register').html();
if (register=="0") { register=""; elm.hide();} else { elm.show(); }
elm.html(register);
});
});
</script>
{{foreach $subpages as $page}}
<h4>{{$page.0}}</h4>
<ul class="admin linklist" role="menu">
{{foreach $page.1 as $item}}
<li class='admin link button {{$item.2}}' role="menuitem"><a href='{{$item.0}}'>{{$item.1}}</a></li>
{{/foreach}}
</ul>
{{/foreach}}
{{if $admin.update}}
<ul class='admin linklist'>
<li class='admin link button {{$admin.update.2}}'><a href='{{$admin.update.0}}'>{{$admin.update.1}}</a></li>
</ul>
{{/if}}
{{if $admin.addons_admin}}<h4>{{$plugadmtxt}}</h4>
<ul class='admin linklist'>
{{foreach $admin.addons_admin as $name => $item}}
<li role="menuitem" class="admin link button {{$item.class}}">
<a href="{{$item.url}}">{{$item.name}}</a>
</li>
{{/foreach}}
</ul>
{{/if}}