Sha256: 885e307c4642cd25870e0b61fb5951d10fc9239f5a8443c316057154241cd554
Contents?: true
Size: 952 Bytes
Versions: 4
Compression:
Stored size: 952 Bytes
Contents
<%= content_tag :div, :class => "relation translation panel", :lang => (defined?(concept) ? lang || nil : nil) do %> <% if defined?(concept) %> <h2><%= klass.model_name.human(:count => 2) %> <small><%= t("languages.#{lang || "-"}") %></small></h2> <div class="relation-body"> <%- items = concept.labels_for_labeling_class_and_language(klass, lang) items = items.select { |item| can?(:read, item) } -%> <%= item_listing(items) do |label| label.value end %> </div> <% elsif defined?(label) %> <h2><%= klass.model_name.human(:count => 2) %> <%= t("txt.common.of") %></h2> <div class="relation"> <%- items = label.concepts_for_labeling_class(klass) items = items.select { |item| can?(:read, item) } -%> <%= item_listing(items) do |c| link_to(c.origin, concept_path(:id => c), :alt => c.pref_label) end %> </div> <% end %> <% end %>
Version data entries
4 entries across 4 versions & 1 rubygems