Sha256: 20f683350b61a9dae911864d08ff8759126f1eb5ec1b9014f8ed2af486ecb790

Contents?: true

Size: 737 Bytes

Versions: 5

Compression:

Stored size: 737 Bytes

Contents

<%= content_tag("div", { :class => "relation translation", :lang => defined?(concept) ? lang || nil : nil }, true) do %>
  <%- if defined?(concept) -%>
    <h4><%= klass.model_name.human(:count => 2) %> (<%= lang %>)</h4>
    <div class="relation-body">
      <%= item_listing(concept.labels_for_labeling_class_and_language(klass, lang.to_s)) do |label|
        link_to label.value, label_path(:id => label)
      end
    %>
    </div>
  <%- elsif defined?(label) -%>
    <h4><%= klass.model_name.human %> <%= t("txt.common.of") %></h4>
    <div class="relation">
      <%= item_listing(label.concepts_for_labeling_class(klass)) do |c|
        link_to c.to_s, concept_path(:id => c)
      end
    %>
    </div>
  <%- end -%>
<%- end -%>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
iqvoc_skosxl-1.2.3 app/views/partials/labeling/skosxl/_base.html.erb
iqvoc_skosxl-1.2.2 app/views/partials/labeling/skosxl/_base.html.erb
iqvoc_skosxl-1.2.1 app/views/partials/labeling/skosxl/_base.html.erb
iqvoc_skosxl-1.2.0 app/views/partials/labeling/skosxl/_base.html.erb
iqvoc_skosxl-1.1.4 app/views/partials/labeling/skosxl/_base.html.erb