app/views/shared/show.html.erb in adminpanel-1.2.5 vs app/views/shared/show.html.erb in adminpanel-1.2.6
- old
+ new
@@ -1,8 +1,8 @@
<% provide(:page_title, t("action.view") + " #{@model.display_name.capitalize}") -%>
<% breadcrumb_add(
- @model.display_name.capitalize.pluralize,
+ @model.display_name.capitalize.pluralize,
{
:controller => params[:controller],
:action => "index"
}
) %>
@@ -57,15 +57,16 @@
</h5>
</div>
<div class="widget-body row-fluid">
<div id="gallery-container" class="js-masonry"
data-masonry-options='{ "columnWidth": 3, "itemSelector": ".gallery-item" }'>
- <% resource.images.each do |image|%>
+ <% resource.send(@model.get_image_relationship).each do |image|%>
<div class="gallery-item">
<%= link_to (image_tag image.file_url(:thumb)), image.file.to_s, :rel => "group", :name => @model.display_name %>
+ <%#= link_to (image_tag image.file_url(:thumb)), image.file.to_s, :rel => "group", :name => @model.display_name %>
</div>
<% end %>
</div>
</div>
</div>
<% end %>
-</div>
\ No newline at end of file
+</div>