<% provide(:page_title, I18n.t('action.view', resource: @model.display_name.capitalize)) -%> <% breadcrumb_add( @model.collection_name, { controller: params[:controller], action: 'index' } ) %>
<%= content_tag(:i, nil, class: "fa fa-#{@model.icon}") %>
<%= @model.display_name.humanize %> <%= render 'adminpanel/icons/edit', resource: @resource_instance %> <%= render 'adminpanel/icons/facebook', resource: @resource_instance %> <%= render 'adminpanel/icons/twitter', resource: @resource_instance %>
    <% @model.display_attributes('show').each do |fields| %> <% fields.each do |attribute, properties| %>
  • <%= properties['label'] %>
    <%= field_value(properties, attribute, @resource_instance) %>
  • <% end %> <% end %>
<% if @model.has_images? %>
<%= content_tag(:i, nil, class: "fa fa-#{@model.icon}") %>
<%= I18n.t('gallery.container') %>: <%= @model.display_name.humanize %> <%= render 'adminpanel/icons/edit', resource: @resource_instance %>
<% if @model.gallery_children %>
<% else %>
<% @resource_instance.send(@model.get_image_relationship).each do |image|%> <%= link_to( image_tag( image.file_url(:thumb) ), image.file_url.to_s, rel: 'group', name: @model.display_name ) %> <% end %>
<% end %>
<% end %>