app/views/showcase/previews/partials/_page.html.erb in bullet_train-themes-light-1.2.21 vs app/views/showcase/previews/partials/_page.html.erb in bullet_train-themes-light-1.2.22
- old
+ new
@@ -1,17 +1,15 @@
<% 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 class="py-4">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>
+ <ol class="list-decimal list-inside">
+ <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>
<% end %>
<% showcase.sample "Basic" do %>
<%= render "shared/page" do |page| %>
<% page.title "Title" %>
@@ -29,9 +27,15 @@
<% box.title "Box Title" %>
<% box.description "Description" %>
<% box.body "Lorem ipsum dolor sit amet…" %>
<% end %>
<% end %>
+<% end %>
+
+<% showcase.sample "With notices" do %>
+ <% flash.now[:notice] = "Success Notice" %>
+ <% flash.now[:error] = "Error Notice" %>
+ <%= render "shared/page", title: "Title" %>
<% end %>
<% showcase.options.context :nice_partials do |o| %>
<% o.optional.content_block :title %>
<% o.optional.content_block :actions %>