diff options
Diffstat (limited to 'view')
-rwxr-xr-x | view/tpl/nav.tpl | 10 | ||||
-rw-r--r-- | view/tpl/navapps.tpl | 7 |
2 files changed, 11 insertions, 6 deletions
diff --git a/view/tpl/nav.tpl b/view/tpl/nav.tpl index e80772102..16cd9deca 100755 --- a/view/tpl/nav.tpl +++ b/view/tpl/nav.tpl @@ -163,13 +163,13 @@ <!-- {{foreach $nav.loginmenu as $loginmenu}} <li role="presentation"><a class="{{$loginmenu.2}}" href="{{$loginmenu.0}}" title="{{$loginmenu.3}}" role="menuitem" id="{{$loginmenu.4}}">{{$loginmenu.1}}</a></li> - {{/foreach}} --!> + {{/foreach}} --> </div> </li> <!-- {{foreach $nav.loginmenu as $loginmenu}} <li role="presentation"><a class="{{$loginmenu.2}} visible-xs" href="{{$loginmenu.0}}" title="{{$loginmenu.3}}" role="menuitem">{{$loginmenu.1}}</a></li> {{/foreach}} ---!> +--> {{/if}} {{if $nav.register}} @@ -194,7 +194,7 @@ {{if $powered_by}} <div id="powered-by">{{$powered_by}}</div> {{/if}} - +{{if ! $navapps}} {{if $nav.directory}} <li class="{{$sel.directory}}"> <a class="{{$nav.directory.2}}" href="{{$nav.directory.0}}" title="{{$nav.directory.3}}" id="{{$nav.directory.4}}"><i class="fa fa-sitemap"></i></a> @@ -212,6 +212,7 @@ <a class="{{$nav.help.2}}" target="hubzilla-help" href="{{$nav.help.0}}" title="{{$nav.help.3}}" id="{{$nav.help.4}}"{{if $nav.help.6}} onclick="contextualHelp(); return false;"{{/if}}>{{if $nav.help.6}}<i class="fa fa-question-circle"></i>{{else}}<i class="fa fa-question"></i>{{/if}}</a> </li> {{/if}} +{{/if}} {{if $navapps}} <li class="dropdown-toggle" data-toggle="dropdown"> @@ -223,6 +224,9 @@ </ul> </div> + <div class="collapse navbar-collapse" id="navbar-collapse-2"> + {{$navapps}} + </div> </div> {{if $nav.help.6}} <div id="contextual-help-content" class="contextual-help-content"> diff --git a/view/tpl/navapps.tpl b/view/tpl/navapps.tpl index ce5189eb1..de4a6223c 100644 --- a/view/tpl/navapps.tpl +++ b/view/tpl/navapps.tpl @@ -1,8 +1,9 @@ -<ul class="dropdown-menu"> +<ul class="dropdown-menu" style="max-height: 80vh"> {{foreach $apps as $app}} <li><a href="{{$app.url}}">{{if $icon}}<i class="app-icon fa fa-{{$icon}}"></i>{{else}}<img src="{{$app.photo}}" width="16" height="16" />{{/if}} {{$app.name}}</a></li> {{/foreach}} + {{if $localuser}} <li class="divider"></li> - <li><a href="/apps/edit"><i class="app-icon fa fa-pencil"></i> Edit Apps</a></li> - <li><a href="/appman"><i class="app-icon fa fa-plus-circle"></i> Add App</a></li> + <li><a href="/apps/edit"><i class="app-icon fa fa-plus-circle"></i> Add Apps</a></li> + {{/if}} </ul> |