Sha256: b16f7f7e858e82097ea274bc09ed2fe01b097f231efa4530b5906f8bc615fa1c
Contents?: true
Size: 1.04 KB
Versions: 3
Compression:
Stored size: 1.04 KB
Contents
<div class="relation panel" id="<%= Iqvoc::Concept.broader_relation_class.name.to_relation_name %>"> <h2><%= Iqvoc::Concept.broader_relation_class.model_name.human(:count => 2) %></h2> <div class="relation-body"> <% if concept.top_term? %> <%= concept.class.human_attribute_name("top_term") %> <% end %> <%- only_published = params[:published] != "0" related_concepts = concept.related_concepts_for_relation_class( Iqvoc::Concept.broader_relation_class, only_published) -%> <% if related_concepts.any? %> <div class="selector"> <% parent = related_concepts.first parents = [] while (parent && !parents.include?(parent)) parents << parent parent = parent.related_concepts_for_relation_class( Iqvoc::Concept.broader_relation_class, only_published).first end %> <%= parents.map { |concept| render concept.class.inline_partial_name, :concept => concept }.join(" « ").html_safe %> </div> <% end %> </div> </div>
Version data entries
3 entries across 3 versions & 1 rubygems