app/renderers/hyrax/renderers/attribute_renderer.rb
# Draw the table row for the attribute
Draw the table row for the attribute
Draw the table row for the attribute
def render
        markup = ''
        return markup if values.none?(&:present?) && !options[:include_empty]
        markup << %(<tr><th>#{label}</th>\n<td><ul class='tabular'>)
        attributes = microdata_object_attributes(field).merge(class: "attribute attribute-#{field}")
        Array(values).each do |value|
          markup << "<li#{html_attributes(attributes)}>#{attribute_value_to_html(value.to_s)}</li>"
        end
        markup << %(</ul></td></tr>)
        markup.html_safe
      end
def render markup = '' return markup if values . none? ( & :present? ) && ! options [ :include_empty ] markup << %(<tr><th>#{label}</th>\n<td><ul class='tabular'>) attributes = microdata_object_attributes ( field ) . merge ( class : "attribute attribute-#{field}" ) Array ( values ) . each do | value | markup << "<li#{html_attributes(attributes)}>#{attribute_value_to_html(value.to_s)}</li>" end markup << %(</ul></td></tr>) markup . html_safe end
Draw the table row for the attribute
Draw the table row for the attribute