Sha256: ba8f164e59d4f2239760df9767572d83557761fecad947cdff5c871f37cc9385

Contents?: true

Size: 1.95 KB

Versions: 90

Compression:

Stored size: 1.95 KB

Contents

<% divider ||= nil %>
<% no_background ||= false %>
<% title_size ||= nil %>
<% title_padding ||= nil %>
<% border_top ||= false %>
<% body = partial.body.presence || partial.raw_body.presence %>
<% pagy ||= nil %>

<div class="<%= "bg-white rounded-md shadow dark:bg-slate-700 dark:bg-opacity-50" unless no_background %> overflow-hidden <%= border_top ? "border-t dark:border-slate-500" : "" %>">
  <div class="py-6 px-8 <%= title_padding %> space-y-2 <%= 'border-b shadow-sm dark:border-slate-600' if divider %>">
    <% if partial.title? %>
      <h2 class="text-xl font-semibold dark:text-white <%= title_size %>">
        <%= partial.title %>
      </h2>
    <% end %>

    <% if partial.description? %>
      <p class="text-slate-400 font-light leading-normal">
        <%= partial.description %>
      </p>
    <% end %>
  </div>

  <div class="space-y-4">
    <% if partial.table? %>
      <div class="box-table <%= divider ? 'mt-4' : '-mt-1' %> pb-0.5">
        <%= partial.table %>
      </div>
    <% end %>

    <% if body %>
      <div class="<%= "pt-7 px-8 space-y-7 #{partial.actions? ? 'pb-3' : 'pb-7'}" unless partial.raw_body? %>">
        <div class="space-y-4 <%= '-mt-4' unless divider %>">
          <%= body %>
        </div>
      </div>
    <% end %>

    <% if partial.actions? || pagy %>
      <div class="pb-7 px-8 space-y-7">
        <div class="sm:flex">
          <div class="flex-1 space-x">
            <%= partial.actions %>
          </div>
          <% if pagy && pagy.pages > 1 %>
            <div class="flex-0 mt-3 sm:mt-0">
              <%== pagy_nav(pagy) %>
            </div>
          <% end %>
        </div>
      </div>
    <% end %>
  </div>

  <% if partial.footer? %>
    <div class="py-4 px-8 bg-slate-50 border-t dark:bg-slate-900 dark:border-slate-600">
      <%= partial.footer %>
    </div>
  <% end %>

  <% if partial.raw_footer? %>
    <div class="bg-slate-50 dark:bg-slate-900">
      <%= partial.raw_footer %>
    </div>
  <% end %>
</div>

Version data entries

90 entries across 90 versions & 1 rubygems

Version Path
bullet_train-themes-light-1.7.1 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.7.0 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.6.38 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.6.37 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.6.36 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.6.35 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.6.34 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.6.33 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.6.32 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.6.31 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.6.30 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.6.29 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.6.28 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.6.27 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.6.26 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.6.25 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.6.24 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.6.23 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.6.22 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.6.21 app/views/themes/light/_box.html.erb