Sha256: 3acc9eaaf721988ac9fc3d35f94a52ce3fa17e42ca14d76efdc7cdf4b77b91cc

Contents?: true

Size: 1.07 KB

Versions: 5

Compression:

Stored size: 1.07 KB

Contents

<section id="flash">
  <div class="page-header">
    <h1>Flash
      <small>bootstrap flash helper</small>
    </h1>
  </div>

  <p>Flash helpers wraps bootstrap alerts component.</p>

  <h3>Default</h3>

  <div class="bs-docs-example">
    <%= f('warning') %>
  </div>


<pre class="prettyprint linenums lang-erb">
&lt;%= f('warning') %&gt;
</pre>

  <h3>With options</h3>

  <div class="bs-docs-example">
    <%= f('error', type: :error) %>
    <%= f('success', type: :success) %>
    <%= f('info', type: :info) %>
    <%= f(type: :info, block: true, closable: false) do %>
        <h4>This is an Info</h4>
        <p>The information here is a demo with block and without close button.</p>
    <% end %>
  </div>


<pre class="prettyprint linenums lang-erb">
&lt;%= f('error', type: :error) %&gt;
&lt;%= f('success', type: :success) %&gt;
&lt;%= f('info', type: :info) %&gt;
&lt;%= f(type: :info, block: true, closable: false) do %&gt;
  &lt;h4&gt;This is an Info&lt;/h4&gt;
  &lt;p&gt;The information here is a demo with block and without close button.&lt;/p&gt;
&lt;% end %&gt;
</pre>

</section>

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
bs-helper-0.1.4 test/dummy/app/views/components/_flash.html.erb
bs-helper-0.1.3 test/dummy/app/views/components/_flash.html.erb
bs-helper-0.1.2 test/dummy/app/views/components/_flash.html.erb
bs-helper-0.1.1 test/dummy/app/views/components/_flash.html.erb
bs-helper-0.1.0 test/dummy/app/views/components/_flash.html.erb