aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* More sidebar module fixes.Harald Eilertsen2013-12-256-10/+17
| | | | | | | | | | | | | | | | | | | | | | | | 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-257-25/+42
| | | | | | | | | | | | | | 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.
* Populate home page with blog entries.Harald Eilertsen2013-12-243-0/+35
| | | | | | 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.
* Display sidebar position in backend category list.Harald Eilertsen2013-12-234-0/+103
|
* Only render sidebar modules if present.Harald Eilertsen2013-12-231-1/+2
|
* Use blog category position to populate sidebars.Harald Eilertsen2013-12-233-8/+12
|
* Add sidebar_position field to blog categories.Harald Eilertsen2013-12-237-3/+65
|
* Add application specific locale files for en and nb locales.Harald Eilertsen2013-12-232-4/+3
|
* Add read more link to sidebar items.Harald Eilertsen2013-12-231-0/+1
|
* Move markup from decorator to template.Harald Eilertsen2013-12-232-11/+4
| | | | | 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-234-12/+38
| | | | | | | | | | | | | 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.
* Posts in sample data should belong to category.Harald Eilertsen2013-12-231-4/+5
|
* Add rake task to generate sample data.Harald Eilertsen2013-12-231-0/+35
| | | | | | | | | Run `rake dev:load_sample_data` to populate the database with sample data. This creates the following: - The categories [Nyheter, Intervjuer, Anmeldelser, Artikler] - A "sample user" we can use as the author of posts. - 5 blog posts in each category.
* Add lorem gem for generating sample content.Harald Eilertsen2013-12-232-0/+3
|
* Don't include core config in revision control.Harald Eilertsen2013-11-142-52/+1
|
* Begin automatic filling of sidebars with content.Harald Eilertsen2013-11-142-1/+22
| | | | | List blog categories and 10 most resent posts in each category in the left sidebar.
* Add styling for blog posts on blog summary page.Harald Eilertsen2013-11-081-0/+33
|
* Change stylesheet colors.Harald Eilertsen2013-11-081-3/+3
|
* Hide submenu's for now.Harald Eilertsen2013-10-212-1/+2
|
* Basic simple styling.Harald Eilertsen2013-10-206-0/+126
|
* Add dependencies for postgres setup to Gemfile.Harald Eilertsen2013-06-132-3/+7
|
* Add generic database template.Harald Eilertsen2013-06-133-22/+45
|
* Configure for Heavymetal.noHarald Eilertsen2013-06-1130-8/+553
| | | | | | | | | | Enable all the standard engines: - blog - inquiries - search - page-images - videos
* Update script to set up dev environment.Harald Eilertsen2013-04-191-2/+6
| | | | | Now copies the example refinery core config to the right place. And don't bomb if database.yml already exist.
* Fix deploy scripts.Harald Eilertsen2013-04-192-4/+11
| | | | | | | | Require the scripts in config/deploy directory so they will hook into the deploy process. Fixed deploy:refinery:setup recipe, now produces a valid config and puts it in the right spot.
* Don't install production gems in dev mode.Harald Eilertsen2013-04-191-1/+1
|
* Upgrade gems.Harald Eilertsen2013-04-192-44/+44
| | | | | Rails -> 3.2.13 RefineryCMS -> 2.0.10
* Add new rvm files to gitignore for compatillity with new version.Harald Eilertsen2013-04-191-0/+2
|
* Update to rails 3.2.12Harald Eilertsen2013-03-152-76/+77
|
* Fix example deployment script.Harald Eilertsen2013-03-151-1/+1
|
* Fix readme.Harald Eilertsen2013-03-151-5/+5
|
* Use correct app name in config.ru.Harald Eilertsen2013-02-031-1/+1
|
* Turn into a neutral base for starting off new apps.Harald Eilertsen2013-02-0314-16/+16
|
* Rename readme to signify it is using Markdown not rdoc tags.Harald Eilertsen2013-01-281-0/+0
|
* Begin readmeHarald Eilertsen2013-01-281-260/+24
|
* Create development setup script.Harald Eilertsen2013-01-282-0/+16
| | | | | | Runs bundle install, creates database config and loads the database schema and initial seed. Should probably be made smarter in the end, but for now we'll try to get by with this.
* Fix deploy scripts.Harald Eilertsen2013-01-263-4/+6
|
* Add deploy script for refinery config.Harald Eilertsen2013-01-251-0/+46
|
* Add deploy script to generate unique secret token upon setup.Harald Eilertsen2013-01-251-0/+36
|
* Add deploy script to set up production database.Harald Eilertsen2013-01-253-0/+180
|
* Add sample capistrano deploy scriptHarald Eilertsen2013-01-252-0/+43
|
* Initial commit.Harald Eilertsen2013-01-2561-0/+1804