Sha256: cc042c9019ca27efb2715fd7af0e1d5d79052c16250eabdfc4abfb31d58e0cf8

Contents?: true

Size: 1.03 KB

Versions: 4

Compression:

Stored size: 1.03 KB

Contents

<div class="course_category" id="course_category-<%= course_category.id %>">
  <% if action_name == 'show' %>
    <h1 class="courses_category-name"><%= course_category.name %></h1>
  <% else %>
    <h2 class="courses_category-name"><%= course_category.name %></h2>
  <% end %>  
  
  <div class="course_categories-tree">
      <%= nested_li(course_category.descendants, {}) do |course_category, level| %>
        <%= link_to course_category.tree_name, course_category %>
      <% end %>
  </div>

  <% unless course_category.description.blank? %>
    <div class="course_categories-description">
      <p><%= course_category.description %></p>
    </div>
  <% end %>
  
  <div class="course_category-courses">
    <h2><%= Ecm::Courses::CourseCategory.human_attribute_name(:ecm_courses_courses) %></h2>  
    <% if course_category.ecm_courses_courses_count == 0 %>
      <%= t('ecm.courses.course_category.messages.no_courses_available') %>
      <hr />
    <% else %>
      <%= render course_category.ecm_courses_courses %>
    <% end %>
  </div>  
</div>

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
ecm_courses-0.0.1 app/views/ecm/courses/course_categories/_course_category.html.erb
ecm_courses-0.0.7.pre app/views/ecm/courses/course_categories/_course_category.html.erb
ecm_courses-0.0.6.pre app/views/ecm/courses/course_categories/_course_category.html.erb
ecm_courses-0.0.5.pre app/views/ecm/courses/course_categories/_course_category.html.erb