Sha256: a8a4039494a165ad6c77f9713634f56f26bb4a410666f4d5d581fdfa1793519b

Contents?: true

Size: 659 Bytes

Versions: 1

Compression:

Stored size: 659 Bytes

Contents

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

<% if object.public_send(attribute) || display_when_blank %>
  <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %>
    <% if object.public_send(attribute).present? %>
      <%= t("global.time_ago", time: time_ago_in_words(object.send(attribute))) %>
    <% 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/_days_ago.html.erb