Sha256: e05a65e8c32f5b8e5a19719f22275dc8ed8d424ca03688852c634e7cf02da0ad

Contents?: true

Size: 735 Bytes

Versions: 1

Compression:

Stored size: 735 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(object.public_send(attribute), **local_assigns.slice(:format), **local_assigns.slice(:date_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.html.erb