<% if attrvalue.is_a? Hash then attrvalue.each do |infokey, infocontent| %> <%= attr %>[<%= infokey %>] <%= render partial: 'application/arvados_attr_value', locals: { obj: @object, attr: nil, attrvalue: infocontent } %> <% end %> <% elsif attrvalue.is_a? String or attrvalue.respond_to? :to_s %> <%= attr %> <%= render partial: 'application/arvados_attr_value', locals: { obj: @object, attr: attr, attrvalue: attrvalue } %> <% end %>