Sha256: d810844937534e2b10bdb2d53e3fb1df35cae596748612ed805dfb1eb85685cd

Contents?: true

Size: 471 Bytes

Versions: 6

Compression:

Stored size: 471 Bytes

Contents

<%#
# DateTime Index Partial

This partial renders a datetime attribute,
to be displayed on a resource's index 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.date %>
<% end %>

Version data entries

6 entries across 6 versions & 2 rubygems

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