Sha256: 1c03e78dd30e02ad2ae8977ca7e71e5cd7cafad68cfca969741b400362a216c6

Contents?: true

Size: 611 Bytes

Versions: 1

Compression:

Stored size: 611 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)
      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

1 entries across 1 versions & 1 rubygems

Version Path
woople-theme-0.5.12 app/presenters/woople_theme/dashboard/essential_completed_presenter.rb