]> git.openstreetmap.org Git - rails.git/blobdiff - app/views/layouts/_content.html.erb
Frontpage redesign
[rails.git] / app / views / layouts / _content.html.erb
diff --git a/app/views/layouts/_content.html.erb b/app/views/layouts/_content.html.erb
new file mode 100644 (file)
index 0000000..e6e737c
--- /dev/null
@@ -0,0 +1,15 @@
+<div id="content">
+  <% if content_for? :content %>
+    <%= yield :content %>
+  <% else %>
+    <%= render :partial => "layouts/flash", :locals => { :flash => flash } %>
+    <% if content_for? :heading %>
+      <div class="content-heading">
+        <%= yield :heading %>
+      </div>
+    <% end %>
+    <div class="content-body">
+      <%= yield %>
+    </div>
+  <% end %>
+</div>