summaryrefslogtreecommitdiff
path: root/source/layouts
diff options
context:
space:
mode:
authorLars Henrik Mai <lars.mai@kontinui.de>2014-04-28 09:52:46 +0200
committerLars Henrik Mai <lars.mai@kontinui.de>2014-05-02 13:31:06 +0200
commit0ca1257cf4ecbea549c0587c15bebf722b9b6ac6 (patch)
treeeb9ebf4baa5e46c46c33ee0bd504d967cd5c2f6b /source/layouts
parentc0c4a9d92911308f0c242ab3303109a5b790967b (diff)
implement new navigation structure (WIP)
Diffstat (limited to 'source/layouts')
-rw-r--r--source/layouts/layout.erb19
1 files changed, 7 insertions, 12 deletions
diff --git a/source/layouts/layout.erb b/source/layouts/layout.erb
index 5ba23c1..b0cba82 100644
--- a/source/layouts/layout.erb
+++ b/source/layouts/layout.erb
@@ -28,27 +28,22 @@
<div class="col-md-3">
<h1>sublab</h1>
</div>
- <div id="moods" class="col-md-9">
- <%= yield_content :moods %>
- </div>
</div>
</div>
<div class="row">
-
- <div class="col-md-3">
<%= partial "navigation" %>
- <hr />
- <%= partial "banner" %>
- <hr />
- <%= partial "status" %>
- </div>
+ </div>
+ <% if (section = current_page.data.section) %>
+ <%= partial "nav_#{section}" %>
+ <% end %>
+
+ <div class="row">
<div class="col-md-9">
<%= yield %>
</div>
-
- </div> <!-- end main row -->
+ </div>
</div> <!-- end container -->
</body>