Sha256: 1c46bccfe9b2bd8bb4d42dda5aad7f0750c6ded3fda0a24024e64805f22cb08d

Contents?: true

Size: 848 Bytes

Versions: 1

Compression:

Stored size: 848 Bytes

Contents

- object = delete_notice
- show_enabled = RailsAdmin::Config::Actions.all.map(&:key).include?(:show)

%li{:style => 'display:block; margin-top:10px'}
  %span.label= @abstract_model.pretty_name
  - if show_enabled
    = link_to @model_config.with(:object => object).object_label, show_path(:model_name => @abstract_model.to_param, :id => object.id)
  - else
    = @model_config.with(:object => object).object_label
  %ul
    - @abstract_model.each_associated_children(object) do |association, child|
      %li
        - child_config = RailsAdmin.config(child)
        = association[:pretty_name]
        - if show_enabled
          = link_to(child_config.with(:object => child).object_label, show_path(:model_name => child_config.abstract_model.to_param, :id => child.id))
        - else
          = child_config.with(:object => child).object_label

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
rails_admin-0.0.5 app/views/rails_admin/main/_delete_notice.html.haml