app/views/shared/show.html.erb in adminpanel-2.0.0 vs app/views/shared/show.html.erb in adminpanel-2.0.1
- old
+ new
@@ -23,18 +23,18 @@
<li class="priority-high">
<div class="span3">
<h6><%= properties["label"] %></h6>
</div>
<div class="span8">
- <% if properties["type"] == "wysiwyg_field" %>
+ <% if properties['type'] == 'wysiwyg_field' %>
<%= resource.send(attribute).html_safe -%>
- <% elsif properties["type"] == "belongs_to" %>
- <%= parent_object_name(resource, properties["model"]) %>
+ <% elsif properties['type'] == 'belongs_to' %>
+ <%= parent_object_name(resource, properties['model']) %>
- <% elsif properties["type"] == "has_many" %>
+ <% elsif properties['type'] == 'has_many' %>
<ul>
- <% resource.send("#{pluralize_model(properties["model"])}").each do |member| %>
+ <% resource.send("#{pluralize_model(properties['model'])}").each do |member| %>
<li class="priority-low"><%= member.name %></li>
<% end %>
</ul>
<% elsif properties['type'] == 'file_field' %>
<ul>
@@ -55,11 +55,11 @@
</div>
<% if @model.has_images? %>
<div class="widget widget-padding span6">
<div class="widget-header">
- <%= content_tag(:i, nil, :class => @model.icon) %>
- <h5><%= I18n.t("Gallery") %>: <%= @model.display_name.humanize %>
+ <%= content_tag(:i, nil, :class => "fa fa-#{@model.icon}") %>
+ <h5><%= I18n.t('gallery.container') %>: <%= @model.display_name.humanize %>
<%= render 'shared/edit_icon_button', resource: resource, resource_name: @model.display_name %>
</h5>
</div>
<% if @model.gallery_children.nil? %>
<div class="widget-body row-fluid">