app/views/madmin/fields/polymorphic/_show.html.erb in madmin-0.1.0 vs app/views/madmin/fields/polymorphic/_show.html.erb in madmin-0.1.1

- old
+ new

@@ -1,14 +1,3 @@ -<div class="row"> - <div class="col-3"> - <%= field.label %> - </div> - <div class="col-9"> - <%= - link_to field.polymorphic_value_for(resource), - resource_path( - field.polymorphic_slug_for(resource), - field.polymorphic_id_for(resource) - ) - %> - </div> -</div> +<% if (object = field.value(record)) %> + <%= link_to Madmin.resource_for(object).display_name(object), Madmin.resource_for(object).show_path(object) %> +<% end %>