Sha256: 1aa293b9737a5382d23d1e3fddf1a8e8a31b8784ccef6c54a984d77ca376b36e

Contents?: true

Size: 1.11 KB

Versions: 10

Compression:

Stored size: 1.11 KB

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-2
      = month_calendar_pagination(date)
      = month_calendar date, course_dates, display_method: :course, start_day: :monday
    .bottom-margin-4 
      = link_to(url_for(format: :ics, nocache: true), class: 'btn btn-default') do
        %span.glyphicon.glyphicon-calendar
        = url_for(format: :ics)

  .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

10 entries across 10 versions & 1 rubygems

Version Path
ecm_courses2-1.1.2 app/views/ecm/courses/course_categories/_course_category.haml
ecm_courses2-1.1.1 app/views/ecm/courses/course_categories/_course_category.haml
ecm_courses2-1.1.0 app/views/ecm/courses/course_categories/_course_category.haml
ecm_courses2-1.0.3 app/views/ecm/courses/course_categories/_course_category.haml
ecm_courses2-1.0.2 app/views/ecm/courses/course_categories/_course_category.haml
ecm_courses2-1.0.1 app/views/ecm/courses/course_categories/_course_category.haml
ecm_courses2-1.0.0 app/views/ecm/courses/course_categories/_course_category.haml
ecm_courses2-0.2.4 app/views/ecm/courses/course_categories/_course_category.haml
ecm_courses2-0.2.3 app/views/ecm/courses/course_categories/_course_category.haml
ecm_courses2-0.2.2 app/views/ecm/courses/course_categories/_course_category.haml