aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/sidebar_module.rb
Commit message (Collapse)AuthorAgeFilesLines
* Clean up sidebar modules.Harald Eilertsen2013-12-251-0/+13
Rewrite the _sidebar_module partial to render only one module, and to not make any assumptions about the contents of a module. (Except that it has a title and a body.) Move the actual module logic into model classes, and use the ActiveModel magic to have it find it's own partial. Now we have the view logic for each module in it's own partial that in turn renders as part of the _sidebar_module partial. Only implementation this far is the blog-category module listing the latest blog entries within each category.