<% if properties['type'] == 'wysiwyg_field' %>
<%= resource.send(attribute).html_safe -%>
<% elsif properties['type'] == 'belongs_to' %>
<%= parent_object_name(resource, properties['model']) %>
<% elsif properties['type'] == 'has_many' %>
<% resource.send("#{pluralize_model(properties['model'])}").each do |member| %>
- <%= member.name %>
<% end %>
<% elsif properties['type'] == 'file_field' %>
<%= image_tag(resource.send("#{attribute}_url", :thumb)) %>
<% elsif properties["type"] == "boolean" %>
<%= resource.send(attribute) ? I18n.t('action.is_true') : I18n.t('action.is_false') %> |
<% else %>
<%= resource.send(attribute) -%>
<% end %>