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
administrate-1.0.0.beta2 app/views/fields/date_time/_show.html.erb
administrate-1.0.0.beta1 app/views/fields/date_time/_show.html.erb
administrate-0.20.1 app/views/fields/date_time/_show.html.erb
administrate-0.20.0 app/views/fields/date_time/_show.html.erb
administrate-0.19.0 app/views/fields/date_time/_show.html.erb
administrate-0.18.0 app/views/fields/date_time/_show.html.erb
administrate-0.17.0 app/views/fields/date_time/_show.html.erb
administrate-0.16.0 app/views/fields/date_time/_show.html.erb
administrate-0.15.0 app/views/fields/date_time/_show.html.erb
administrate-0.14.0 app/views/fields/date_time/_show.html.erb
viniBaxterDesk-22.0.0 app/views/fields/date_time/_show.html.erb
viniBaxterDesk-0.21.0 app/views/fields/date_time/_show.html.erb
viniBaxterDesk-0.20.0 app/views/fields/date_time/_show.html.erb
viniBaxterDesk-0.14.0 app/views/fields/date_time/_show.html.erb
viniBaxterDesk-0.13.2 app/views/fields/date_time/_show.html.erb
viniBaxterDesk-0.13.1 app/views/fields/date_time/_show.html.erb
administrate-0.13.0 app/views/fields/date_time/_show.html.erb
administrate-0.12.0 app/views/fields/date_time/_show.html.erb
administrate-0.11.0 app/views/fields/date_time/_show.html.erb
semantic-administrate-0.10.1 app/views/fields/date_time/_show.html.erb