make admin text break

or rather stop it not breaking
This commit is contained in:
Torsten Ruger 2016-09-05 00:22:34 +03:00
parent d14ef0d3f0
commit b810893270
3 changed files with 1 additions and 36 deletions

View File

@ -1,18 +0,0 @@
<%#
# String Index Partial
This partial renders a string attribute
to be displayed on a resource's index page.
By default, the attribute is rendered as a truncated string.
## Local variables:
- `field`:
An instance of [Administrate::Field::String][1].
A wrapper around the String pulled from the database.
[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/String
%>
<%= field.truncate %>

View File

@ -1,18 +0,0 @@
<%#
# String Show Partial
This partial renders a string attribute,
to be displayed on a resource's show page.
By default, the attribute is rendered as an unformatted string.
## Local variables:
- `field`:
An instance of [Administrate::Field::String][1].
A wrapper around the String pulled from the database.
[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/String
%>
<%= format_text_field field.data %>

View File

@ -0,0 +1 @@
%span= field.data