% hcpath = hierarchical_concepts_path(:format => :json, :published => params[:published], :broader => broader || nil) unless hcpath %>
<% if dragabble %>
<% else %>
<% end %>
<% concepts.select { |c| can? :read, c }.each do |concept| %>
<% if params[:published] == '0' %>
<% has_children = broader ? concept.broader_relations.any? : concept.narrower_relations.any? %>
<% else %>
<% has_children = broader ? concept.broader_relations.published.any? : concept.narrower_relations.published.any? %>
<% end %>
<% locked = can?(:branch, concept) || can?(:update, concept) ? false : true %>
- " id="<%= concept.id %>"
data-has-children="<%= has_children %>"
data-update-url="<%= move_concept_url(concept, format: :json) %>"
data-published="<%= concept.published? %>"
data-locked="<%= locked %>"
data-glance-url="<%= glance_concept_url(concept) %>">
<% if concept.published? %>
<%= link_to(concept.pref_label.to_s, concept_url(id: concept)) %>
<% else %>
<%= link_to(concept.pref_label.to_s, concept_url(id: concept, published: 0)) %>
<% end %>
<% if concept.additional_info.present? %>
(<%= concept.additional_info %>)
<% end %>
<% end %>