Sha256: 7e03dcbd7b9f0ed86a841879a90a604496cbb809fab7015aaf2d9ddb31a6c6a2

Contents?: true

Size: 980 Bytes

Versions: 1

Compression:

Stored size: 980 Bytes

Contents

module DashboardHelper
  def status_alert(color, description)
    render partial: 'dashboard/status_alert',
           object: ThemePresentation.wrap({ color: color, description: description }, WoopleTheme::Dashboard::StatusAlertPresenter)
  end

  def essentials_section(presenter)
    render partial: 'dashboard/essentials_section',
           object: ThemePresentation.wrap(presenter, WoopleTheme::Dashboard::EssentialsSectionPresenter)
  end

  def electives_section(presenter)
    render partial: 'dashboard/electives_section',
           object: ThemePresentation.wrap(presenter, WoopleTheme::Dashboard::ElectivesSectionPresenter)
  end

  def completed_essentials(items)
    collection = ThemePresentation.wrap_collection(items, WoopleTheme::Dashboard::CompletedEssentialPresenter)
    render partial: 'dashboard/completed_essential', collection: collection
  end

  def total_courses(total)
    render partial: 'dashboard/total_courses', locals: {total: total}
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
woople-theme-0.5.8 app/helpers/dashboard_helper.rb