Sha256: 42c682240672371cad2a57761cb8ea056866e3714be5223e7d2d073bd3f92e9e

Contents?: true

Size: 781 Bytes

Versions: 1

Compression:

Stored size: 781 Bytes

Contents

<% object ||= current_attributes_object %>
<% strategy ||= current_attributes_strategy || :none %>
<% url ||= nil %>
<% default_message = local_assigns[:default_message] || t('global.formats.timestamp_unavailable') %>
<% display_when_blank = local_assigns[:display_when_blank] || false %>

<% if object.public_send(attribute).present? || display_when_blank %>
  <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
    <% if object.public_send(attribute).present? %>
      <%= display_date_and_time(object.public_send(attribute), **local_assigns.slice(:format), **local_assigns.slice(:date_format), **local_assigns.slice(:time_format)) %>
    <% else %>
      <%= default_message %>
    <% end %>
  <% end %>
<% end %>

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
bullet_train-themes-1.10.0 app/views/themes/base/attributes/_date_and_time.html.erb