aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-10-08 19:43:03 -0700
committerzotlabs <mike@macgirvin.com>2017-10-08 19:43:03 -0700
commit23812e5b48b7a4d4f0c275c0fbb3d244a582397c (patch)
treeaecb91a4be080ecd8cfaf6bfccf3a1613d88588c /view
parentc37908f344ecbac3ee60e3e36701161a4047d639 (diff)
downloadvolse-hubzilla-23812e5b48b7a4d4f0c275c0fbb3d244a582397c.tar.gz
volse-hubzilla-23812e5b48b7a4d4f0c275c0fbb3d244a582397c.tar.bz2
volse-hubzilla-23812e5b48b7a4d4f0c275c0fbb3d244a582397c.zip
ability to pin apps to the navbar when using named navbars
Diffstat (limited to 'view')
-rw-r--r--view/tpl/app_nav.tpl1
-rwxr-xr-xview/tpl/navbar_tucson.tpl7
2 files changed, 8 insertions, 0 deletions
diff --git a/view/tpl/app_nav.tpl b/view/tpl/app_nav.tpl
new file mode 100644
index 000000000..1ee5adb70
--- /dev/null
+++ b/view/tpl/app_nav.tpl
@@ -0,0 +1 @@
+<a class="navbar-app nav-link{{if $app.active}} active{{/if}}" href="{{$app.url}}" title="{{$app.name}}" >{{if $icon}}<i class="generic-icons-nav fa fa-fw fa-{{$icon}}"></i>{{else}}<img src="{{$app.photo}}" width="16" height="16" />{{/if}}</a>
diff --git a/view/tpl/navbar_tucson.tpl b/view/tpl/navbar_tucson.tpl
index 15f06eda1..ace22a880 100755
--- a/view/tpl/navbar_tucson.tpl
+++ b/view/tpl/navbar_tucson.tpl
@@ -213,6 +213,13 @@
<ul id="nav-right" class="navbar-nav ml-auto d-none d-xl-flex">
+ {{if $navbar_apps}}
+ {{foreach $navbar_apps as $navbar_app}}
+ <li class="nav-navbar-apps">
+ {{$navbar_app}}
+ </li>
+ {{/foreach}}
+ {{/if}}
<li class="nav-item collapse clearfix" id="nav-search">
<form class="form-inline" method="get" action="search" role="search">
<input class="form-control form-control-sm mt-1 mr-2" id="nav-search-text" type="text" value="" placeholder="&#xf002; {{$help}}" name="search" title="{{$nav.search.3}}" onclick="this.submit();" onblur="closeMenu('nav-search'); openMenu('nav-search-btn');"/>