Sha256: b416f019938ef8302b245ab7ef5df953750330aaa2215af9727747e2b1ff9c93

Contents?: true

Size: 1.03 KB

Versions: 10

Compression:

Stored size: 1.03 KB

Contents

- object = delete_notice

%li{:style => 'display:block; margin-top:10px'}
  %span.label= @abstract_model.pretty_name
  = link_to @model_config.with(:object => object).object_label, show_path(:model_name => @abstract_model.to_param, :id => object.id)
  %ul
    - @abstract_model.associations.select{|a| a[:type] == :has_many }.each do |association|
      - object.send(association[:name]).each do |child|
        %li
          - child_config = RailsAdmin.config(child)
          = association[:pretty_name]
          = link_to(child_config.with(:object => child).object_label, show_path(:model_name => child_config.abstract_model.to_param, :id => child.id))
    - @abstract_model.associations.select{|a| a[:type] == :has_one }.each do |association|
      - if child = object.send(association[:name])
        %li
          - child_config = RailsAdmin.config(child)
          = association[:pretty_name]
          = link_to(child_config.with(:object => child).object_label, show_path(:model_name => child_config.abstract_model.to_param, :id => child.id))

Version data entries

10 entries across 10 versions & 4 rubygems

Version Path
rails_admin-0.0.4 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.0.3 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.0.2 app/views/rails_admin/main/_delete_notice.html.haml
upstream-rails_admin-1.0.2 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.0.1 app/views/rails_admin/main/_delete_notice.html.haml
obitum-rails_admin-0.0.5 app/views/rails_admin/main/_delete_notice.html.haml
drewda_rails_admin-0.0.1 app/views/rails_admin/main/_delete_notice.html.haml
obitum-rails_admin-0.0.4 app/views/rails_admin/main/_delete_notice.html.haml
obitum-rails_admin-0.0.3 app/views/rails_admin/main/_delete_notice.html.haml
obitum-rails_admin-0.0.2 app/views/rails_admin/main/_delete_notice.html.haml