Sha256: 236d1859553211c329e12c0341b8d6ec1644a83557c9247a59fedebea843d751

Contents?: true

Size: 877 Bytes

Versions: 30

Compression:

Stored size: 877 Bytes

Contents

-# frozen_string_literal: true
- if question.blank?
  %th.option{class: os_cycle, colspan: colspan}
- else
  -#TODO: if a hidden option is checked it should get its own new scale header
  - cls = ['scaleheader']
  - if question.score_header == :question_description
    %th.option{title: strip_tags(question.description), class: cls, colspan: colspan, data: {for: question.key}}
      = Quby::MarkdownParser.new(question.description).html_safe
  - else
    - question.options.each do |option|
      - next if (option.inner_title or option.hidden)
      %th.option{title: strip_tags(option.description), class: cls, data: {for: question.key}}
        -#= raw cycle("<br/>", "", :name => "headbr" )
        - case question.score_header
        - when :value
          = option.value
        - when :description
          = Quby::MarkdownParser.new(option.description).html_safe

Version data entries

30 entries across 30 versions & 1 rubygems

Version Path
quby-5.6.7 app/views/quby/v1/table/_item_table_header.html.haml
quby-5.6.6 app/views/quby/v1/table/_item_table_header.html.haml
quby-5.6.5 app/views/quby/v1/table/_item_table_header.html.haml
quby-5.6.3 app/views/quby/v1/table/_item_table_header.html.haml
quby-5.6.2 app/views/quby/v1/table/_item_table_header.html.haml
quby-5.6.1 app/views/quby/v1/table/_item_table_header.html.haml
quby-5.6.0 app/views/quby/v1/table/_item_table_header.html.haml
quby-5.5.0 app/views/quby/v1/table/_item_table_header.html.haml
quby-5.4.0 app/views/quby/v1/table/_item_table_header.html.haml
quby-5.3.1 app/views/quby/v1/table/_item_table_header.html.haml
quby-5.3.0 app/views/quby/v1/table/_item_table_header.html.haml
quby-5.2.0 app/views/quby/v1/table/_item_table_header.html.haml
quby-5.1.3 app/views/quby/v1/table/_item_table_header.html.haml
quby-5.1.2 app/views/quby/v1/table/_item_table_header.html.haml
quby-5.1.1 app/views/quby/v1/table/_item_table_header.html.haml
quby-5.1.0 app/views/quby/v1/table/_item_table_header.html.haml
quby-5.0.5 app/views/quby/v1/table/_item_table_header.html.haml
quby-5.0.4 app/views/quby/v1/table/_item_table_header.html.haml
quby-5.0.3 app/views/quby/v1/table/_item_table_header.html.haml
quby-5.0.2 app/views/quby/v1/table/_item_table_header.html.haml