diff options
Diffstat (limited to 'view/tpl')
-rwxr-xr-x | view/tpl/nav.tpl | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/view/tpl/nav.tpl b/view/tpl/nav.tpl index 288a15f2c..c0b34bbe8 100755 --- a/view/tpl/nav.tpl +++ b/view/tpl/nav.tpl @@ -16,7 +16,7 @@ <img id="avatar" src="{{$userinfo.icon}}" alt="{{$userinfo.name}}"> <i class="fa fa-caret-down"></i> </div> - {{if $localuser}} + {{if $is_owner}} <div class="dropdown-menu"> {{foreach $nav.usermenu as $usermenu}} <a class="dropdown-item{{if $usermenu.2}} active{{/if}}" href="{{$usermenu.0}}" title="{{$usermenu.3}}" role="menuitem" id="{{$usermenu.4}}">{{$usermenu.1}}</a> @@ -45,14 +45,13 @@ <a class="dropdown-item" href="{{$nav.logout.0}}" title="{{$nav.logout.3}}" role="menuitem" id="{{$nav.logout.4}}">{{$nav.logout.1}}</a> {{/if}} </div> - {{else}} - {{if $nav.rusermenu}} + {{/if}} + {{if ! $is_owner}} <div class="dropdown-menu" role="menu" aria-labelledby="avatar"> <a class="dropdown-item" href="{{$nav.rusermenu.0}}" role="menuitem">{{$nav.rusermenu.1}}</a> <a class="dropdown-item" href="{{$nav.rusermenu.2}}" role="menuitem">{{$nav.rusermenu.3}}</a> </div> {{/if}} - {{/if}} </div> {{/if}} <div class="navbar-toggler-right"> @@ -204,7 +203,7 @@ {{if $channel_apps.0}} </div> {{/if}} - {{if $localuser}} + {{if $is_owner}} <div class="dropdown-divider"></div> <a class="dropdown-item" href="/apps"><i class="generic-icons-nav fa fa-fw fa-plus-circle"></i>{{$addapps}}</a> <a class="dropdown-item" href="/apporder"><i class="generic-icons-nav fa fa-fw fa-sort"></i>{{$orderapps}}</a> @@ -230,7 +229,7 @@ {{if $channel_apps.0}} </div> {{/if}} - {{if $localuser}} + {{if $is_owner}} <div class="dropdown-divider"></div> <a class="nav-link" href="/apps"><i class="generic-icons-nav fa fa-fw fa-plus-circle"></i>{{$addapps}}</a> <a class="nav-link" href="/apporder"><i class="generic-icons-nav fa fa-fw fa-sort"></i>{{$orderapps}}</a> |