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 %>&hellip;<% 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

Version Path
bullet_train-themes-tailwind_css-1.10.0 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.9.0 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.8.5 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.8.4 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.8.3 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.8.2 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.8.1 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.8.0 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.7.23 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.7.22 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.7.21 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.7.20 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.7.19 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.7.18 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.7.17 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.7.16 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.7.15 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.7.14 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.7.13 app/views/themes/tailwind_css/attributes/_code.html.erb
bullet_train-themes-tailwind_css-1.7.12 app/views/themes/tailwind_css/attributes/_code.html.erb