%# # Enum Show Partial This partial renders an enum attribute, to be displayed on a resource's show page. By default, the attribute is rendered as a text tag. ## Local variables: - `field`: An instance of [Administrate::Field::Enum][1]. A wrapper around the enum attributes pulled from the model. %>
<%= t(k) %> | <% end %>
---|
<%= if v[0].blank? then "-" else v[0] end %> | <% end %>
<%= if v[1].blank? then "-" else v[1] end %> | <% end %>
<%= if v.blank? then "-" else v end %> | <% end %>