Sha256: 99a0d676169f0d284fd2b5b9ff217e8c5518cad83390978a4216352ceecc8f3a

Contents?: true

Size: 1.94 KB

Versions: 24

Compression:

Stored size: 1.94 KB

Contents

<% yield p = np %>

<% divider ||= nil %>
<% no_background ||= false %>
<% title_size ||= "text-xl" %>
<% body = p.content_for(:body) || p.content_for(:raw_body) %>
<% pagy ||= nil %>

<div class="<%= "bg-white rounded-md shadow dark:bg-darkPrimary-700" unless no_background %> overflow-hidden">
  <div class="py-6 px-8 space-y-2 <%= 'border-b shadow-sm dark:border-darkPrimary-600' if divider %>">
    <% if p.content_for? :title %>
      <h2 class="<%= title_size %> font-semibold dark:text-white">
        <%= p.content_for :title %>
      </h2>
    <% end %>

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

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

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

    <% if p.content_for? :actions || pagy %>
      <div class="pb-7 px-8 space-y-7">
        <div class="sm:flex">
          <div class="flex-1 space-x">
            <%= p.content_for :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 p.content_for? :footer %>
    <div class="py-4 px-8 bg-gray-50 border-t dark:bg-darkPrimary-800 dark:border-darkPrimary-600">
      <%= p.content_for :footer %>
    </div>
  <% end %>

  <% if p.content_for? :raw_footer %>
    <div class="bg-gray-50 dark:bg-darkPrimary-800">
      <%= p.content_for :raw_footer %>
    </div>
  <% end %>
</div>

Version data entries

24 entries across 24 versions & 5 rubygems

Version Path
bullet_train-themes-light-1.0.35 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.0.34 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.0.33 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.0.32 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.0.30 app/views/themes/light/_box.html.erb
bullet_train-themes-tester-1.0.1 app/views/themes/tester/_box.html.erb
bullet_train-themes-light-1.0.29 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.0.28 app/views/themes/light/_box.html.erb
bullet_train-themes-custom-1.0 app/views/themes/custom/_box.html.erb
bullet_train-themes-testing-1.0 app/views/themes/testing/_box.html.erb
bullet_train-themes-tester-1.0 app/views/themes/tester/_box.html.erb
bullet_train-themes-light-1.0.27 app/views/themes/light/_box.html.erb
bullet_train-themes-hayabusa-1.3 app/views/themes/hayabusa/_box.html.erb
bullet_train-themes-hayabusa-1.2 app/views/themes/hayabusa/_box.html.erb
bullet_train-themes-hayabusa-1.1 app/views/themes/hayabusa/_box.html.erb
bullet_train-themes-light-1.0.26 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.0.25 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.0.24 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.0.23 app/views/themes/light/_box.html.erb
bullet_train-themes-light-1.0.22 app/views/themes/light/_box.html.erb