Sha256: dcc677c2d133dbc573fc6c78ddef9681152881460a75b207a5792138b93a256f

Contents?: true

Size: 1.14 KB

Versions: 1

Compression:

Stored size: 1.14 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(ical_course_category_path(course_category), class: 'btn btn-default') do
        %span.glyphicon.glyphicon-calendar
        = ical_course_category_url(course_category)

  .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.2.0 app/views/ecm/courses/course_categories/_course_category.haml