aboutsummaryrefslogtreecommitdiffstats
path: root/view/tpl/common_tabs.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/common_tabs.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/common_tabs.tpl')
-rwxr-xr-xview/tpl/common_tabs.tpl12
1 files changed, 7 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>