<!DOCTYPE html>
<html>
<head>
  <title><%= content_for?(:title) ? content_for(:title) : "District Housing" %></title>
  <meta name="viewport" content="initial-scale=1">
  <%= stylesheet_link_tag    "application", :media => "all" %>
  <%= javascript_include_tag "application" %>

  <!--font awesome-->
  <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
  <link href='http://fonts.googleapis.com/css?family=Montserrat:700' rel='stylesheet' type='text/css'>
  <%= csrf_meta_tags %>

</head>

<body>

  <%= render "layouts/navbar" %>

  <div class="container">

    <% if flash[:alert] %>
      <p class="bg-danger"><%= flash[:alert] %></p>
    <% end %>

    <%= yield %>

  </div>

  <%= image_tag "district-housing-logo-small.png", class: "center-block footer-logo" %>
  <%= yield :javascript %>

</body>
</html>

<!DOCTYPE html>
<html>
<head>
  <title><%= content_for?(:title) ? content_for(:title) : "District Housing" %></title>
  <meta name="viewport" content="initial-scale=1">
  <%= stylesheet_link_tag    "application", :media => "all" %>
  <%= javascript_include_tag "application" %>

  <!--font awesome-->
  <link href="//netdna.bootstrapcdn.com/font-awesome/3.2.1/css/font-awesome.css" rel="stylesheet">
  <link href='http://fonts.googleapis.com/css?family=Montserrat:700' rel='stylesheet' type='text/css'>
  <%= csrf_meta_tags %>

</head>

<body>

  <%= render "layouts/navbar" %>

  <div class="container">

    <% if flash[:alert] %>
      <p class="bg-danger"></p>
      <div class="alert alert-danger alert-dismissible" role="alert">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <%= flash[:alert] %>
      </div>
    <% end %>

    <% if flash[:notice] %>
      <p class="bg-danger"></p>
      <div class="alert alert-info alert-dismissible" role="alert">
        <button type="button" class="close" data-dismiss="alert" aria-label="Close"><span aria-hidden="true">&times;</span></button>
        <%= flash[:notice] %>
      </div>
    <% end %>

    <%= yield %>

  </div>

  <%= image_tag "district-housing-logo-small.png", class: "center-block footer-logo" %>
  <%= yield :javascript %>

</body>
</html>

Use Bootstrap dismissable alerts for flash notices
Use Bootstrap dismissable alerts for flash notices
