Permalink
Browse files

Main HTML template cleanup

  • Loading branch information...
1 parent 8fdd2f8 commit 2b2bb5c404fd15abbffb2d63b8dd0ce3cc608119 @nmanzi committed Oct 7, 2011
Showing with 7 additions and 6 deletions.
  1. +7 −6 app/views/layouts/application.html.erb
@@ -1,7 +1,7 @@
<!DOCTYPE html>
<html>
<head>
- <title>Subbysub</title>
+ <title>SubbySub</title>
<%= stylesheet_link_tag "application" %>
<%= javascript_include_tag "application" %>
<%= csrf_meta_tags %>
@@ -10,18 +10,19 @@
<div class="topbar">
<div class="fill">
<div class="container">
- <a class="brand" href="#">Subbysub</a>
+ <a class="brand" href="#">SubbySub</a>
</div>
</div>
</div>
<div class="container" style="padding-top: 60px">
- <% if flash[:notice] %><div class="alert-message success fade in" data-alert="data-alert"><a class="close" href="#">x</a><%= flash[:notice] %></div>
+ <% flash.each do |name, msg| %>
+ <%= content_tag :div, :id => "flash#{name}", :class => "alert-message fade in #{name}", 'data-alert' => 'data-alert' do %>
+ <a class="close" href="#">x</a>
+ <%= msg %>
+ <% end %>
<% end %>
- <% if flash[:error] %><div class="alert-message error fade in" data-alert="data-alert"><a class="close" href="#">x</a><%= flash[:error] %></div>
- <% end %>
-
<%= yield %>
</div>

0 comments on commit 2b2bb5c

Please sign in to comment.