app/views/partials/concept/relation/skos/_narrower.html.erb

Summary

Maintainability
Test Coverage
<div class="relation panel" id="<%= Iqvoc::Concept.broader_relation_class.narrower_class.name.to_relation_name %>">
  <h2><%= Iqvoc::Concept.broader_relation_class.narrower_class.model_name.human(:count => 2) %></h2>
  <div class="relation-body">
    <% if concept.narrower_relations.any? %>
      <div class="selector">
        <% if(params[:published] == '0') %>
          <%= treeview(concept.narrower_relations.published_with_newer_versions.map(&:target).sort_by(&:pref_label)) %>
        <% else %>
          <%= treeview(concept.narrower_relations.published.map(&:target).sort_by(&:pref_label)) %>
        <% end %>
      </div>
    <% end %>
  </div>
</div>