Sha256: 0928a33384c2d260b905a6a2993ecf7ab0bc6a9cc1b47de366caa99ee78ef1d5
Contents?: true
Size: 1.24 KB
Versions: 2
Compression:
Stored size: 1.24 KB
Contents
<% showcase.description do %> <p>Partial to wrap an app page, like a #show view.</p> <p>It's composed of three content sections:</p> <p> <ol> <li>render "shared/title", with the title and actions provided.</li> <li>render "shared/notices", for any account level notices.</li> <li>Outputs the passed body.</li> </ol> </p> <% end %> <% showcase.sample "Basic" do %> <%= render "shared/page" do |page| %> <% page.title "Title" %> <% page.actions do %> <%= link_to "Home", root_url, class: "border-2 p-2 rounded-full border-indigo-300" %> <%= link_to "Another link", root_url, class: "border-2 p-2 rounded-full border-indigo-300" %> <% end %> <% page.body "Lorem ipsum dolor sit amet…" %> <% end %> <% end %> <% showcase.sample "With box" do %> <%= render "shared/page", title: "Page Title" do |page| %> <% page.body.render "shared/box" do |box| %> <% box.title "Box Title" %> <% box.description "Description" %> <% box.body "Lorem ipsum dolor sit amet…" %> <% end %> <% end %> <% end %> <% showcase.options.context :nice_partials do |o| %> <% o.optional.content_block :title %> <% o.optional.content_block :actions %> <% o.optional.content_block :body %> <% end %>
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
bullet_train-themes-light-1.2.21 | app/views/showcase/previews/partials/_page.html.erb |
bullet_train-themes-light-1.2.20 | app/views/showcase/previews/partials/_page.html.erb |