Sha256: e3c13af94e579a3668129b8305be80aeb38f4feb245670a01ee432fb810f7de5
Contents?: true
Size: 1.1 KB
Versions: 107
Compression:
Stored size: 1.1 KB
Contents
<% object ||= current_attributes_object %> <% strategy ||= current_attributes_strategy || :none %> <% source ||= nil %> <% url ||= nil %> <% secret ||= false %> <% if object.public_send(attribute).present? %> <%= render 'shared/attributes/attribute', object: object, attribute: attribute, strategy: strategy, url: url do %> <% if secret && source.nil? %> <% attribute = object.public_send(attribute) %> <% attribute_short = attribute[0..4] %> <div class="flex flex-row"> <details class="group peer order-2"> <summary class="list-none text-xs text-primary-500 dark:text-slate-200 hover:text-primary-600 hover:underline group-open:hidden cursor-pointer">Show</summary> <code class="text-pink-600 font-light"><%= attribute %></code> </details> <code class="order-1 mr-2 peer-open:hidden text-pink-600 font-light"><%= attribute_short %><% if attribute_short.length < attribute.length %>…<% end %></code> </div> <% else %> <code class="text-pink-600 font-light"><%= object.send(source || attribute) %></code> <% end %> <% end %> <% end %>
Version data entries
107 entries across 107 versions & 1 rubygems