Sha256: 9d768e7ee0af17eeb7d3447f52920687327410bcc49d78e4a5ba1ab440301e0c

Contents?: true

Size: 471 Bytes

Versions: 8

Compression:

Stored size: 471 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 %>
  <%= l field.data %>
<% end %>

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
administrate-0.2.0 app/views/fields/date_time/_show.html.erb
administrate-0.2.0.rc1 app/views/fields/date_time/_show.html.erb
administrate-0.1.5 app/views/fields/date_time/_show.html.erb
administrate-0.1.4 app/views/fields/date_time/_show.html.erb
administrate-0.1.3 app/views/fields/date_time/_show.html.erb
administrate-0.1.2 app/views/fields/date_time/_show.html.erb
administrate-0.1.1 app/views/fields/date_time/_show.html.erb
administrate-0.1.0 app/views/fields/date_time/_show.html.erb