app/views/cms/file_blocks/render.html.erb in browsercms-3.4.2 vs app/views/cms/file_blocks/render.html.erb in browsercms-3.5.0.rc1
- old
+ new
@@ -1,5 +1,5 @@
<div id="file_block_<%= @content_block.id %>" class="file_block">
- <%= image_tag "cms/icons/file_types/#{@content_block.attachment.icon}.png", :alt=>@content_block.attachment.icon %>
- <%= link_to @content_block.name, @content_block.attachment_link %>
- <%= @content_block.attachment.file_size.round_bytes %>
+ <%= image_tag "cms/icons/file_types/#{@content_block.file.icon}.png", :alt=>@content_block.file.icon %>
+ <%= link_to @content_block.name, attachment_path_for(@content_block.file) %>
+ <%= @content_block.file.data_file_size.round_bytes %>
</div>