% object ||= current_attributes_object %> <% strategy ||= current_attributes_strategy || :none %> <% source ||= nil %> <% url ||= nil %> <% secret ||= false %> <% if object.send(attribute).present? %> <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %> <% if secret && source.nil? %> <% attribute = object.send(attribute) %> <% attribute_short = attribute[0..4] %>
<%= attribute %>
<%= attribute_short %><% if attribute_short.length < attribute.length %>…<% end %>
<%= object.send(source || attribute) %>
<% end %>
<% end %>
<% end %>