diff options
Diffstat (limited to 'shardweb/lib/shard_web/templates/layout/flashes.html.eex')
-rw-r--r-- | shardweb/lib/shard_web/templates/layout/flashes.html.eex | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/shardweb/lib/shard_web/templates/layout/flashes.html.eex b/shardweb/lib/shard_web/templates/layout/flashes.html.eex new file mode 100644 index 0000000..5371f43 --- /dev/null +++ b/shardweb/lib/shard_web/templates/layout/flashes.html.eex @@ -0,0 +1,24 @@ + + <%= if get_flash(@conn, :info) do %> + <div class="row"> + <div class="col-lg-12"> + <div class="alert alert-info alert-dismissable"> + <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> + <i class="fa fa-info-circle"></i> <%= get_flash(@conn, :info) %> + </div> + </div> + </div> + <% end %> + <!-- /.row --> + + <%= if get_flash(@conn, :error) do %> + <div class="row"> + <div class="col-lg-12"> + <div class="alert alert-warning alert-dismissable"> + <button type="button" class="close" data-dismiss="alert" aria-hidden="true">×</button> + <i class="fa fa-info-circle"></i> <%= get_flash(@conn, :error) %> + </div> + </div> + </div> + <% end %> + <!-- /.row --> |