Commit d1750985c7e167d6c1dd9598f9335f4615940b9f

Authored by Dan Croak
1 parent a26b8be8

keeping layouts for layouts. moving flashes & javascript to new app/views/shared directory.

app/views/layouts/_flashes.html.erb
... ... @@ -1,5 +0,0 @@
1   -<div id="flash">
2   - <% flash.each do |key, value| -%>
3   - <div id="flash_<%= key %>"><%=h value %></div>
4   - <% end -%>
5   -</div>
app/views/layouts/_javascript.html.erb
... ... @@ -1,2 +0,0 @@
1   -<%= javascript_include_tag :defaults, :cache => true %>
2   -<%= yield :javascript %>
app/views/layouts/application.html.erb
... ... @@ -7,8 +7,8 @@
7 7 <%= stylesheet_link_tag 'screen', :media => 'all', :cache => true %>
8 8 </head>
9 9 <body class="<%= body_class %>">
10   - <%= render :partial => 'layouts/flashes' -%>
  10 + <%= render :partial => 'shared/flashes' -%>
11 11 <%= yield %>
12   - <%= render :partial => 'layouts/javascript' %>
  12 + <%= render :partial => 'shared/javascript' %>
13 13 </body>
14 14 </html>
... ...
app/views/shared/_flashes.html.erb 0 → 100644
... ... @@ -0,0 +1,5 @@
  1 +<div id="flash">
  2 + <% flash.each do |key, value| -%>
  3 + <div id="flash_<%= key %>"><%=h value %></div>
  4 + <% end -%>
  5 +</div>
... ...
app/views/shared/_javascript.html.erb 0 → 100644
... ... @@ -0,0 +1,2 @@
  1 +<%= javascript_include_tag :defaults, :cache => true %>
  2 +<%= yield :javascript %>
... ...