<%- unless klass.extends.empty? then %>
<div id="extends-section" class="nav-section">
  <details class="nav-section-collapsible" open>
    <summary class="nav-section-header">
      <span class="nav-section-icon">
        <svg><use href="#icon-extends"></use></svg>
      </span>
      <span class="nav-section-title">Extended With Modules</span>
      <span class="nav-section-chevron">
        <svg><use href="#icon-chevron"></use></svg>
      </span>
    </summary>

    <ul class="nav-list">
      <%- klass.extends.each do |ext| %>
    <%- unless String === ext.module then %>
      <li><a class="extend" href="<%= klass.aref_to ext.module.path %>"><%= ext.module.full_name %></a></li>
    <%- else %>
      <li><span class="extend"><%= ext.name %></span></li>
    <%- end %>
    <%- end %>
    </ul>
  </details>
</div>
<%- end %>
