Sha256: f972a9b9dfbf2aa3350b25db1354139af826e08eb80898660e82f7f18791e4f3

Contents?: true

Size: 457 Bytes

Versions: 6

Compression:

Stored size: 457 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 it's 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

6 entries across 6 versions & 1 rubygems

Version Path
rad_common_interface-0.0.12 app/views/themes/default/more.html.haml
rad_common_interface-0.0.11 app/views/themes/default/more.html.haml
rad_common_interface-0.0.10 app/views/themes/default/more.html.haml
rad_common_interface-0.0.9 app/views/themes/default/more.html.haml
rad_common_interface-0.0.8 app/views/themes/default/more.html.haml
rad_common_interface-0.0.7 app/views/themes/default/more.html.haml