open-orchestra/open-orchestra-cms-bundle

View on GitHub
BackofficeBundle/Resources/public/template/Breadcrumb/breadcrumbView._tpl.html

Summary

Maintainability
Test Coverage
<ol class="breadcrumb">
    <% _.each(breadcrumb, function(item, key) { %>
        <% if (item instanceof Array) { %>

            <li class="breadcrumb-tab">
                <ul class="nav nav-tabs page-tabs" role="tablist">
                    <% _.each(item, function(tab) { %>
                        <li id="<%- tab.id %>"><a href="<%- tab.link %>"><%- tab.label%></a></li>
                    <% }); %>
                </ul>
            </li>

        <% } else if (item.hasOwnProperty('link')) { %>

            <li><a href="<%- item.link %>"><%- item.label %></a></li>

        <%} else {%>

            <li><%- item.label %></li>

        <%}%>
    <% }); %>
</ol>