Sha256: c805babc4bcbe2f7f241c4ea02cea535b168dcd6c89c85a3748e4a1541f3efdc
Contents?: true
Size: 1.06 KB
Versions: 51
Compression:
Stored size: 1.06 KB
Contents
<h3><%= translated_attribute(@attachment.title) %></h3> <div class="actions"> <hr> <%= link_to t("decidim.admin.actions.edit"), ["edit", @attachment.attached_to, @attachment] if allowed_to? :update, :attachment, attachment: @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 allowed_to? :destroy, :attachment, attachment: @attachment %> </div> <dl> <%= display_for @attachment, :title, :description, :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 %> <%= image_tag @attachment.thumbnail_url, class: "thumbnail", alt: strip_tags(translated_attribute(@attachment.description)) %> <% end %> <% else %> <%= link_to translated_attribute(@attachment.title), @attachment.url %> <% end %> </dl>
Version data entries
51 entries across 51 versions & 1 rubygems