app/views/fields/jsontable/_show.html.erb in administrate-field-jsontable-0.0.1 vs app/views/fields/jsontable/_show.html.erb in administrate-field-jsontable-0.0.2

- old
+ new

@@ -1,25 +1,25 @@ <%# -# JSON to table Show Partial +# Enum Show Partial -This partial renders an JSON to table attribute, +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::Jsontable][1]. - A wrapper around the JSON to table attributes pulled from the model. + An instance of [Administrate::Field::Enum][1]. + A wrapper around the enum attributes pulled from the model. %> <table> <thead> <tr> <% field.data.each do |k,v| %> - <th><%= k %></th> + <th><%= t(k) %></th> <% end %> </tr> </thead> <tbody> <% if field.data.first[1].kind_of?(Array) %>