This helps to not break on plugins having require "gravatar"
in their init.rb. This statement is not needed anymore in any
supported version of ChiliProject (or Redmine for that matter) and
should thus be removed from all plugins.
Up until now, the patch used to be a no-op. While the filters class
attribute was set correctly, the methods using it were not actually
overridden as they are only included above the existing methods in
the module chain.
This resulted in an arbitrary load order of filters on Ruby 1.8. As
such, our overridden standard filters might not have actually
overridden anything.
Still, the patch can be completely removed once we either require
Ruby 1.9 (as we have ordered ahshes by default then) or once
https://github.com/Shopify/liquid/pull/87 was merged and released
upstream.
The rows were being incorrectly selected (because the class name had a
missing '.').
jQuery items can't be directly compared to each other so we need to get
the HTML element to test if they are the same.
Formatting was done mostly by hand using the following as a guide
http://gnuvince.wordpress.com/2007/02/26/reformatting-a-css-file-with-vim/
" Replace all sequences of white spaces with one space
:%s/[ \t\n]\+/ /g
" Go to the end of the command, then forward one character and insert
" a newline
]/lr^M
" Make sure there is a semi-colon before each closing bracket
:%s/\([^; ]\) *}/\1;}/g
" Add a newline after every semi-colon
:%s/;/;^M/g
" Add a newline after every opening brace and make put one space
" between it and the preceeding text
:%s/\([^ ]*\) *{/\1 {^M/g
" Add two newlines after every closing brace
:%s/}/}^M^M/g
" Remove 'trailing' spaces in front of the semi-colons
:%s/ *;/;/g
" Make sure there is only one space after a colon
:%s/: */: /g
" Make the text before the colon lowercase
:%s/\(.\{-}\):/\L\1:/g
" Remove all trailing spaces at the beginning of lines
:%s/^ \+/g
" Indent the whole file
gg=G
" Split each rule onto its own line (This also matched some
" property/value combos so needed confirming
:%s/\([a-z0-9]\+\), \+/\1,^M/gc