Sha256: 2031ca7c0f97d1218aeb7337f14a820b596dc6558c48caa4281712e3dfb71508

Contents?: true

Size: 964 Bytes

Versions: 5

Compression:

Stored size: 964 Bytes

Contents

- rtc_controller_name ||= controller_name
- rtc_title = true if rtc_title.nil?

- unless rtc_title.to_s.eql?('false') || rtc_title.to_s.eql?(false)
  .component_title
    - if rtc_title.to_s.eql?('true') || rtc_title.to_s.eql?(true)
      %h1 
        - if rtc_title.present? && !rtc_title.to_s.eql?('true')
          = rtc_title
        - else
          = sanitize(t("listing") + ' ' + t("#{rtc_controller_name.singularize}"))

    - elsif rtc_title.instance_of?(Hash)
      - if rtc_title[:wrapper].present?
        - case rtc_title[:wrapper]
        - when 'h1'
          %h1
            = rtc_title[:title]
        - when 'h1'
          %h2
            = rtc_title[:title]
        - when 'h1'
          %h3
            = rtc_title[:title]
        - when 'h1'
          %h4
            = rtc_title[:title]
        - when false
          = rtc_title[:title]
        - else
          %h1
            = rtc_title[:title]

    - else
      %h1
        = rtc_title

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
rich_table_component-0.0.30 app/views/rich_table_component/rtc/_component_title.html.haml
rich_table_component-0.0.29 app/views/rich_table_component/rtc/_component_title.html.haml
rich_table_component-0.0.28 app/views/rich_table_component/rtc/_component_title.html.haml
rich_table_component-0.0.27 app/views/rich_table_component/rtc/_component_title.html.haml
rich_table_component-0.0.26 app/views/rich_table_component/rtc/_component_title.html.haml