Sha256: 66b5143d107674ad30e4fe4825f75cbc2be2c7d8cd9f0a081f0f0b656500f3f7

Contents?: true

Size: 976 Bytes

Versions: 19

Compression:

Stored size: 976 Bytes

Contents

- object = delete_notice

%li{:style => 'display:block; margin-top:10px'}
  %span.label= @abstract_model.pretty_name
  - wording = object.send(@model_config.object_label_method)
  - if show_action = action(:show, @abstract_model, object)
    = link_to(wording, url_for(:action => show_action.action_name, :model_name => @abstract_model.to_param, :id => object.id), :class => 'pjax')
  - else
    = wording
  %ul
    - @abstract_model.each_associated_children(object) do |association, child|
      %li
        - child_config = RailsAdmin.config(child)
        = @abstract_model.model.human_attribute_name association[:name]
        - wording = child.send(child_config.object_label_method)
        - if child.id && (show_action = action(:show, child_config.abstract_model, child))
          = link_to(wording, url_for(:action => show_action.action_name, :model_name => child_config.abstract_model.to_param, :id => child.id), :class => 'pjax')
        - else
          = wording

Version data entries

19 entries across 19 versions & 2 rubygems

Version Path
rails_admin-0.6.1 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.6.0 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.5.0 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.4.9 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.4.8 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.4.7 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.4.6 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.4.5 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.4.4 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-lbgraham-0.4.2 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.4.3 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.4.2 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.4.1 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.4.0 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.3.0 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.2.0 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.1.2 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.1.1 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.1.0 app/views/rails_admin/main/_delete_notice.html.haml