avoinministerio/avoinministerio — pull request #296 by darkcoin (2012-12-09 23:46:01+00:00)
Title: random ongoing proposals

http://whispering-shelf-9842.herokuapp.com/

1. Data layer

few scopes, and instance methods for gathering proposals rows/data

2. DataFlow layer

refactoring PagesController

a) kiss metrics idea specific methods and preformating data methods moved to separate modules
b) headlines moved to class variables // arrays were been initiated once on production, not on each homepage request //

3. View layer

color definitions for the bars, and few other helper methods -> PagesHelper.

Separate partial for rendering proposals carousel columns

1 exception of the task... voting_days_left used rather start and end date, IMHO less text looks better and we have place to write 'last day to vote !!!' etc.

feel free to change any color of the bars.

It's easy to add new ranges for the colors just add it in PagesHelper -> idea_popularity_colors