Basic feature implemented, very basic poc
This commit is contained in:
parent
216089a3e7
commit
48c0067076
118 changed files with 2113 additions and 20 deletions
16
app/views/layouts/_flash.html.erb
Normal file
16
app/views/layouts/_flash.html.erb
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<% if flash[:alert] || flash[:notice] %>
|
||||
<div class="container mt-3 mb-3">
|
||||
<% if flash[:alert] %>
|
||||
<div class="alert alert-danger" role="alert">
|
||||
<%= flash[:alert] %><% flash.delete(:alert) %>
|
||||
</div>
|
||||
<% end %>
|
||||
|
||||
<% if flash[:notice] %>
|
||||
<div class="alert alert-info" role="alert">
|
||||
<%= flash[:notice] %>
|
||||
<% flash.delete(:notice) %>
|
||||
</div>
|
||||
<% end %>
|
||||
</div>
|
||||
<% end %>
|
||||
Loading…
Add table
Add a link
Reference in a new issue