Sha256: 79a7d27346c2917b7325053aa921fe9292c2e43ec801b74c880a86c69bbfc901
Contents?: true
Size: 961 Bytes
Versions: 6
Compression:
Stored size: 961 Bytes
Contents
- object = delete_notice %li{style: 'display:block; margin-top:10px'} %span.label.label-default= @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
6 entries across 6 versions & 2 rubygems