Sha256: d1d7b9b247a521b7975e9a8669046445976dae2fe5ad213caff17bdf5c1a2a4c
Contents?: true
Size: 1014 Bytes
Versions: 8
Compression:
Stored size: 1014 Bytes
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 |partial| %> <% partial.content_for :title, "Title" %> <% partial.content_for :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 %> <% partial.content_for :body, "Lorem ipsum dolor sit amet…" %> <% 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
8 entries across 8 versions & 1 rubygems