Sha256: 6931f744ba31a3eac6f949c5fd43fcdfea337dcc4de19295474dc2fdc559e153

Contents?: true

Size: 354 Bytes

Versions: 18

Compression:

Stored size: 354 Bytes

Contents

<%#
# Time Show Partial

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

By default, the attribute is rendered as a text tag.

## Local variables:

- `field`:
  An instance of [Administrate::Field::Time][1].
  A wrapper around the time attributes pulled from the model.

%>

<%= field.data.strftime("%I:%M%p").to_s %>

Version data entries

18 entries across 18 versions & 4 rubygems

Version Path
administrate-0.14.0 app/views/fields/time/_show.html.erb
viniBaxterDesk-22.0.0 app/views/fields/time/_show.html.erb
viniBaxterDesk-0.21.0 app/views/fields/time/_show.html.erb
viniBaxterDesk-0.20.0 app/views/fields/time/_show.html.erb
viniBaxterDesk-0.14.0 app/views/fields/time/_show.html.erb
viniBaxterDesk-0.13.2 app/views/fields/time/_show.html.erb
viniBaxterDesk-0.13.1 app/views/fields/time/_show.html.erb
administrate-0.13.0 app/views/fields/time/_show.html.erb
administrate-0.12.0 app/views/fields/time/_show.html.erb
administrate-0.11.0 app/views/fields/time/_show.html.erb
semantic-administrate-0.10.1 app/views/fields/time/_show.html.erb
semantic-administrate-0.10.0 app/views/fields/time/_show.html.erb
administrate-0.10.0 app/views/fields/time/_show.html.erb
administrate-field-time-0.0.5 app/views/fields/time/_show.html.erb
administrate-field-time-0.0.4 app/views/fields/time/_show.html.erb
administrate-field-time-0.0.3 app/views/fields/time/_show.html.erb
administrate-field-time-0.0.2 app/views/fields/time/_show.html.erb
administrate-field-time-0.0.1 app/views/fields/time/_show.html.erb