Sha256: ef5b88b9b720ee291b90816100a807e714ed887e72922090d9089b3f9bf8463a

Contents?: true

Size: 456 Bytes

Versions: 2

Compression:

Stored size: 456 Bytes

Contents

- more = object.more || object.content
- if object.core? or present?(more)
  - raise "you should provide unique id for b.more element (to allow it remember its state in ajax requests')!" unless object.id?
  - core_id, more_id = "#{object.id}_core", "#{object.id}_more"
  = tag :span, object.core, id: core_id if object.core?
  - if more.present?
    = tag :a, object.name, class: "the_more", href: '#', 'data-id' => object.id
    .hidden{id: more_id}= more

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rad_common_interface-0.0.14 app/views/themes/default/more.html.haml
rad_common_interface-0.0.13 app/views/themes/default/more.html.haml