Sha256: c563133867e4bde18f6d33d3b6cbd79e3d9a9775a098dd8a6b2252653a7f53a1

Contents?: true

Size: 473 Bytes

Versions: 28

Compression:

Stored size: 473 Bytes

Contents

<%#
# DateTime Show Partial

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

By default, the attribute is rendered
as a localized date & time string.

## Local variables:

- `field`:
  An instance of [Administrate::Field::DateTime][1].
  A wrapper around the DateTime value pulled from the database.

[1]: http://www.rubydoc.info/gems/administrate/Administrate/Field/DateTime
%>

<% if field.data %>
  <%= field.datetime %>
<% end %>

Version data entries

28 entries across 28 versions & 3 rubygems

Version Path
semantic-administrate-0.10.0 app/views/fields/date_time/_show.html.erb
administrate-0.10.0 app/views/fields/date_time/_show.html.erb
semantic-administrate-0.1.1 app/views/fields/date_time/_show.html.erb
administrate-0.9.0 app/views/fields/date_time/_show.html.erb
semantic-administrate-0.1.0 app/views/fields/date_time/_show.html.erb
administrate-0.8.1 app/views/fields/date_time/_show.html.erb
administrate-0.8.0 app/views/fields/date_time/_show.html.erb
administrate-0.7.0 app/views/fields/date_time/_show.html.erb