Sha256: d5bb4ff8d35cc2f068d16df36fd5072d3886189352cead2d1e54eb8cb02aef02

Contents?: true

Size: 499 Bytes

Versions: 1

Compression:

Stored size: 499 Bytes

Contents

- if model
  %tr
    - for prop in props
      - if(prop[:relationship])
        %td= [:belongs, :has_one].include?(prop[:type]) ? (model.__send__(prop[:name]) ? model.__send__(prop[:name]).scaffold_name : "") : ""
      - else
        %td= model.attribute_get(prop[:name]).to_s[0..150]
    %td.actions
      = form_link('Delete', route_to(model_name, model.id, 'delete'), 'Are you sure you want to delete this?', {:method => 'delete'})
      %a{:href => route_to(model_name, model.id, 'edit')} Edit

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
orange-core-0.7.1 lib/orange-core/views/default_resource/table_row.haml