Sha256: 9208da2e0fc4924cd4790405d49753e4865f64586b32ce33142aa09974e74d0e

Contents?: true

Size: 440 Bytes

Versions: 6

Compression:

Stored size: 440 Bytes

Contents

%div{ :class => text_brick.to_style_class }
  - if text_brick.read_more_text.present?
    .expandable{ :id => text_brick.to_style_id }
      = text_brick.text.html_safe
      %a.more{ :href => '#' }
        = t('.read_more')
      .expandable-content.hidden
        = text_brick.read_more_text.to_s.html_safe
        %a.less{ :href => "##{text_brick.to_style_id}" }
          = t('.read_less')
  - else
    = text_brick.text.to_s.html_safe

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
kuhsaft-1.2.2 app/views/kuhsaft/text_bricks/_text_brick.html.haml
kuhsaft-1.2.1 app/views/kuhsaft/text_bricks/_text_brick.html.haml
kuhsaft-1.2.0 app/views/kuhsaft/text_bricks/_text_brick.html.haml
kuhsaft-1.1.1 app/views/kuhsaft/text_bricks/_text_brick.html.haml
kuhsaft-1.1.0 app/views/kuhsaft/text_bricks/_text_brick.html.haml
kuhsaft-1.0.3 app/views/kuhsaft/text_bricks/_text_brick.html.haml