Sha256: f80b809ad6089fd117e80d11b4ea25d4560cef65b8fb9f0c1ce1037427a94816

Contents?: true

Size: 675 Bytes

Versions: 13

Compression:

Stored size: 675 Bytes

Contents

%tr.odd.gradeA{ :class => ("disabled" if !obj.active) }
  - @obj_class.columns_for_table.each do |t|
    %td{ :id => obj.id }
      -#
      -# Common index tries to find object.attribute_view function in your Model to parse value
      -# if it's not defined, just puts simple object.atribute value
      -#
      - if obj.respond_to?("#{t}_view")
        = eval("obj.#{t}_view")
      - else
        = obj.try(t)
  %td
    .controls.center
      = table_controls_edit_btn( edit_url(@obj_class, obj) ) if obj.editable
      = table_controls_delete_btn( obj_url(@obj_class, obj) ) if obj.deletable
      = table_controls_copy_btn( copy_url(@obj_class, obj) ) if obj.editable 

Version data entries

13 entries across 10 versions & 1 rubygems

Version Path
mokio-0.0.15 app/views/mokio/backend/common/_obj.html.haml
mokio-0.0.14 app/views/mokio/backend/common/_obj.html.haml
mokio-0.0.13 app/views/mokio/backend/common/_obj.html.haml
mokio-0.0.12 app/views/mokio/backend/common/_obj.html.haml
mokio-0.0.11 app/views/mokio/backend/common/_obj.html.haml
mokio-0.0.10 app/views/mokio/backend/common/_obj.html.haml
mokio-0.0.9 app/views/mokio/backend/common/_obj.html.haml
mokio-0.0.8 app/views/mokio/backend/common/_obj.html.haml
mokio-0.0.8 app/views/mokio_haml/common/_obj.html.haml
mokio-0.0.6 app/views/mokio/backend/common/_obj.html.haml
mokio-0.0.6 app/views/mokio_haml/common/_obj.html.haml
mokio-0.0.5 app/views/mokio_haml/common/_obj.html.haml
mokio-0.0.5 app/views/mokio/backend/common/_obj.html.haml