Sha256: 1429a37d89a15af3e667124fd8eb3f71dbcae19563a6b5ddcbbc68fcbf833f5c

Contents?: true

Size: 423 Bytes

Versions: 2

Compression:

Stored size: 423 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
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ecm_downloads2-1.1.0 app/decorators/ecm/downloads/download_decorator.rb
ecm_downloads2-1.0.0 app/decorators/ecm/downloads/download_decorator.rb