Sha256: 0f41fdd159b013191392035f8f1c10e11dbfd25495e65f5f8c6c193c652400cb

Contents?: true

Size: 535 Bytes

Versions: 6

Compression:

Stored size: 535 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 %>
  <div class="bg-gray-50 p-3 rounded-md shadow-sm">
    <%= field.datetime %>
  </div>
<% end %>

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
administrate_tailwind_theme-0.0.6 app/views/fields/date_time/_show.html.erb
administrate_tailwind_theme-0.0.5 app/views/fields/date_time/_show.html.erb
administrate_tailwind_theme-0.0.4 app/views/fields/date_time/_show.html.erb
administrate_tailwind_theme-0.0.3 app/views/fields/date_time/_show.html.erb
administrate_tailwind_theme-0.0.2 app/views/fields/date_time/_show.html.erb
administrate_tailwind_theme-0.0.1 app/views/fields/date_time/_show.html.erb