Sha256: 1eb38cc88d93531b8b52f61cbd10774643723435920d46b1f13fa82103f1bcd1

Contents?: true

Size: 294 Bytes

Versions: 5

Compression:

Stored size: 294 Bytes

Contents

require 'duration'
module WoopleTheme
  module Dashboard
    class CompletedEssentialPresenter < CompletedContentItemPresenter

      def date
        completed_on.strftime('%b %d')
      end

      def formatted_time_total
        Duration.format_time(time_total)
      end

    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
woople-theme-0.5.8 app/presenters/woople_theme/dashboard/completed_essential_presenter.rb
woople-theme-0.5.7 app/presenters/woople_theme/dashboard/completed_essential_presenter.rb
woople-theme-0.5.6 app/presenters/woople_theme/dashboard/completed_essential_presenter.rb
woople-theme-0.5.5 app/presenters/woople_theme/dashboard/completed_essential_presenter.rb
woople-theme-0.5.4 app/presenters/woople_theme/dashboard/completed_essential_presenter.rb