hide the plugins and authentication tabs if no plugins detected

v1.18.x
psychobunny 10 years ago
parent 307a04c162
commit ced0087347

@ -147,12 +147,10 @@
<li><a href="{relative_path}/admin/advanced/logs">Logs</a></li> <li><a href="{relative_path}/admin/advanced/logs">Logs</a></li>
</ul> </ul>
</div> </div>
<!-- IF authentication.length -->
<div class="sidebar-nav"> <div class="sidebar-nav">
<ul class="nav nav-list"> <ul class="nav nav-list">
<li class="nav-header"><i class="fa fa-fw fa-facebook-square"></i> Social Authentication</li> <li class="nav-header"><i class="fa fa-fw fa-facebook-square"></i> Social Authentication</li>
<!-- IF !authentication.length -->
<li><a href="{relative_path}/admin/extend/plugins">Install SSO Plugins</a></li>
<!-- ENDIF !authentication.length -->
<!-- BEGIN authentication --> <!-- BEGIN authentication -->
<li> <li>
<a href="{relative_path}/admin{authentication.route}">{authentication.name}</a> <a href="{relative_path}/admin{authentication.route}">{authentication.name}</a>
@ -160,6 +158,8 @@
<!-- END authentication --> <!-- END authentication -->
</ul> </ul>
</div> </div>
<!-- ENDIF authentication.length -->
<!-- IF plugins.length -->
<div class="sidebar-nav"> <div class="sidebar-nav">
<ul class="nav nav-list"> <ul class="nav nav-list">
<li class="nav-header"><i class="fa fa-fw fa-th"></i> Installed Plugins</li> <li class="nav-header"><i class="fa fa-fw fa-th"></i> Installed Plugins</li>
@ -170,6 +170,7 @@
<!-- END plugins --> <!-- END plugins -->
</ul> </ul>
</div> </div>
<!-- ENDIF plugins.length -->
<!-- IF env --> <!-- IF env -->
<div class="sidebar-nav"> <div class="sidebar-nav">
<ul class="nav nav-list"> <ul class="nav nav-list">

Loading…
Cancel
Save