Sha256: 78d9b5416cdda27443abcb2eea15b75f837a36d22da51716e80ccf9df94fa722

Contents?: true

Size: 1.71 KB

Versions: 262

Compression:

Stored size: 1.71 KB

Contents

{% assign sub-nav-tabs = site.data.sub-nav.pages %}
{% if sub-nav-tabs %}
    {% assign page-base =  page.url | split:'/' %}
    {% for each in sub-nav-tabs %}
        {% for each-url in each.urls %}
            {% if each-url == page.url or each.url == page-base[1] %}
                {% assign tab-list = each.list %}
            {% endif %}
        {% endfor %}
    {% endfor %}
    {% if tab-list %}
        <div class="tabbed-area" id="tabbed-nav-bar"><!-- Nav tabs -->
        <nav class="navbar-default" role="navigation">
        <div class="container">
            <div class="navbar-header">
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#tabbed-nav-bar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" id="sub-navigation-header" href=""></a>
                </div>
                <div class="collapse navbar-collapse" id="tabbed-nav-bar-collapse">
                    <ul class="nav nav-tabs tabbed-nav" id="tab-row" role="tablist">
                        {% for tab in tab-list %}
                            <li role="presentation" class="{% if page-base[1] == tab.base  %}active {% elsif page.url == tab.url or tab.active %}active {% endif %}tabbed-nav-btn {% if tab.right %}pull-right{% endif %}"><a href="{{tab.url}}" role="link">{{ tab.title}}</a></li>
                        {% endfor %}
                    </ul>
            </div>
        </div>
        </nav>
        </div>
    {% endif %}
{% endif %}

Version data entries

262 entries across 262 versions & 1 rubygems

Version Path
linaro-jekyll-theme-1.3 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-1.2 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-1.1 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-1.0 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.1.2.75 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.1.2.74 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.1.2.73 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.1.2.72 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.1.2.71 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.1.2.70 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.1.2.69 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.1.2.67 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.1.2.66 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.1.2.65 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.1.2.64 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.1.2.63 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.1.2.62 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.1.2.61 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.1.2.60 _includes/_theme-includes/_navigation/tabbed-nav.html
linaro-jekyll-theme-0.1.2.59 _includes/_theme-includes/_navigation/tabbed-nav.html