Sha256: 9347398e20d5d378bcdd099d88724d00829b21fba3c278aae48e7e0a77fe3167

Contents?: true

Size: 1.88 KB

Versions: 36

Compression:

Stored size: 1.88 KB

Contents

<ul class="nav nav-sidebar">
  <%- navigation.each.with_index do |topic_group, groupidx| -%>
    <%- current_group = topic_group[:id] == group_id -%>
    <li class="nav-header">
      <a class="" href="#" data-toggle="collapse" data-target="#topicGroup<%= groupidx %>">
        <span id="tgSpan<%= groupidx %>" class="fa <%= current_group ? 'fa-angle-down' : 'fa-angle-right' %>"></span><%= topic_group[:name] %>
      </a>
      <ul id="topicGroup<%= groupidx %>" class="collapse <%= current_group ? 'in' : '' %> list-unstyled">
        <%- topic_group[:topics].each.with_index do |topic, topicidx| -%>
          <%- if not topic.has_key?(:topics) -%>
            <%- current_topic = current_group && (topic[:id] == topic_id) -%>
            <li><a class="<%= current_topic ? ' active' : '' %>" href="<%= subtopic_shim %><%= topic[:path] %>"><%= topic[:name] %></a></li>
          <%- else -%>
            <%- current_subgroup = topic[:id] == subgroup_id -%>
            <li class="nav-header">
              <a class="" href="#" data-toggle="collapse" data-target="#topicSubGroup-<%= groupidx %>-<%= topicidx %>">
                <span id="sgSpan-<%= groupidx %>-<%= topicidx %>" class="fa <%= current_subgroup ? 'fa-caret-down' : 'fa-caret-right' %>"></span>&nbsp;<%= topic[:name] %>
              </a>
              <ul id="topicSubGroup-<%= groupidx %>-<%= topicidx %>" class="nav-tertiary list-unstyled collapse<%= current_subgroup ? ' in' : '' %>">
                <%- topic[:topics].each do |subtopic| -%>
                  <%- current_subtopic = current_group && current_subgroup && (subtopic[:id] == topic_id) %>
                  <li><a class="<%= current_subtopic ? ' active' : '' %>" href="<%= subtopic_shim %><%= subtopic[:path] %>"><%= subtopic[:name] %></a></li>
                <%- end -%>
              </ul>
            </li>
          <%- end -%>
        <%- end -%>
      </ul>
    </li>
  <%- end -%>
</ul>

Version data entries

36 entries across 29 versions & 2 rubygems

Version Path
ascii_binder_gabriel_rh-0.0.1 features/support/test_distro/_templates/_nav.html.erb
ascii_binder-1.2 features/support/test_distro/_templates/_nav.html.erb
ascii_binder-1.0.1 features/support/test_distro/_templates/_nav.html.erb
ascii_binder-1.0 features/support/test_distro/_templates/_nav.html.erb
ascii_binder-0.2.3 features/support/test_distro/_templates/_nav.html.erb
ascii_binder-0.2.2 features/support/test_distro/_templates/_nav.html.erb
ascii_binder-0.2.1 features/support/test_distro/_templates/_nav.html.erb
ascii_binder-0.2.0 features/support/test_distro/_templates/_nav.html.erb
ascii_binder-0.1.15.3 features/support/test_distro/_templates/_nav.html.erb
ascii_binder-0.1.15.2 features/support/test_distro/_templates/_nav.html.erb
ascii_binder-0.1.15.1 features/support/test_distro/_templates/_nav.html.erb
ascii_binder-0.1.15.1 templates/_templates/_nav.html.erb
ascii_binder-0.1.15 features/support/test_distro/_templates/_nav.html.erb
ascii_binder-0.1.15 templates/_templates/_nav.html.erb
ascii_binder-0.1.14 templates/_templates/_nav.html.erb
ascii_binder-0.1.14 features/support/test_distro/_templates/_nav.html.erb
ascii_binder-0.1.13 templates/_templates/_nav.html.erb
ascii_binder-0.1.13 features/support/test_distro/_templates/_nav.html.erb
ascii_binder-0.1.11 templates/_templates/_nav.html.erb
ascii_binder-0.1.11 features/support/test_distro/_templates/_nav.html.erb