Sha256: 761c5cc6e65f80baaf584600f3e55088d37fd16cde2f34b86abe13fa2b06f472
Contents?: true
Size: 1.56 KB
Versions: 14
Compression:
Stored size: 1.56 KB
Contents
<%- # TODO: We'll need a 'collection_view_data' helper (containing the following # "Note" stuff too). -%> <%#= render 'layouts/sections', :sections => ["labels"], :data => concept_view_data(collection) %> <% Iqvoc::Concept.labeling_classes.each do |labeling_class, languages| %> <% (languages || Iqvoc.available_languages).each do |lang| %> <%= render labeling_class.partial_name(collection), :klass => labeling_class, :concept => collection, :lang => lang %> <% end %> <% end %> <div class="relation panel"> <h2><%= Note::SKOS::Definition.model_name.human(:count => 2) %></h2> <ul> <% collection.note_skos_definitions.each do |definition| %> <li><%= definition.value %> (<%= definition.language %>)</li> <% end %> </ul> </div> <div class="relation panel"> <h2><%= Iqvoc::Concept.base_class.model_name.human(:count => 2) %></h2> <div class="relation-body"> <ul> <%- collection.concepts.sort {|a, b| a.pref_label.to_s <=> b.pref_label.to_s }.each do |concept| -%> <%- if concept.published? || (!concept.published_version_id && can?(:update, concept)) -%> <li><%= render concept.class.inline_partial_name, :concept => concept %></li> <%- end -%> <%- end -%> </ul> </div> </div> <div class="relation panel"> <h2><%= Iqvoc::Collection.base_class.model_name.human(:count => 2) %></h2> <ul class="hybrid-treeview" data-url="<%= collections_path(:format => :json) %>"> <%= render :partial => 'collection', :collection => collection.subcollections.sort {|a, b| a.pref_label <=> b.pref_label } %> </ul> </div>
Version data entries
14 entries across 14 versions & 1 rubygems