Sha256: 964b3942f7acba5bee6fe4fa857c1e9cf07def83746f62dd1c50dd5d9affa110

Contents?: true

Size: 679 Bytes

Versions: 3

Compression:

Stored size: 679 Bytes

Contents

<%#
# Code Show Partial

This partial renders a text attribute,
to be displayed on a resource's show page.

By default, the attribute is rendered as a code block with the data

## Local variables:

- `field`:
  An instance of [Administrate::Field::Code][1].
  A wrapper around the [Administrate::Field::Text][2] field.

[1]: http://www.rubydoc.info/gems/administrate-field-code/Administrate/Field/Code
[2]: http://www.rubydoc.info/gems/administrate/Administrate/Field/Text
%>

<pre style="
  font-size: 12px;
  background: rgba(0, 0, 0, .1);
  padding: 10px;
  margin: -10px;
  border: 1px solid rgba(0, 0, 0, .3);
"><code><%= field.to_s %></code></pre>

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
administrate-field-code-0.2.1 app/views/fields/code/_show.html.erb
administrate-field-code-0.2.0 app/views/fields/code/_show.html.erb
administrate-field-code-0.1.0 app/views/fields/code/_show.html.erb