Pass attributes to render overall progress bar in update template
Pass attributes to render overall progress bar in new-blogpost template
Refactor: changed variable name and removed print
Added 'draft' state to button contributing states
Merge branch 'master' into issue-contrib-button-bug

* master:
  Revert last commit
  Remove redundant code
  Minor fix
  Refactor to use only SQL
  Refactor to use SQL properly instead of Python
  Added test case
  Assign a category when creating an app/project
Fix: try/except for both App and dict apps
Draft project also if has no tasks but has a presenter
Improve SQL query
Merge branch 'master' into contrib-button-improvements

* master:
  Add a test for unicode type in info field.
  Fix CKAN read-only mode for demo.ckan.org
  Fix for passing the tests
  Text max events saved are 100
  Refactor
  Remove redundant action.
  Tests for new activity feed
  Minor fixes to avoid circular imports
  Import sentinel in the top
  Refactor changes
  Import db only in extensions.
  Use test/default.py
  Added n_draft test cases
  Only store the last 100 events
  Pass to accound index recent activity feed.
  Fix pretty_date to accept float timestamps
  Add actions to recent activity feed
  Add pretty_date filter to Jinja2
  Return number of draft apps/projects
Fix in test
Merge pull request #830 from PyBossa/contrib-button-improvements

Contrib button improvements