aboutsummaryrefslogtreecommitdiffstats
path: root/app/views/refinery
Commit message (Collapse)AuthorAgeFilesLines
* Styling updates to make merch link look nicer.Harald Eilertsen2021-06-031-2/+2
| | | | Also made page logo and the header section a tad larger.
* Update merch linkHarald Eilertsen2021-06-031-2/+2
|
* Change merch store in page header.Harald Eilertsen2021-06-031-2/+2
|
* Revert "Change merch store in page header."Harald Eilertsen2021-06-021-2/+2
| | | | | This reverts commit 091602c490db2adf22c1c34d91bfd601b6bd7d77. and later...
* Change merch store in page header.Harald Eilertsen2021-06-021-2/+2
|
* Banners: Don't try to resize gifs.deploy-20200508Harald Eilertsen2020-05-081-1/+5
| | | | | | | | | | | | | | | | | | | ImageMagick does not handle resizing of animated gifs wery well. Optimized gifs will usually have individual sizes for each frame, only containing the actually changed image data. Each frame also have an offset from the origin. When ImageMagick tries to resize such an image, the offsets gets messed up and the result looks rather terrible. There's ways to handle this in ImageMagick, by first making all frames the same size (`convert -coalesce ...`) then resize (`convert -resize ...`) and finally optimize the gif again (`convert -layers Optimize ...`). However, this is a bit too much to handle when trying to download the animation, so it should be done on or before upload. For now, I think doing it offline before upload should be good enough. This _requires_ though, that the animation has the correct dimensions before upload!
* Add search powered by Qwant.comHarald Eilertsen2019-05-261-0/+1
| | | | | | | | | | | Why? Implementing our own search is quite involved if we want it to be any good. So outsourcing makes sense. Qwant is hosted in Europe (France,) and takes privacy seriously and doesn't track you. See https://help.qwant.com/help/overview/our-philosophy/ And https://help.qwant.com/help/overview/how-does-qwant-make-money/ For more information.
* Move towards flexbox layout.Harald Eilertsen2019-05-011-1/+3
| | | | | | | | | Main page and header now use flexbox instead of not quite working floats and position relative/absolute. This really simplifies things. Perhaps we'll even be able to make a mobile friendly site some day. Various other cosmetic tweaks have snuch in too. The page now has a max size of about 25cm, and some other minor tweaks.
* Add license header to files.Harald Eilertsen2018-06-177-1/+113
|
* Add logo + link to merch store.Harald Eilertsen2017-12-161-0/+4
|
* Upgrade to refinery 2.1.0Harald Eilertsen2015-11-141-4/+1
|
* Translate admin category form.Harald Eilertsen2014-03-021-3/+3
|
* Allow customization of number of sidebar items for each category.Harald Eilertsen2014-03-021-0/+5
|
* Open banner targets in a new window/tab.Harald Eilertsen2014-02-161-1/+1
|
* Render banners from layout instead of modifying all views.Harald Eilertsen2014-02-161-2/+0
|
* Add refinery-banners engine.Harald Eilertsen2014-02-162-0/+3
|
* Update blog main views to not render body_content right.Harald Eilertsen2013-12-254-0/+57
|
* Move the side_body stuff to the right sidebar.Harald Eilertsen2013-12-251-6/+4
|
* More sidebar module fixes.Harald Eilertsen2013-12-251-8/+0
| | | | | | | | | | | | | | | | | | | | | | | | 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-0/+8
| | | | | | | | | | | | | | 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-241-0/+20
| | | | | | 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-231-0/+20
|
* Add sidebar_position field to blog categories.Harald Eilertsen2013-12-231-0/+24
|
* Basic simple styling.Harald Eilertsen2013-10-201-0/+7