Merge pull request #20 from josephbales/master

Fixed link to Ecrire
Fixed some CSS glitch and admin sidebar

Moving to flex box because I want to keep the pagination and filter on
the page.
Merge branch 'master' of github.com:pothibo/ecrire
First version of themeing!

Moved most of the asset/HTML to themes/default/ to follow on the issue
Simplified application layout.

The themeing is now looking good. One of the area that could have been
confusing was the layout (application.html.erb). Most of the
confusion was taken away by using high level functions that wraps the
head.

Conditionals have also been removed to avoid screwing up the layout on
assumptions.

Added shared assets to share between admin and normal. This allow stuff
like admin menu to keep the same look and feel while having DRYed CSS
Modified JS structure to reflect CSS

Because JS and CSS should follow a similar structure to make sure it's
easy to understand for people wanting to build a theme
Moved prism to shared JS/CSS

The reason to do so is because Prism is used in admin as well as in the
post view.

Also, you cannot commit empty directory to git which caused error when
deploying ecrire (assets wouldn't precompile)
Whitespace!!!
Fixed sprockets' precompiler

Sprocket by default try to compile everything that resides in
app/assets. That meant that any images/font outside of app/assets
wouldn't be precompiled.

Because theme lives in themes/theme_name/, all assets in themes (besides
css|js) wouldn't be precompiled.
Added a mention of themeing in Readme
Moved some javascript outside of gems.

Login JS and keymaster is needed by the blog and shouldn't be in the
theme.
Small variable renaming
Removed debugging flags
JS and Coffeescript don't mix up. Use it intelligently.
Moved assets back to app/assets

The reason is that menubar and background.png is used in the admin
panel. Since the goal of theming is to theme the blog and not the
admin, those 2 assets were moved back to app/assets
Moved Prism to app/asset.

Since it's required by the editor, Prism is in app/asset. One other way
would be to check if Prism is loaded in JS but it would require more
tweaking than loading Prism. Furthermore, this blog engine is for web
developers so Prism make sense in app/asset
Moved partials to app/ as it shouldn't be themeable.

Partial are always loaded within a post. For this reason, partials can
be modified through their own CSS/JS or by styling post.css, not by
themselves.
Theme now support helpers

Conflicts:
	app/decorators/post_decorator.rb
	config/application.rb
I18n regression
Theme now supports helpers! Also moved theme structure

Rails helpers are now part of themes the same way you can use them in
app/helpers. The default theme has changed to reflect the current state
theme structure