Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Double-click to select attribute text #1484

Merged
merged 2 commits into from Dec 18, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions app/views/fields/string/_show.html.erb
Expand Up @@ -4,7 +4,7 @@
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.
By default, the attribute is rendered as text with whitespace preserved.

## Local variables:

Expand All @@ -15,4 +15,4 @@ By default, the attribute is rendered as an unformatted string.
[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/String
%>

<%= field.data %>
<div class="preserve-whitespace"><%= field.data %></div>
5 changes: 2 additions & 3 deletions app/views/fields/text/_show.html.erb
Expand Up @@ -4,8 +4,7 @@
This partial renders a text attribute,
to be displayed on a resource's show page.

By default, the attribute is rendered as text with
whitespace preserved.
By default, the attribute is rendered as text with whitespace preserved.

## Local variables:

Expand All @@ -16,4 +15,4 @@ whitespace preserved.
[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Text
%>

<span class="preserve-whitespace"><%= field.data %></span>
<div class="preserve-whitespace"><%= field.data %></div>