aboutsummaryrefslogtreecommitdiffstats
path: root/app/views
diff options
context:
space:
mode:
authorHarald Eilertsen <haraldei@andeuin.net>2013-11-14 21:29:35 +0100
committerHarald Eilertsen <haraldei@andeuin.net>2013-11-14 21:29:35 +0100
commit4d49cfaa0be4a9bb2adf1d5cb27e42a29b75572e (patch)
tree58308002eada26c509744d1278a90163ca02df48 /app/views
parent55599e2e4a9a4e33b8723cc355afd99633c5cc46 (diff)
downloadhmnoweb-4d49cfaa0be4a9bb2adf1d5cb27e42a29b75572e.tar.gz
hmnoweb-4d49cfaa0be4a9bb2adf1d5cb27e42a29b75572e.tar.bz2
hmnoweb-4d49cfaa0be4a9bb2adf1d5cb27e42a29b75572e.zip
Begin automatic filling of sidebars with content.
List blog categories and 10 most resent posts in each category in the left sidebar.
Diffstat (limited to 'app/views')
-rw-r--r--app/views/common/_left_sidebar.html.erb9
1 files changed, 8 insertions, 1 deletions
diff --git a/app/views/common/_left_sidebar.html.erb b/app/views/common/_left_sidebar.html.erb
index 72f83bb..bf3b3a8 100644
--- a/app/views/common/_left_sidebar.html.erb
+++ b/app/views/common/_left_sidebar.html.erb
@@ -1,3 +1,10 @@
<div id="left_sidebar">
-No content yet, but that will hopefully change soon!
+ <% @sidebar_contents.keys.each do |c| -%>
+ <div class="sidebar_content">
+ <h1><%= c %></h1>
+ <ul><%- @sidebar_contents[c].each do |p| %>
+ <li><%= p.title %></li>
+ <% end %></ul>
+ </div>
+ <% end -%>
</div>