Sha256: 7223107a51cf92b2ed7f148038e6b71f7b376817ea73f97374ad977a4b7cefa0

Contents?: true

Size: 636 Bytes

Versions: 17

Compression:

Stored size: 636 Bytes

Contents

require 'woople_theme_i18n'

module WoopleTheme
  module Dashboard
    class EssentialCompletedPresenter < ContentItemPresenter

      def render_time_remaining(&block)
      end

      def render_popularity(&block)
      end

      def render_certification_metadata(&block)
      end

      def render_progress_bar(&block)
      end

      def render_completed_on(&block)
        yield(formatted_date) unless completed_on.nil?
      end

      def render_essential_duration(&block)
        yield(time_total)
      end

      private

      def formatted_date
        WoopleThemeI18n.l(completed_on.to_date)
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
woople-theme-0.6.11 app/presenters/woople_theme/dashboard/essential_completed_presenter.rb
woople-theme-0.6.10 app/presenters/woople_theme/dashboard/essential_completed_presenter.rb
woople-theme-0.6.9 app/presenters/woople_theme/dashboard/essential_completed_presenter.rb
woople-theme-0.6.8 app/presenters/woople_theme/dashboard/essential_completed_presenter.rb
woople-theme-0.6.7 app/presenters/woople_theme/dashboard/essential_completed_presenter.rb
woople-theme-0.6.6 app/presenters/woople_theme/dashboard/essential_completed_presenter.rb
woople-theme-0.6.5 app/presenters/woople_theme/dashboard/essential_completed_presenter.rb
woople-theme-0.6.4 app/presenters/woople_theme/dashboard/essential_completed_presenter.rb
woople-theme-0.6.3 app/presenters/woople_theme/dashboard/essential_completed_presenter.rb
woople-theme-0.6.2 app/presenters/woople_theme/dashboard/essential_completed_presenter.rb
woople-theme-0.6.1 app/presenters/woople_theme/dashboard/essential_completed_presenter.rb
woople-theme-0.6 app/presenters/woople_theme/dashboard/essential_completed_presenter.rb
woople-theme-0.5.17 app/presenters/woople_theme/dashboard/essential_completed_presenter.rb
woople-theme-0.5.16 app/presenters/woople_theme/dashboard/essential_completed_presenter.rb
woople-theme-0.5.15 app/presenters/woople_theme/dashboard/essential_completed_presenter.rb
woople-theme-0.5.14 app/presenters/woople_theme/dashboard/essential_completed_presenter.rb
woople-theme-0.5.13 app/presenters/woople_theme/dashboard/essential_completed_presenter.rb