Sha256: 4d05df94d7055573718ff1ee82e1f8013fd0143eba3d4e217ae1be31c52a3193
Contents?: true
Size: 720 Bytes
Versions: 3
Compression:
Stored size: 720 Bytes
Contents
require 'duration' 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(formatted_duration) end private def formatted_date WoopleThemeI18n.l(completed_on.to_date) end def formatted_duration Duration.format_time(time_total) end end end end
Version data entries
3 entries across 3 versions & 1 rubygems