Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Add license header to files. | Harald Eilertsen | 2018-06-17 | 3 | -0/+45 |
| | |||||
* | Just turn off display of page side body. | Harald Eilertsen | 2018-01-06 | 1 | -2/+3 |
| | |||||
* | Make the sidebar processing more robust when there's nothing to show. | Harald Eilertsen | 2017-12-30 | 1 | -1/+1 |
| | |||||
* | Fix side body part on pages where there is no side body. | Harald Eilertsen | 2014-02-07 | 1 | -0/+5 |
| | |||||
* | Refactor filtering of sidebar modules to helper. | Harald Eilertsen | 2013-12-25 | 1 | -1/+9 |
| | | | | Also strip out modules with empty bodies. | ||||
* | More sidebar module fixes. | Harald Eilertsen | 2013-12-25 | 1 | -0/+7 |
| | | | | | | | | | | | | | | | | | | | | | | | | 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. | ||||
* | Populate home page with blog entries. | Harald Eilertsen | 2013-12-24 | 1 | -0/+3 |
| | | | | | | I would like to just render the refinery/blog/index template for this, but I did not find a way to do it, so I copied it instead. May need to revisit this if upgrading to a new refinery or blog engine. | ||||
* | Add sidebar_position field to blog categories. | Harald Eilertsen | 2013-12-23 | 1 | -0/+10 |
| | |||||
* | Initial commit. | Harald Eilertsen | 2013-01-25 | 1 | -0/+2 |