parent
d14ef0d3f0
commit
b810893270
|
@ -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 %>
|
|
@ -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 %>
|
|
@ -0,0 +1 @@
|
|||
%span= field.data
|
Loading…
Reference in New Issue