Sha256: d6b3dfa05e5412555b53e54261f52264493dd6defe05b39b5628565f7cf038cd

Contents?: true

Size: 471 Bytes

Versions: 1

Compression:

Stored size: 471 Bytes

Contents

= "#{course.class.human_attribute_name(:free_seats)}:"
%span{ class: "label label-#{course.free_seats_level_properties[:css_class]}" }
  - if course.free_seats_level_range.last == 100
    - percentage = number_to_percentage(course.free_seats_level_range.first, precision: 0)
    = t('.less_than', percentage: percentage)

  - else 
    - percentage = number_to_percentage(course.free_seats_level_range.last, precision: 0)
    = t('.greater_than', percentage: percentage)

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
ecm_courses2-1.1.0 app/views/ecm/courses/course_categories/_free_seats.haml