Sha256: 68fc7033794456c78846a73159e8c990528ded31b12577dc00341f4c0a11939c

Contents?: true

Size: 664 Bytes

Versions: 11

Compression:

Stored size: 664 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

11 entries across 11 versions & 1 rubygems

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