aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl
diff options
context:
space:
mode:
authormarijus <mario@mariovavti.com>2014-03-19 09:43:23 +0100
committermarijus <mario@mariovavti.com>2014-03-19 09:43:23 +0100
commit20d47c44782e27f9930c49ddd59a2abc12f79a07 (patch)
treea191fa5c52e3f4dc8a9940409101b22fcf892b4f /view/tpl
parent8c177fbc4b20c297afbd7035dbb5e59d94fb4020 (diff)
downloadvolse-hubzilla-20d47c44782e27f9930c49ddd59a2abc12f79a07.tar.gz
volse-hubzilla-20d47c44782e27f9930c49ddd59a2abc12f79a07.tar.bz2
volse-hubzilla-20d47c44782e27f9930c49ddd59a2abc12f79a07.zip
bootstrapify common tabs and make show aside/tabs buttons only appear if there is something to show
Diffstat (limited to 'view/tpl')
-rwxr-xr-xview/tpl/common_tabs.tpl12
-rwxr-xr-xview/tpl/nav.tpl3
2 files changed, 10 insertions, 5 deletions
diff --git a/view/tpl/common_tabs.tpl b/view/tpl/common_tabs.tpl
index 3d34d7c57..fa6bfbdfa 100755
--- a/view/tpl/common_tabs.tpl
+++ b/view/tpl/common_tabs.tpl
@@ -1,6 +1,8 @@
-<ul class="tabs">
- {{foreach $tabs as $tab}}
- <li {{if $tab.id}}id="{{$tab.id}}"{{/if}}><a href="{{$tab.url}}" class="tab button {{$tab.sel}}"{{if $tab.title}} title="{{$tab.title}}"{{/if}}>{{$tab.label}}</a></li>
- {{/foreach}}
-</ul>
+<div id="tabs-collapse-1" class="navbar-collapse collapse">
+ <ul class="nav nav-tabs nav-justified">
+ {{foreach $tabs as $tab}}
+ <li class="{{$tab.sel}}" {{if $tab.id}}id="{{$tab.id}}"{{/if}}><a href="{{$tab.url}}"{{if $tab.title}} title="{{$tab.title}}"{{/if}}>{{$tab.label}}</a></li>
+ {{/foreach}}
+ </ul>
+</div>
<div class="tabs-end"></div>
diff --git a/view/tpl/nav.tpl b/view/tpl/nav.tpl
index fbdf28f76..5aa3b0f01 100755
--- a/view/tpl/nav.tpl
+++ b/view/tpl/nav.tpl
@@ -5,6 +5,9 @@
<span class="icon-bar"></span>
<span class="icon-bar"></span>
</button>
+ <button id="expand-tabs" type="button" class="navbar-toggle" data-toggle="collapse" data-target="#tabs-collapse-1">
+ <i class="icon-circle-arrow-down" id="expand-tabs-icon"></i>
+ </button>
<button id="expand-aside" type="button" class="navbar-toggle" data-toggle="offcanvas" data-target="#region_1">
<i class="icon-circle-arrow-right" id="expand-aside-icon"></i>
</button>