Sha256: b1382d731a63b8c9f31cc089c76d2c68ef5cee71d693e73a27de80876992a8f3

Contents?: true

Size: 947 Bytes

Versions: 5

Compression:

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

5 entries across 5 versions & 1 rubygems

Version Path
rails_admin-0.6.6 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.6.5 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.6.4 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.6.3 app/views/rails_admin/main/_delete_notice.html.haml
rails_admin-0.6.2 app/views/rails_admin/main/_delete_notice.html.haml