Sha256: 51c553c6555fb5dffbe8e74421358c04a2f34544818d1c3dd373be943ae932a6

Contents?: true

Size: 1.09 KB

Versions: 17

Compression:

Stored size: 1.09 KB

Contents

<% 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] %>
      <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 %>&hellip;<% end %></code>
      </div>
    <% else %>
      <code class="text-pink-600 font-light"><%= object.send(source || attribute) %></code>
    <% end %>
  <% end %>
<% end %>

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
bullet_train-themes-tailwind_css-1.2.27 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.2.26 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.2.25 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.2.24 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.2.23 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.2.22 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.2.21 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.2.20 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.2.19 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.2.18 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.2.17 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.2.16 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.2.15 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.2.14 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.2.13 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.2.12 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.2.11 app/views/themes/tailwind_css/attributes/_code.html.erb