aboutsummaryrefslogtreecommitdiffstats
path: root/view
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-10-05 16:59:33 -0700
committerzotlabs <mike@macgirvin.com>2017-10-05 16:59:33 -0700
commita0eb62852606ef0362d3ed07e4bd50aeb5b6f73c (patch)
tree603ec81d2244d9ff099dffa94a6af57c6a2e73e0 /view
parent4ab21edba8511eb96b08371424841d6ffb808cf8 (diff)
downloadvolse-hubzilla-a0eb62852606ef0362d3ed07e4bd50aeb5b6f73c.tar.gz
volse-hubzilla-a0eb62852606ef0362d3ed07e4bd50aeb5b6f73c.tar.bz2
volse-hubzilla-a0eb62852606ef0362d3ed07e4bd50aeb5b6f73c.zip
Experimental alternate channel_menu navigation. To use, "util/config system.channel_menu 1"
Diffstat (limited to 'view')
-rwxr-xr-xview/tpl/nav.tpl14
-rw-r--r--view/tpl/profile_tabs.tpl4
2 files changed, 15 insertions, 3 deletions
diff --git a/view/tpl/nav.tpl b/view/tpl/nav.tpl
index 82cdc0dd0..9f4525c17 100755
--- a/view/tpl/nav.tpl
+++ b/view/tpl/nav.tpl
@@ -218,10 +218,20 @@
<a class="nav-link {{$nav.help.2}}" target="hubzilla-help" href="{{$nav.help.0}}" title="{{$nav.help.3}}" id="{{$nav.help.4}}" onclick="contextualHelp(); return false;"><i class="fa fa-fw fa-question-circle"></i></a>
</li>
{{/if}}
+ {{if $channel_menu && $channel_apps.0}}
+ <li class="nav-item dropdown" id="channel-menu">
+ <a class="nav-link" href="#" data-toggle="dropdown"><img src="{{$channel_thumb}}" style="height:14px; width:14px;position:relative; top:-2px;" /></a>
+ <div id="dropdown-menu" class="dropdown-menu dropdown-menu-right">
+ {{foreach $channel_apps as $channel_app}}
+ {{$channel_app}}
+ {{/foreach}}
+ </div>
+ </li>
+ {{/if}}
<li class="nav-item dropdown" id="app-menu">
<a class="nav-link" href="#" data-toggle="dropdown"><i class="fa fa-fw fa-bars"></i></a>
<div id="dropdown-menu" class="dropdown-menu dropdown-menu-right">
- {{if $channel_apps.0}}
+ {{if $channel_apps.0 && ! $channel_menu}}
{{foreach $channel_apps as $channel_app}}
{{$channel_app}}
{{/foreach}}
@@ -233,7 +243,7 @@
{{foreach $nav_apps as $nav_app}}
{{$nav_app}}
{{/foreach}}
- {{if $channel_apps.0}}
+ {{if $channel_apps.0 && ! $channel_menu}}
</div>
{{/if}}
{{if $is_owner}}
diff --git a/view/tpl/profile_tabs.tpl b/view/tpl/profile_tabs.tpl
index 49b74bb8f..b59135209 100644
--- a/view/tpl/profile_tabs.tpl
+++ b/view/tpl/profile_tabs.tpl
@@ -1,5 +1,7 @@
-<div class="dropdown-header"><img src="{{$thumb}}" class="menu-img-1">{{$name}}:</div>
+<div class="dropdown-header"><img src="{{$thumb}}" class="menu-img-1">{{$name}}</div>
{{foreach $tabs as $tab}}
<a class="dropdown-item{{if $tab.sel}} {{$tab.sel}}{{/if}}" href="{{$tab.url}}"{{if $tab.title}} title="{{$tab.title}}"{{/if}}><i class="fa fa-fw fa-{{$tab.icon}} generic-icons-nav"></i>{{$tab.label}}</a>
{{/foreach}}
+{{if ! $channel_menu}}
<div class="dropdown-divider"></div>
+{{/if}} \ No newline at end of file