app/views/decidim/admin/attachments/show.html.erb in decidim-admin-0.10.1 vs app/views/decidim/admin/attachments/show.html.erb in decidim-admin-0.11.0.pre1

- old
+ new

@@ -1,18 +1,17 @@ <h3><%= translated_attribute(@attachment.title) %></h3> <div class="actions"> <hr /> - <%= link_to t("decidim.admin.actions.edit"), ['edit', @attachment.attached_to, @attachment] if can? :update, @attachment %> + <%= link_to t("decidim.admin.actions.edit"), ["edit", @attachment.attached_to, @attachment] if can? :update, @attachment %> <%= link_to t("decidim.admin.actions.destroy"), [@attachment.attached_to, @attachment], method: :delete, class: "alert button", data: { confirm: t("decidim.admin.actions.confirm_destroy") } if can? :destroy, @attachment %> </div> <dl> <%= display_for @attachment, :title, :description, - :file_type - %> + :file_type %> <dt><%= display_label(@attachment, :file_size) %></dt> <dd><%= number_to_human_size(@attachment.file_size) %></dd> <dt><%= display_label(@attachment, :file) %></dt> <% if @attachment.photo? %> <%= link_to @attachment.big_url do %>