aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/common/_right_sidebar.html.erb
Commit message (Collapse)AuthorAgeFilesLines
* Add license header to files.Harald Eilertsen2018-06-171-0/+16
|
* Revert "Drop Sjefen-melder section."Harald Eilertsen2018-01-131-0/+6
| | | | This reverts commit 9859504bb8a1dd94dbd2eb33984c00d11041d2e1.
* Revert "Disable most of right sidebar..."Harald Eilertsen2018-01-131-2/+2
| | | | This reverts commit 8a5db8a2844d9356a87f95cf7d784c8faf7f592d.
* Disable most of right sidebar...Harald Eilertsen2018-01-131-2/+2
|
* Drop Sjefen-melder section.Harald Eilertsen2018-01-131-6/+0
|
* Fix side body part on pages where there is no side body.Harald Eilertsen2014-02-071-1/+1
|
* Make sidebars nicer.Harald Eilertsen2014-02-061-1/+6
| | | | | - Module headings now go all the way out. - Side body content is included like a module only if not empty.
* Move the side_body stuff to the right sidebar.Harald Eilertsen2013-12-251-0/+4
|
* Refactor filtering of sidebar modules to helper.Harald Eilertsen2013-12-251-1/+1
| | | | Also strip out modules with empty bodies.
* More sidebar module fixes.Harald Eilertsen2013-12-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | There was some problems with the approach in the previous commits. - render_collection (render @sidebar_modules in our case) requires that all objects return the same partial path. Ours may not do that, so we wrote our own `render_sidebar_modules`-helper. - The way render_partial finds the correct path to the partial is to append what's returned by to_partial_path with whatever root the parent view is in. That would require duplication of the partials under all the different engines namespaces. Our `render_sidebar_modules` does it differently, and just looks up the partial according to the root namespace. This means the sidebar_module code can move back under the root application so we don't mess up the refinery namespaces. - Finally found the proper way to link to a blog_post so that it works from all namespaces. The correct way is: refinery.blog_post_path(post) This works in views (and presumably helpers,) but not in controllers which is why we struggled with it before.
* Clean up sidebar modules.Harald Eilertsen2013-12-251-1/+1
| | | | | | | | | | | | | | 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.
* Use blog category position to populate sidebars.Harald Eilertsen2013-12-231-1/+1
|
* Basic simple styling.Harald Eilertsen2013-10-201-0/+3