Sha256: abb102f68f63e7583ac332b01f1567b685641f60c7ee8397a0520362a0593a50
Contents?: true
Size: 499 Bytes
Versions: 4
Compression:
Stored size: 499 Bytes
Contents
module Ecm::Downloads class DownloadDecorator < Draper::Decorator delegate_all def ecm_downloads_downloads_count_label h.content_tag(:span, ecm_downloads_downloads_count, class: 'badge') end def filesize h.number_to_human_size(asset_file_size) end def locale_label h.content_tag(:span, locale, class: 'label label-info') end def tree_name name end def display_code "<%= render_download '#{self.name}' %>" end end end
Version data entries
4 entries across 4 versions & 1 rubygems