Sha256: ac742c98499e39fecee64c0f05913a4aea94d6d141e0cfb0841a1158414323d0

Contents?: true

Size: 957 Bytes

Versions: 1

Compression:

Stored size: 957 Bytes

Contents

.course_category{:id => "course_category-#{course_category.id}"}
  - if action_name == 'show'
    %h1.courses_category-name= course_category.name
  - else
    %h2.courses_category-name= course_category.name

  - if action_name == 'show'
    .course-calendar.bottom-margin-4
      = month_calendar_pagination(date)
      = month_calendar date, course_dates, display_method: :course, start_day: :monday

  .course_categories-tree
    = nested_li(course_category.descendants, {}) do |course_category, level|
      = link_to course_category.tree_name, course_category
  - unless course_category.description.blank?
    .course_categories-description
      %p= course_category.description

  .course_category-courses
    / %h2= Ecm::Courses::CourseCategory.human_attribute_name(:courses)
    - if course_category.courses_count == 0
      = t('ecm.courses.course_category.messages.no_courses_available')
      %hr/
    - else
      = render course_category.courses

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ecm_courses2-0.1.0 app/views/ecm/courses/course_categories/_course_category.haml