montanha:montanha.git
4 years agoInstitution: Using staticfiles master
Marcelo Jorge Vieira [Sat, 21 Dec 2013 20:55:55 +0000 (18:55 -0200)]
Institution: Using staticfiles

4 years agoFooter: Replaced gitorious with github
Marcelo Jorge Vieira [Sat, 21 Dec 2013 20:32:23 +0000 (18:32 -0200)]
Footer: Replaced gitorious with github

4 years agoPer Party: fixing party logo
Marcelo Jorge Vieira [Sat, 21 Dec 2013 20:03:55 +0000 (18:03 -0200)]
Per Party: fixing party logo

4 years agoFixing get_wikipedia_politicalparty_logo.py
Marcelo Jorge Vieira [Sat, 21 Dec 2013 19:58:04 +0000 (17:58 -0200)]
Fixing get_wikipedia_politicalparty_logo.py

Testing if political party has wikipedia url

4 years agoIndex: Using staticfiles
Marcelo Jorge Vieira [Sat, 21 Dec 2013 19:16:42 +0000 (17:16 -0200)]
Index: Using staticfiles

4 years agoFixed robots.txt
Marcelo Jorge Vieira [Sat, 21 Dec 2013 18:58:20 +0000 (16:58 -0200)]
Fixed robots.txt

Refactoring olhoneles/urls.py

4 years agoRefactoring Index page
Marcelo Jorge Vieira [Sat, 21 Dec 2013 18:43:36 +0000 (16:43 -0200)]
Refactoring Index page

4 years agorobots.txt allowing everything
Gustavo Noronha Silva [Sat, 21 Dec 2013 18:36:52 +0000 (16:36 -0200)]
robots.txt allowing everything

4 years agoSend a 404 for favicon.ico since we do not have it
Gustavo Noronha Silva [Sat, 21 Dec 2013 18:24:33 +0000 (16:24 -0200)]
Send a 404 for favicon.ico since we do not have it

4 years agoPer Legislator: Setting default message for party siglum
Marcelo Jorge Vieira [Sat, 21 Dec 2013 16:57:21 +0000 (14:57 -0200)]
Per Legislator: Setting default message for party siglum

4 years agoShowing current date from only if it exists
Marcelo Jorge Vieira [Sat, 21 Dec 2013 16:44:37 +0000 (14:44 -0200)]
Showing current date from only if it exists

4 years agoFix positioning/sizing of month-by-month graphs and titles
Gustavo Noronha Silva [Thu, 5 Dec 2013 16:37:52 +0000 (14:37 -0200)]
Fix positioning/sizing of month-by-month graphs and titles

4 years agoFix div closings
Gustavo Noronha Silva [Thu, 5 Dec 2013 16:29:14 +0000 (14:29 -0200)]
Fix div closings

4 years agoGo back to using top menu and span12 content
Gustavo Noronha Silva [Thu, 5 Dec 2013 16:23:17 +0000 (14:23 -0200)]
Go back to using top menu and span12 content

4 years agoImprove all expenses view with datatables
Gustavo Noronha Silva [Tue, 3 Dec 2013 16:34:40 +0000 (14:34 -0200)]
Improve all expenses view with datatables

4 years agoRestrict custom sort handling to tables using our sortable th tag
Gustavo Noronha Silva [Wed, 4 Dec 2013 02:12:06 +0000 (00:12 -0200)]
Restrict custom sort handling to tables using our sortable th tag

4 years agoAdd date range information to the header bar
Gustavo Noronha Silva [Sun, 1 Dec 2013 21:16:46 +0000 (19:16 -0200)]
Add date range information to the header bar

4 years agoUse nav instead of div and use the regular coloring
Gustavo Noronha Silva [Sun, 1 Dec 2013 21:16:00 +0000 (19:16 -0200)]
Use nav instead of div and use the regular coloring

4 years agoMove content page links to the left
Gustavo Noronha Silva [Sun, 1 Dec 2013 21:15:21 +0000 (19:15 -0200)]
Move content page links to the left

4 years agoRemove left-over css rules
Gustavo Noronha Silva [Sun, 1 Dec 2013 21:10:32 +0000 (19:10 -0200)]
Remove left-over css rules

4 years agoNormalize nature names for CMBH, since they broke it
Gustavo Noronha Silva [Sun, 1 Dec 2013 18:22:45 +0000 (16:22 -0200)]
Normalize nature names for CMBH, since they broke it

4 years agoAdd some vertical spacing so it looks better when cols get stacked
Gustavo Noronha Silva [Sun, 1 Dec 2013 17:44:10 +0000 (15:44 -0200)]
Add some vertical spacing so it looks better when cols get stacked

4 years agoRefactor main views to allow selecting institution
Gustavo Noronha Silva [Sun, 1 Dec 2013 15:15:32 +0000 (13:15 -0200)]
Refactor main views to allow selecting institution

4 years agoConvert remaining views
Gustavo Noronha Silva [Sat, 30 Nov 2013 15:22:02 +0000 (13:22 -0200)]
Convert remaining views

4 years agoGo back to showing a single institution or all
Gustavo Noronha Silva [Sat, 30 Nov 2013 15:17:16 +0000 (13:17 -0200)]
Go back to showing a single institution or all

We haven't managed to figure out a good way of showing multiple institutions in
an easy to grasp way, and this is causing more grief and confusion than being helpful,
so go back to showing a single institution at a time (while keeping 'all' viable).

This change migrates the per nature view to the old new model.

4 years agoFix some indentation/alignment
Gustavo Noronha Silva [Wed, 20 Nov 2013 23:21:04 +0000 (21:21 -0200)]
Fix some indentation/alignment

4 years agoAdd table of top suppliers on the detailed legislator view
Gustavo Noronha Silva [Wed, 20 Nov 2013 23:18:29 +0000 (21:18 -0200)]
Add table of top suppliers on the detailed legislator view

4 years agoFix usage of deprecated module
Gustavo Noronha Silva [Wed, 20 Nov 2013 23:17:58 +0000 (21:17 -0200)]
Fix usage of deprecated module

4 years agoKludge to only show month by month graphs for natures of houses that are selected
Gustavo Noronha Silva [Fri, 8 Nov 2013 01:26:50 +0000 (23:26 -0200)]
Kludge to only show month by month graphs for natures of houses that are selected

4 years agoAdd cache setup to the sample settings
Gustavo Noronha Silva [Fri, 8 Nov 2013 00:51:47 +0000 (22:51 -0200)]
Add cache setup to the sample settings

4 years agoAdd month-by-month view to the per nature page
Gustavo Noronha Silva [Fri, 8 Nov 2013 00:48:09 +0000 (22:48 -0200)]
Add month-by-month view to the per nature page

4 years agoFix entry with emails field but no addresses
Gustavo Noronha Silva [Sun, 3 Nov 2013 15:54:12 +0000 (13:54 -0200)]
Fix entry with emails field but no addresses

5 years agoImproving ALMG Collector
Marcelo Jorge Vieira [Wed, 31 Jul 2013 04:06:22 +0000 (01:06 -0300)]
Improving ALMG Collector

Get Legislator data: site, email, about, gender and date of birth

5 years agoAdd support for south migrations
Gustavo Noronha Silva [Tue, 17 Sep 2013 02:57:23 +0000 (23:57 -0300)]
Add support for south migrations

5 years agofixing typo
shyba [Wed, 11 Sep 2013 04:52:18 +0000 (01:52 -0300)]
fixing typo

5 years agoAdded AUTHORS
Marcelo Jorge Vieira [Wed, 11 Sep 2013 18:35:21 +0000 (15:35 -0300)]
Added AUTHORS

5 years agoUsing the minified version of flot
Marcelo Jorge Vieira [Sun, 11 Aug 2013 19:05:38 +0000 (16:05 -0300)]
Using the minified version of flot

5 years agoContact Us: Removed unnecessary space in success message
Marcelo Jorge Vieira [Sun, 11 Aug 2013 18:44:15 +0000 (15:44 -0300)]
Contact Us: Removed unnecessary space in success message

5 years agoCreated contact us page
Marcelo Jorge Vieira [Sat, 10 Aug 2013 05:36:23 +0000 (02:36 -0300)]
Created contact us page

5 years agoCreated 'what is expenses?' page
Marcelo Jorge Vieira [Sat, 10 Aug 2013 05:27:26 +0000 (02:27 -0300)]
Created 'what is expenses?' page

5 years agoHeader: Fixed order of </form>
Marcelo Jorge Vieira [Sat, 10 Aug 2013 05:12:14 +0000 (02:12 -0300)]
Header: Fixed order of </form>

5 years agoRenaming menu_items.html to submenu_items.html
Marcelo Jorge Vieira [Sat, 10 Aug 2013 05:07:34 +0000 (02:07 -0300)]
Renaming menu_items.html to submenu_items.html

5 years agoImprove pagination for all expenses
Gustavo Noronha Silva [Sat, 10 Aug 2013 06:16:39 +0000 (03:16 -0300)]
Improve pagination for all expenses

Separate the bootstrap span setup from the row, so it's properly aligned, and
add another pagination widget to the top.

5 years agoAdd a legend box to the per-nature graph
Gustavo Noronha Silva [Sat, 10 Aug 2013 06:04:12 +0000 (03:04 -0300)]
Add a legend box to the per-nature graph

This change also includes a bunch of fixes to make the UI make more sense
with the new tabbed layout.

5 years agoUpdating index page
Marcelo Jorge Vieira [Sat, 10 Aug 2013 05:01:51 +0000 (02:01 -0300)]
Updating index page

Added Lu Scuarcialupi's text

5 years agoRefactoring layout
Marcelo Jorge Vieira [Sat, 10 Aug 2013 04:33:49 +0000 (01:33 -0300)]
Refactoring layout

5 years agoUpdate bootstrap to 2.3.2
Marcelo Jorge Vieira [Sat, 10 Aug 2013 04:33:38 +0000 (01:33 -0300)]
Update bootstrap to 2.3.2

5 years agoMore basic information on the details page
Gustavo Noronha Silva [Wed, 7 Aug 2013 04:04:15 +0000 (01:04 -0300)]
More basic information on the details page

5 years agoFix JS syntax
Gustavo Noronha Silva [Wed, 7 Aug 2013 03:49:58 +0000 (00:49 -0300)]
Fix JS syntax

5 years agoAdded more interesting information in the supplier's detail page
Gustavo Noronha Silva [Wed, 7 Aug 2013 03:30:03 +0000 (00:30 -0300)]
Added more interesting information in the supplier's detail page

This change adds a per-party graph (code shared with the per-party view),
a table showing the top buyers for that supplier. This will be later
reorganized to be saner for viewing (see ticket #11).

5 years agoAdd supplier details view (fixes #5)
Gustavo Noronha Silva [Wed, 7 Aug 2013 02:51:19 +0000 (23:51 -0300)]
Add supplier details view (fixes #5)

5 years agoGenerate th tag attributes instead of the whole tab in our sortable template tag
Gustavo Noronha Silva [Wed, 7 Aug 2013 02:40:14 +0000 (23:40 -0300)]
Generate th tag attributes instead of the whole tab in our sortable template tag

5 years agoAdd support for sorting columns in all and per-supplier views
Gustavo Noronha Silva [Wed, 31 Jul 2013 03:09:26 +0000 (00:09 -0300)]
Add support for sorting columns in all and per-supplier views

Adds a new templatetag sortable_th, which is able to add a th pair of
tags with an ID and appropriate CSS class. The JS code supporting the
sorting is in a new file, and it uses the deserialize jQuery plugin,
which is also being added by this commit.

5 years agoFixed the per-party view to use the django ORM
Gustavo Noronha Silva [Wed, 31 Jul 2013 00:43:46 +0000 (21:43 -0300)]
Fixed the per-party view to use the django ORM

This change also correctly filters disabled institutions. Fixes ticket #7.

5 years agoAdd a color generator to create the array of colors
Pablo Aguiar [Mon, 29 Jul 2013 17:39:31 +0000 (14:39 -0300)]
Add a color generator to create the array of colors

5 years agoLegislator detail: Fixed menu selection
Marcelo Jorge Vieira [Tue, 30 Jul 2013 22:09:18 +0000 (19:09 -0300)]
Legislator detail: Fixed menu selection

5 years agoActually filter expenses by the legislator in the details view
Gustavo Noronha Silva [Tue, 30 Jul 2013 01:37:22 +0000 (22:37 -0300)]
Actually filter expenses by the legislator in the details view

5 years agoFix arguments for showing legislator details
Gustavo Noronha Silva [Tue, 30 Jul 2013 01:35:44 +0000 (22:35 -0300)]
Fix arguments for showing legislator details

5 years agoMajor rework of narrowing down the data that is showed
Gustavo Noronha Silva [Tue, 30 Jul 2013 01:12:54 +0000 (22:12 -0300)]
Major rework of narrowing down the data that is showed

Instead of allowing selection of a single legislative house, we now have
a dropdown in the top menu that allows excluding houses or legislatures.
Legislature is a new model/concept, that is like the 'class' for a mandate,
it is tied to the institution instead of being tied to the legislator.

This change also adapts the collectors to use this new structure.

5 years agoMake it easier to debug failing URIs
Gustavo Noronha Silva [Tue, 30 Jul 2013 01:12:25 +0000 (22:12 -0300)]
Make it easier to debug failing URIs

5 years agoFixed political party logo in the per legislator template
Marcelo Jorge Vieira [Mon, 29 Jul 2013 17:11:46 +0000 (14:11 -0300)]
Fixed political party logo in the per legislator template

Replaced 'political-party-mini' with 'mini'

5 years agoRenamed thumbnail alias to be more general
Gustavo Noronha Silva [Sun, 28 Jul 2013 17:58:36 +0000 (14:58 -0300)]
Renamed thumbnail alias to be more general

5 years agoAdd an icon to show which institution is currently being shown
Gustavo Noronha Silva [Sun, 28 Jul 2013 01:54:46 +0000 (22:54 -0300)]
Add an icon to show which institution is currently being shown

5 years agoAllow selecting the institution from the main page
Gustavo Noronha Silva [Sat, 27 Jul 2013 17:52:17 +0000 (14:52 -0300)]
Allow selecting the institution from the main page

5 years agoAdd CMBH collector and apply changes to make it possible
Gustavo Noronha Silva [Thu, 25 Jul 2013 15:49:09 +0000 (12:49 -0300)]
Add CMBH collector and apply changes to make it possible

Along with the new collector, this change makes a number of model fields
optional, given the data to fill them out is not available in the CMBH
web site. It also removes the hack to make the graph in the per nature
totals view be the same height as the table, since the table is now much
taller.

5 years agoRefactor collector code to have each object on their own file
Gustavo Noronha Silva [Thu, 25 Jul 2013 01:50:23 +0000 (22:50 -0300)]
Refactor collector code to have each object on their own file

5 years agoDefault to post-processing URI data as an HTML page
Gustavo Noronha Silva [Thu, 25 Jul 2013 01:29:03 +0000 (22:29 -0300)]
Default to post-processing URI data as an HTML page

Most sites are HTML pages that we scrape, so make the collector's
base post-process the contents of the download like the old base
did, and override that for ALMG.

5 years agoFix construction of new institutions
Gustavo Noronha Silva [Thu, 25 Jul 2013 01:28:37 +0000 (22:28 -0300)]
Fix construction of new institutions

5 years agoAdded get_legislator_picture.py
Marcelo Jorge Vieira [Wed, 24 Jul 2013 04:19:20 +0000 (01:19 -0300)]
Added get_legislator_picture.py

This script get the current picture of ALMG legislators

5 years agoAdded 'picture' attribute in Legislator class
Marcelo Jorge Vieira [Wed, 24 Jul 2013 04:18:51 +0000 (01:18 -0300)]
Added 'picture' attribute in Legislator class

5 years agoFixed get_wikipedia_data.py
Marcelo Jorge Vieira [Wed, 24 Jul 2013 03:01:01 +0000 (00:01 -0300)]
Fixed get_wikipedia_data.py

Removed unnecessary dependency (simplejson)

5 years agoFooter: Fixed typo
Marcelo Jorge Vieira [Wed, 24 Jul 2013 02:48:59 +0000 (23:48 -0300)]
Footer: Fixed typo

Replaced 'exucutando' with 'executando'

5 years agoUpdating README
Marcelo Jorge Vieira [Wed, 24 Jul 2013 02:43:16 +0000 (23:43 -0300)]
Updating README

Added Python PIL as dependency

5 years agoRemoving pre-django files
Gustavo Noronha Silva [Wed, 24 Jul 2013 02:38:00 +0000 (23:38 -0300)]
Removing pre-django files

5 years agoReset ticks to force rendering the first one
Pablo Aguiar [Sun, 14 Jul 2013 22:40:49 +0000 (19:40 -0300)]
Reset ticks to force rendering the first one

Workaround for Flot issue number 795 (https://github.com/flot/flot/issues/795)

5 years agoFixed PoliticalParty class
Marcelo Jorge Vieira [Wed, 24 Jul 2013 02:15:07 +0000 (23:15 -0300)]
Fixed PoliticalParty class

Allow null for name and logo attributes

5 years agoAdded templates for error 404 and 500
Marcelo Jorge Vieira [Wed, 24 Jul 2013 01:48:27 +0000 (22:48 -0300)]
Added templates for error 404 and 500

5 years agoFixed scripts/get_wikipedia_politicalparty_logo.py
Marcelo Jorge Vieira [Mon, 22 Jul 2013 22:35:01 +0000 (19:35 -0300)]
Fixed scripts/get_wikipedia_politicalparty_logo.py

Added BeautifulSoup as dependency

5 years agoTranslating many strings to pt_BR
Marcelo Jorge Vieira [Mon, 22 Jul 2013 22:28:06 +0000 (19:28 -0300)]
Translating many strings to pt_BR

5 years agoAdded author, description and keywords to HTML header
Marcelo Jorge Vieira [Mon, 22 Jul 2013 21:49:08 +0000 (18:49 -0300)]
Added author, description and keywords to HTML header

5 years agoTranslating many strings to pt_BR
Marcelo Jorge Vieira [Mon, 22 Jul 2013 21:33:07 +0000 (18:33 -0300)]
Translating many strings to pt_BR

5 years agoCreated scripts directory
Marcelo Jorge Vieira [Mon, 22 Jul 2013 20:28:41 +0000 (17:28 -0300)]
Created scripts directory

This directory has two scripts to get political party data from wikipedia

5 years agoAdded 'wikipedia' attribute to the PoliticalParty model
Marcelo Jorge Vieira [Mon, 22 Jul 2013 20:28:22 +0000 (17:28 -0300)]
Added 'wikipedia' attribute to the PoliticalParty model

5 years agoAdded 'logo' attribute to the PoliticalParty model
Marcelo Jorge Vieira [Sun, 21 Jul 2013 14:26:02 +0000 (11:26 -0300)]
Added 'logo' attribute to the PoliticalParty model

Added easy_thumbnails as dependency

5 years agoAll expenses view
Gustavo Noronha Silva [Mon, 22 Jul 2013 03:14:55 +0000 (00:14 -0300)]
All expenses view

5 years agoDetail legislator view
Gustavo Noronha Silva [Mon, 22 Jul 2013 03:08:06 +0000 (00:08 -0300)]
Detail legislator view

5 years agoAdapt collector to the changes in the Institution model
Gustavo Noronha Silva [Mon, 22 Jul 2013 02:29:39 +0000 (23:29 -0300)]
Adapt collector to the changes in the Institution model

5 years agoAdded 'siglum' attribute to the Institution model
Marcelo Jorge Vieira [Sun, 21 Jul 2013 13:30:04 +0000 (10:30 -0300)]
Added 'siglum' attribute to the Institution model

5 years agoAdded __unicode__() method to the Institution object
Marcelo Jorge Vieira [Sun, 21 Jul 2013 13:14:55 +0000 (10:14 -0300)]
Added __unicode__() method to the Institution object

Now the Institution object has an human-readable representation,
it is displayed by name.

5 years agoSetting pt_BR.UTF-8 as default locale for monetary
Marcelo Jorge Vieira [Sun, 21 Jul 2013 13:08:56 +0000 (10:08 -0300)]
Setting pt_BR.UTF-8 as default locale for monetary

5 years agoAdded some models to the Admin site
Marcelo Jorge Vieira [Sun, 21 Jul 2013 13:05:31 +0000 (10:05 -0300)]
Added some models to the Admin site

Models:

  * PoliticalParty
  * Institution

5 years agoResizing Graphs automatically
Marcelo Jorge Vieira [Sun, 21 Jul 2013 03:26:43 +0000 (00:26 -0300)]
Resizing Graphs automatically

Setting graph's width with the same width of parent (eg: span6)

5 years agoAdded 'active' style class for selected menu item
Marcelo Jorge Vieira [Sun, 21 Jul 2013 03:07:37 +0000 (00:07 -0300)]
Added 'active' style class for selected menu item

5 years agoIncrease the threshold a little bit
Gustavo Noronha Silva [Sun, 21 Jul 2013 03:06:29 +0000 (00:06 -0300)]
Increase the threshold a little bit

5 years agoMake per-party graph merrier and more useful
Gustavo Noronha Silva [Sun, 21 Jul 2013 02:40:59 +0000 (23:40 -0300)]
Make per-party graph merrier and more useful

This avoids the over-combination of parties in the graph by making
it use a lower threshold. And now we are using the same colors as the
ones being used in the per-nature view.

5 years agoOnly show the average in the per-party view
Gustavo Noronha Silva [Sun, 21 Jul 2013 02:12:44 +0000 (23:12 -0300)]
Only show the average in the per-party view

Hide totals and number of legislators by default, and allow showing it with
a link.

5 years agoMake this template work with older django
Gustavo Noronha Silva [Sun, 21 Jul 2013 00:54:10 +0000 (21:54 -0300)]
Make this template work with older django

5 years agoMake the pagination more functional
Gustavo Noronha Silva [Sun, 21 Jul 2013 00:16:39 +0000 (21:16 -0300)]
Make the pagination more functional

This change also documents the fact that we are using a custom branch of
django-bootstrap-toolkit, while the changes we did are considered upstream.

5 years agoRefactoring Menu
Marcelo Jorge Vieira [Sat, 20 Jul 2013 23:11:02 +0000 (20:11 -0300)]
Refactoring Menu

Now footer and header has the same menu

5 years agoMake the per-nature graph cummulative and stacked area
Gustavo Noronha Silva [Sat, 20 Jul 2013 21:26:10 +0000 (18:26 -0300)]
Make the per-nature graph cummulative and stacked area