Sha256: 4a4a4bfa28544c344e4a8b097f947d8118ce97f9de38feeb4b5ed5f7f463a4cf

Contents?: true

Size: 759 Bytes

Versions: 1

Compression:

Stored size: 759 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
  .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.0.1 app/views/ecm/courses/course_categories/_course_category.haml