aboutsummaryrefslogtreecommitdiffstats
path: root/app/decorators/models/sidebar_post_decorator.rb
Commit message (Collapse)AuthorAgeFilesLines
* Add license header to files.Harald Eilertsen2018-06-171-0/+15
|
* Move markup from decorator to template.Harald Eilertsen2013-12-231-8/+1
| | | | | Note to self, use model decorators to massage model data, but leave the markup to the views where it belong.
* Title of sidebar entry links to full blog post.Harald Eilertsen2013-12-231-1/+1
|
* Add sidebar_module partial and SidebarPostDecorator class.Harald Eilertsen2013-12-231-0/+18
Also did some code cleanup in PagesControllerDecorator::populate_sidebars. The controller will now populate left and right sidebars (only left for now,) while the SidebarPostDecorator will provide the markup for each post that is to be shown in a sidebar. The plan is to further expand the system with other Sidebar- Decorators, so each item can be rendered using the same in the partial.