Sha256: 2d411237c06931c52059a647b03a4bf204f3a58a05a98cc5beee20309f0203d6

Contents?: true

Size: 863 Bytes

Versions: 5

Compression:

Stored size: 863 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: raw(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: raw(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

5 entries across 5 versions & 1 rubygems

Version Path
quby-4.0.0 app/views/quby/v1/table/_item_table_header.html.haml
quby-3.2.2 app/views/quby/v1/table/_item_table_header.html.haml
quby-3.2.1 app/views/quby/v1/table/_item_table_header.html.haml
quby-3.2.0 app/views/quby/v1/table/_item_table_header.html.haml
quby-3.2.0.pre.pre1 app/views/quby/v1/table/_item_table_header.html.haml