avoinministerio/avoinministerio — pull request #297 by darkcoin (2012-12-10 01:04:08+00:00)
Title: Random ongoing proposals

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

Data layer

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

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 //

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