% fields.each do |slug, field| field_key = field[:options][:field_key] %>
<%= value %>
<% when 'editor' %><%= link_to(image_tag(value, style: "max-height: 100px;"), value) %>
<% when 'audio' %><% when 'video' %>
<% when 'file' %> <% when 'url' %> <% when 'users' user = current_site.users.find(value) rescue {} %>
<%= user.fullname if user.present? %>
<% when 'posts' post = current_site.posts.find(value) rescue {} %><%= post.decorate.the_title if post.present? %>
<% when 'field_attrs' post = JSON.parse(value) rescue {} %><%= raw("#{post['attr']}: #{post['attr']}") if post.present? %>
<% else %><%= value %>
<% end %> <% end %>