Sha256: d3f0e2b18a8eca2657256ba56e0814ca39cb3ffca4cf7c5dd246e6dfe997519a

Contents?: true

Size: 750 Bytes

Versions: 34

Compression:

Stored size: 750 Bytes

Contents

<%- hcpath = hierarchical_concepts_path(:format => :json,
  :published => params[:published], :broader => broader || nil) -%>
<ul class="hybrid-treeview" data-url="<%= hcpath %>">

  <%- concepts.each do |concept| -%>
    <%- has_children = broader ? concept.broader_relations.any? : concept.narrower_relations.any? -%>

    <li class="<%= has_children ? "hasChildren" : "" %>" id="<%= concept.id %>">
      <%= link_to(concept.pref_label.to_s, concept_url(:id => concept)) %>
      <%- if concept.additional_info.present? -%>
        (<%= concept.additional_info %>)
      <%- end -%>
      <%- if has_children -%>
        <ul>
          <li><span class="placeholder">&nbsp;</span></li>
        </ul>
      <%- end -%>
    </li>
  <%- end -%>
</ul>

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
iqvoc-3.2.11 app/views/concepts/hierarchical/_treeview.html.erb
iqvoc-3.2.10 app/views/concepts/hierarchical/_treeview.html.erb
iqvoc-3.2.9 app/views/concepts/hierarchical/_treeview.html.erb
iqvoc-4.1.0 app/views/concepts/hierarchical/_treeview.html.erb
iqvoc-4.0.9 app/views/concepts/hierarchical/_treeview.html.erb
iqvoc-4.0.8 app/views/concepts/hierarchical/_treeview.html.erb
iqvoc-4.0.7 app/views/concepts/hierarchical/_treeview.html.erb
iqvoc-4.0.6 app/views/concepts/hierarchical/_treeview.html.erb
iqvoc-4.0.5 app/views/concepts/hierarchical/_treeview.html.erb
iqvoc-4.0.4 app/views/concepts/hierarchical/_treeview.html.erb
iqvoc-4.0.3 app/views/concepts/hierarchical/_treeview.html.erb
iqvoc-4.0.2 app/views/concepts/hierarchical/_treeview.html.erb
iqvoc-3.2.8 app/views/concepts/hierarchical/_treeview.html.erb
iqvoc-4.0.1 app/views/concepts/hierarchical/_treeview.html.erb
iqvoc-4.0.0 app/views/concepts/hierarchical/_treeview.html.erb
iqvoc-3.5.7 app/views/concepts/hierarchical/_treeview.html.erb
iqvoc-3.5.6 app/views/concepts/hierarchical/_treeview.html.erb
iqvoc-3.5.5 app/views/concepts/hierarchical/_treeview.html.erb
iqvoc-3.5.4 app/views/concepts/hierarchical/_treeview.html.erb
iqvoc-3.2.7 app/views/concepts/hierarchical/_treeview.html.erb