├── dev-requirements.txt
├── README.rst
├── .scss-lint.yml
├── ckanext
├── dadosgovbr
│ ├── tests
│ │ ├── __init__.py
│ │ └── test_plugin.py
│ ├── controllers
│ │ ├── __init__.py
│ │ ├── wordpress.py
│ │ └── aplicativos.py
│ ├── fanstatic
│ │ ├── .gitignore
│ │ ├── resource.config
│ │ └── custom.js
│ ├── templates
│ │ ├── .gitignore
│ │ ├── __init__.py
│ │ ├── home
│ │ │ ├── index.html
│ │ │ ├── snippets
│ │ │ │ ├── tags.html
│ │ │ │ ├── featured_group.html
│ │ │ │ └── latest_datasets.html
│ │ │ └── layout1.html
│ │ ├── package
│ │ │ ├── read_base.html
│ │ │ ├── snippets
│ │ │ │ ├── tags.html
│ │ │ │ ├── stages.html
│ │ │ │ └── package_form.html
│ │ │ ├── activity.html
│ │ │ ├── edit.html
│ │ │ ├── new.html
│ │ │ ├── resource_read.html
│ │ │ ├── group_list.html
│ │ │ ├── base_form_page.html
│ │ │ ├── read.html
│ │ │ └── search.html
│ │ ├── user
│ │ │ ├── dashboard_datasets.html
│ │ │ └── login.html
│ │ ├── organization
│ │ │ ├── bulk_process.html
│ │ │ ├── snippets
│ │ │ │ └── helper.html
│ │ │ └── view_scheming_organization.html
│ │ ├── scheming
│ │ │ ├── form_snippets
│ │ │ │ ├── large_text2.html
│ │ │ │ └── upload2.html
│ │ │ ├── aplicativo_modal.html
│ │ │ ├── aplicativo_single.html
│ │ │ ├── aplicativo
│ │ │ │ ├── package_list.html
│ │ │ │ ├── new.html
│ │ │ │ ├── edit.html
│ │ │ │ ├── read.html
│ │ │ │ ├── read_base.html
│ │ │ │ ├── package_item.html
│ │ │ │ └── search.html
│ │ │ ├── snippets
│ │ │ │ └── additional_info.html
│ │ │ ├── concurso
│ │ │ │ ├── edit.html
│ │ │ │ ├── new.html
│ │ │ │ ├── read.html
│ │ │ │ ├── read_base.html
│ │ │ │ └── search.html
│ │ │ ├── inventario
│ │ │ │ ├── new.html
│ │ │ │ ├── edit.html
│ │ │ │ ├── read.html
│ │ │ │ ├── read_base.html
│ │ │ │ └── search.html
│ │ │ ├── package
│ │ │ │ └── read.html
│ │ │ ├── concurso_search.html
│ │ │ └── inventario_search.html
│ │ ├── snippets
│ │ │ ├── search_field.html
│ │ │ ├── search_field_header.html
│ │ │ ├── example_theme_most_popular_groups.html
│ │ │ ├── organization_item.html
│ │ │ └── search_result_text.html
│ │ ├── test.html
│ │ ├── wordpress
│ │ │ ├── snippets
│ │ │ │ └── latest_posts.html
│ │ │ ├── page_single.html
│ │ │ ├── post_single.html
│ │ │ └── posts.html
│ │ ├── group
│ │ │ └── snippets
│ │ │ │ └── group_item.html
│ │ └── report
│ │ │ └── view.html
│ ├── public
│ │ ├── .gitignore
│ │ ├── sass
│ │ │ ├── _r_desktop.scss
│ │ │ ├── old
│ │ │ │ ├── twitter_bootstrap
│ │ │ │ │ ├── _grid.scss
│ │ │ │ │ ├── _utilities.scss
│ │ │ │ │ ├── _component-animations.scss
│ │ │ │ │ ├── _close.scss
│ │ │ │ │ ├── _wells.scss
│ │ │ │ │ ├── _hero-unit.scss
│ │ │ │ │ ├── _layouts.scss
│ │ │ │ │ ├── _breadcrumbs.scss
│ │ │ │ │ ├── _pager.scss
│ │ │ │ │ ├── _accordion.scss
│ │ │ │ │ ├── _scaffolding.scss
│ │ │ │ │ ├── _thumbnails.scss
│ │ │ │ │ ├── _labels.scss
│ │ │ │ │ ├── _tooltip.scss
│ │ │ │ │ ├── _pagination.scss
│ │ │ │ │ ├── _popovers.scss
│ │ │ │ │ ├── _code.scss
│ │ │ │ │ ├── _alerts.scss
│ │ │ │ │ ├── bootstrap.scss
│ │ │ │ │ ├── _modals.scss
│ │ │ │ │ ├── _progress-bars.scss
│ │ │ │ │ ├── _carousel.scss
│ │ │ │ │ ├── _dropdowns.scss
│ │ │ │ │ ├── _variables.scss
│ │ │ │ │ ├── _tables.scss
│ │ │ │ │ └── _button-groups.scss
│ │ │ │ └── _grid.scss
│ │ │ ├── _pag_home.scss
│ │ │ ├── _r_tablet.scss
│ │ │ ├── _bugfix.scss
│ │ │ └── _pag_wordpress.scss
│ │ └── img
│ │ │ ├── logo.png
│ │ │ ├── brasil.png
│ │ │ ├── brasil2.png
│ │ │ ├── bg
│ │ │ ├── .DS_Store
│ │ │ ├── body-bg.jpg
│ │ │ ├── busca.png
│ │ │ ├── bg_boxes.png
│ │ │ ├── bg_busca.png
│ │ │ ├── bg_footer.jpg
│ │ │ ├── bg_header.png
│ │ │ ├── bts_redes.png
│ │ │ ├── bg_boxes_fino.png
│ │ │ ├── bg_boxes_head.jpg
│ │ │ ├── bg_footer_fill.jpg
│ │ │ ├── bg_header_over.png
│ │ │ ├── logo.harlley.2.png
│ │ │ ├── logo.harlley.3.png
│ │ │ ├── bts_redes_brancos.png
│ │ │ ├── barra-brasil-v3-azul.gif
│ │ │ └── barra-brasil-v3-cinza.gif
│ │ │ ├── bt
│ │ │ ├── .DS_Store
│ │ │ ├── bt_busca.png
│ │ │ ├── bts_redes.png
│ │ │ ├── bt_rede_rss.png
│ │ │ ├── bt_rede_identica.png
│ │ │ ├── bt_rede_twitter.png
│ │ │ └── bts_redes_brancos.png
│ │ │ ├── dadosgovbr.ico
│ │ │ ├── logo-mono.png
│ │ │ ├── no-image.png
│ │ │ ├── favicon
│ │ │ ├── favicon.ico
│ │ │ ├── apple-icon.png
│ │ │ ├── favicon-16x16.png
│ │ │ ├── favicon-32x32.png
│ │ │ ├── favicon-96x96.png
│ │ │ ├── ms-icon-70x70.png
│ │ │ ├── apple-icon-57x57.png
│ │ │ ├── apple-icon-60x60.png
│ │ │ ├── apple-icon-72x72.png
│ │ │ ├── apple-icon-76x76.png
│ │ │ ├── ms-icon-144x144.png
│ │ │ ├── ms-icon-150x150.png
│ │ │ ├── ms-icon-310x310.png
│ │ │ ├── android-icon-36x36.png
│ │ │ ├── android-icon-48x48.png
│ │ │ ├── android-icon-72x72.png
│ │ │ ├── android-icon-96x96.png
│ │ │ ├── apple-icon-114x114.png
│ │ │ ├── apple-icon-120x120.png
│ │ │ ├── apple-icon-144x144.png
│ │ │ ├── apple-icon-152x152.png
│ │ │ ├── apple-icon-180x180.png
│ │ │ ├── android-icon-144x144.png
│ │ │ ├── android-icon-192x192.png
│ │ │ ├── apple-icon-precomposed.png
│ │ │ ├── browserconfig.xml
│ │ │ └── manifest.json
│ │ │ ├── app
│ │ │ ├── geoleis110px.png
│ │ │ ├── geoleis546px.png
│ │ │ ├── willbot110px.jpg
│ │ │ ├── willbot546px.png
│ │ │ ├── acidentes110px.png
│ │ │ ├── acidentes250px.png
│ │ │ ├── acidentes546px.png
│ │ │ ├── basometro110px.png
│ │ │ ├── basometro546px.png
│ │ │ ├── falacamara110px.png
│ │ │ ├── falacamara546px.png
│ │ │ ├── meudinheiro110px.png
│ │ │ ├── meudinheiro250px.png
│ │ │ ├── meudinheiro546px.png
│ │ │ ├── olhoneles110px.png
│ │ │ ├── olhoneles546px.png
│ │ │ ├── pro-analise110px.png
│ │ │ ├── pro-analise546px.png
│ │ │ ├── vereadores110px.png
│ │ │ ├── vereadores546px.png
│ │ │ ├── wikicamara110px.png
│ │ │ ├── wikicamara546px.png
│ │ │ ├── camaravisual110px.png
│ │ │ ├── camaravisual546px.png
│ │ │ ├── fornecedores110px.png
│ │ │ ├── fornecedores250px.png
│ │ │ ├── fornecedores546px.png
│ │ │ ├── ondeacontece110px.png
│ │ │ ├── ondeacontece250px.png
│ │ │ ├── ondeacontece546px.png
│ │ │ ├── reputacao-sa110px.png
│ │ │ ├── reputacao-sa546px.png
│ │ │ ├── aeroportosbrasil110px.png
│ │ │ ├── aeroportosbrasil546px.png
│ │ │ ├── radarparlamentar110px.png
│ │ │ ├── radarparlamentar546px.png
│ │ │ ├── reclamacoes-br110px.jpg
│ │ │ ├── reclamacoes-br546px.png
│ │ │ ├── dashboardobraspac110px.png
│ │ │ ├── dashboardobraspac546px.png
│ │ │ ├── reclamacoes-procon110px.png
│ │ │ └── reclamacoes-procon546px.png
│ │ │ ├── acesso-a-informacao.png
│ │ │ └── acesso-a-informacao2.png
│ ├── __init__.py
│ ├── helpers
│ │ ├── __init__.py
│ │ └── scheming.py
│ ├── newssection_plugin.py
│ ├── theme.py
│ └── dataset_plugin.py
└── __init__.py
├── pip-requirements.txt
├── .coveragerc
├── MANIFEST.in
├── docs
└── dadosgovbr-logo
│ ├── dadosgovbr-logo.png
│ ├── dadosgovbr-logo-dark.png
│ ├── dadosgovbr-logo-light.png
│ └── dadosgovbr-logo-border.png
├── .vscode
└── tasks.json
├── .travis.yml
├── y.pub
├── setup.cfg
├── test.ini
├── .gitignore
├── bin
├── travis-run.sh
└── travis-build.bash
├── gulpfile.js
├── y
├── README.md
└── setup.py
/dev-requirements.txt:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/README.rst:
--------------------------------------------------------------------------------
1 | Check README.md
--------------------------------------------------------------------------------
/.scss-lint.yml:
--------------------------------------------------------------------------------
1 | scss_files: "**/*.scss"
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/tests/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/controllers/__init__.py:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/fanstatic/.gitignore:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/templates/.gitignore:
--------------------------------------------------------------------------------
1 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/.gitignore:
--------------------------------------------------------------------------------
1 | sass/.sass-cache
2 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/sass/_r_desktop.scss:
--------------------------------------------------------------------------------
1 | // main: extra.scss
2 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/fanstatic/resource.config:
--------------------------------------------------------------------------------
1 | [main]
2 |
3 | force_top = custom.js
4 |
--------------------------------------------------------------------------------
/pip-requirements.txt:
--------------------------------------------------------------------------------
1 | urllib3[secure]
2 | certifi
3 | pyOpenSSL
4 | cryptography
5 | idna
--------------------------------------------------------------------------------
/.coveragerc:
--------------------------------------------------------------------------------
1 | [report]
2 | omit =
3 | */site-packages/*
4 | */python?.?/*
5 | ckan/*
--------------------------------------------------------------------------------
/MANIFEST.in:
--------------------------------------------------------------------------------
1 | include README.rst
2 | recursive-include ckanext/dadosabertos *.html *.json *.js *.less *.css *.mo
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/templates/__init__.py:
--------------------------------------------------------------------------------
1 | # empty file needed for pylons to find templates in this directory
2 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/templates/home/index.html:
--------------------------------------------------------------------------------
1 | {% ckan_extends %}
2 |
3 | {% block content %}
4 | {{ super() }}
5 | {% endblock %}
6 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/logo.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/brasil.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/brasil.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/brasil2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/brasil2.png
--------------------------------------------------------------------------------
/docs/dadosgovbr-logo/dadosgovbr-logo.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/docs/dadosgovbr-logo/dadosgovbr-logo.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bg/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bg/.DS_Store
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bg/body-bg.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bg/body-bg.jpg
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bg/busca.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bg/busca.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bt/.DS_Store:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bt/.DS_Store
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/dadosgovbr.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/dadosgovbr.ico
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/logo-mono.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/logo-mono.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/no-image.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/no-image.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/tests/test_plugin.py:
--------------------------------------------------------------------------------
1 | """Tests for plugin.py."""
2 | import ckanext.dadosgovbr.plugin as plugin
3 |
4 | def test_plugin():
5 | pass
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bg/bg_boxes.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bg/bg_boxes.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bg/bg_busca.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bg/bg_busca.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bg/bg_footer.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bg/bg_footer.jpg
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bg/bg_header.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bg/bg_header.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bg/bts_redes.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bg/bts_redes.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bt/bt_busca.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bt/bt_busca.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bt/bts_redes.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bt/bts_redes.png
--------------------------------------------------------------------------------
/docs/dadosgovbr-logo/dadosgovbr-logo-dark.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/docs/dadosgovbr-logo/dadosgovbr-logo-dark.png
--------------------------------------------------------------------------------
/docs/dadosgovbr-logo/dadosgovbr-logo-light.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/docs/dadosgovbr-logo/dadosgovbr-logo-light.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bt/bt_rede_rss.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bt/bt_rede_rss.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/favicon.ico:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/favicon.ico
--------------------------------------------------------------------------------
/docs/dadosgovbr-logo/dadosgovbr-logo-border.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/docs/dadosgovbr-logo/dadosgovbr-logo-border.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/geoleis110px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/geoleis110px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/geoleis546px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/geoleis546px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/willbot110px.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/willbot110px.jpg
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/willbot546px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/willbot546px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bg/bg_boxes_fino.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bg/bg_boxes_fino.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bg/bg_boxes_head.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bg/bg_boxes_head.jpg
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bg/bg_footer_fill.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bg/bg_footer_fill.jpg
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bg/bg_header_over.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bg/bg_header_over.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bg/logo.harlley.2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bg/logo.harlley.2.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bg/logo.harlley.3.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bg/logo.harlley.3.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/acesso-a-informacao.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/acesso-a-informacao.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/acesso-a-informacao2.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/acesso-a-informacao2.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/acidentes110px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/acidentes110px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/acidentes250px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/acidentes250px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/acidentes546px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/acidentes546px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/basometro110px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/basometro110px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/basometro546px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/basometro546px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/falacamara110px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/falacamara110px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/falacamara546px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/falacamara546px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/meudinheiro110px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/meudinheiro110px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/meudinheiro250px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/meudinheiro250px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/meudinheiro546px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/meudinheiro546px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/olhoneles110px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/olhoneles110px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/olhoneles546px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/olhoneles546px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/pro-analise110px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/pro-analise110px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/pro-analise546px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/pro-analise546px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/vereadores110px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/vereadores110px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/vereadores546px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/vereadores546px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/wikicamara110px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/wikicamara110px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/wikicamara546px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/wikicamara546px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bg/bts_redes_brancos.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bg/bts_redes_brancos.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bt/bt_rede_identica.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bt/bt_rede_identica.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bt/bt_rede_twitter.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bt/bt_rede_twitter.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bt/bts_redes_brancos.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bt/bts_redes_brancos.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/apple-icon.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/apple-icon.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/camaravisual110px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/camaravisual110px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/camaravisual546px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/camaravisual546px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/fornecedores110px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/fornecedores110px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/fornecedores250px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/fornecedores250px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/fornecedores546px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/fornecedores546px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/ondeacontece110px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/ondeacontece110px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/ondeacontece250px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/ondeacontece250px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/ondeacontece546px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/ondeacontece546px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/reputacao-sa110px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/reputacao-sa110px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/reputacao-sa546px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/reputacao-sa546px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/favicon-16x16.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/favicon-16x16.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/favicon-32x32.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/favicon-32x32.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/favicon-96x96.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/favicon-96x96.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/ms-icon-70x70.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/ms-icon-70x70.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/aeroportosbrasil110px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/aeroportosbrasil110px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/aeroportosbrasil546px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/aeroportosbrasil546px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/radarparlamentar110px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/radarparlamentar110px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/radarparlamentar546px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/radarparlamentar546px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/reclamacoes-br110px.jpg:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/reclamacoes-br110px.jpg
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/reclamacoes-br546px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/reclamacoes-br546px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bg/barra-brasil-v3-azul.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bg/barra-brasil-v3-azul.gif
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/bg/barra-brasil-v3-cinza.gif:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/bg/barra-brasil-v3-cinza.gif
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/apple-icon-57x57.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/apple-icon-57x57.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/apple-icon-60x60.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/apple-icon-60x60.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/apple-icon-72x72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/apple-icon-72x72.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/apple-icon-76x76.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/apple-icon-76x76.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/ms-icon-144x144.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/ms-icon-144x144.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/ms-icon-150x150.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/ms-icon-150x150.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/ms-icon-310x310.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/ms-icon-310x310.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/dashboardobraspac110px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/dashboardobraspac110px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/dashboardobraspac546px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/dashboardobraspac546px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/reclamacoes-procon110px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/reclamacoes-procon110px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/app/reclamacoes-procon546px.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/app/reclamacoes-procon546px.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/android-icon-36x36.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/android-icon-36x36.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/android-icon-48x48.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/android-icon-48x48.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/android-icon-72x72.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/android-icon-72x72.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/android-icon-96x96.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/android-icon-96x96.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/apple-icon-114x114.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/apple-icon-114x114.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/apple-icon-120x120.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/apple-icon-120x120.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/apple-icon-144x144.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/apple-icon-144x144.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/apple-icon-152x152.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/apple-icon-152x152.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/apple-icon-180x180.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/apple-icon-180x180.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/android-icon-144x144.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/android-icon-144x144.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/android-icon-192x192.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/android-icon-192x192.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/apple-icon-precomposed.png:
--------------------------------------------------------------------------------
https://raw.githubusercontent.com/dadosgovbr/ckanext-dadosgovbr/HEAD/ckanext/dadosgovbr/public/img/favicon/apple-icon-precomposed.png
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/fanstatic/custom.js:
--------------------------------------------------------------------------------
1 | (function() {
2 | // Homepage - Latest Datasets snippet
3 | $("#latest-datasets tbody tr div.author").popover({ trigger: "hover focus", placement: "left" });
4 |
5 |
6 | })();
7 |
--------------------------------------------------------------------------------
/ckanext/__init__.py:
--------------------------------------------------------------------------------
1 | # this is a namespace package
2 | try:
3 | import pkg_resources
4 | pkg_resources.declare_namespace(__name__)
5 | except ImportError:
6 | import pkgutil
7 | __path__ = pkgutil.extend_path(__path__, __name__)
8 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/__init__.py:
--------------------------------------------------------------------------------
1 | # this is a namespace package
2 | try:
3 | import pkg_resources
4 | pkg_resources.declare_namespace(__name__)
5 | except ImportError:
6 | import pkgutil
7 | __path__ = pkgutil.extend_path(__path__, __name__)
8 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/templates/package/read_base.html:
--------------------------------------------------------------------------------
1 | {% ckan_extends %}
2 |
3 | {% block content_action %}
4 | {% if h.check_access('package_update', {'id':pkg.id }) and c.user %}
5 | {% link_for _('Manage'), controller='package', action='edit', id=pkg.name, class_='btn', icon='wrench' %}
6 | {% endif %}
7 | {% endblock %}
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/sass/old/twitter_bootstrap/_grid.scss:
--------------------------------------------------------------------------------
1 | // GRID SYSTEM
2 | // -----------
3 |
4 | // Fixed (940px)
5 | @include gridSystem-generate($gridColumns, $gridColumnWidth, $gridGutterWidth);
6 |
7 | // Fluid (940px)
8 | @include fluidGridSystem-generate($gridColumns, $fluidGridColumnWidth, $fluidGridGutterWidth);
9 |
--------------------------------------------------------------------------------
/.vscode/tasks.json:
--------------------------------------------------------------------------------
1 | {
2 | "version": "0.1.0",
3 | "command": "gulp",
4 | "isShellCommand": true,
5 | "tasks": [
6 | {
7 | "taskName": "compile-scss",
8 | "isBuildCommand": true,
9 | "showOutput": "silent",
10 | "isBackground": true
11 | }
12 | ]
13 | }
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/img/favicon/browserconfig.xml:
--------------------------------------------------------------------------------
1 |
2 |
8 | {% trans %} 9 | Organizações são os órgãos, autarquias, ou entidades da Administração Pública que disponibilizam dados em formato aberto. 10 | {% endtrans %} 11 |
12 |Gratuito: {{pkg.is_free|safe}}
10 |Código aberto: {{pkg.is_opensource|safe}}
11 | 12 |16 | {{ h.markdown_extract(group.description, extract_length=80) }} 17 |
18 | {% else %} 19 |{{ _('This group has no description') }}
20 | {% endif %} 21 | {% if group.packages %} 22 | {{ ungettext('{num} Dataset', '{num} Datasets', group.packages).format(num=group.packages) }} 23 | {% else %} 24 | {{ _('0 Datasets') }} 25 | {% endif %} 26 |Acesso permitido apenas aos usuários do dados.gov.br.
28 |15 | Aplicativos produzidos a partir dos dados que estão no portal. 16 |
17 ||
14 | {{h.dadosgovbr_format_timestamp(post.date,'%d/%m/%Y')}}
15 |
16 | {{h.dadosgovbr_trim_string(post.excerpt.rendered, 240)|safe}} 17 | 18 | |
19 |
27 | Ver todas as notícias 28 |
29 | 30 |Some content for the page
21 | {% endblock %} 22 | #} 23 | {% block primary_content %} 24 |{{c.wp_page.content.rendered|safe}}
32 |15 | Concursos, hackathons e outros eventos de promoção do uso de dados abertos. 16 |
17 |15 | Cada item do inventário é uma base de dados existente em uma organização pública. 16 |
17 |{{ _('There are no groups associated with this dataset') }}
29 | {% endif %} 30 | 31 | {% endblock %} -------------------------------------------------------------------------------- /ckanext/dadosgovbr/templates/home/snippets/featured_group.html: -------------------------------------------------------------------------------- 1 | {# Show featured datasets from group "dados-em-destaque" #} 2 | 3 | {% if h.dadosgovbr_group_id_or_name_exists('dados-em-destaque') %} 4 | 5 | {% set group = h.dadosgovbr_get_featured_group('dados-em-destaque') %} 6 |{{group['description']}}
12 | {% endif %} 13 |{{h.dadosgovbr_trim_string(package.notes, 145)|safe}}
20 | and elements
3 | // --------------------------------------------------------
4 |
5 | // Inline and block code styles
6 | code,
7 | pre {
8 | padding: 0 3px 2px;
9 | @include font-family-monospace;
10 | font-size: $baseFontSize - 1;
11 | color: $grayDark;
12 | @include border-radius(3px);
13 | }
14 |
15 | // Inline code
16 | code {
17 | padding: 3px 4px;
18 | color: #d14;
19 | background-color: #f7f7f9;
20 | border: 1px solid #e1e1e8;
21 | }
22 |
23 | // Blocks of code
24 | pre {
25 | display: block;
26 | padding: ($baseLineHeight - 1) / 2;
27 | margin: 0 0 $baseLineHeight / 2;
28 | font-size: 12px;
29 | line-height: $baseLineHeight;
30 | background-color: #f5f5f5;
31 | border: 1px solid #ccc; // fallback for IE7-8
32 | border: 1px solid rgba(0,0,0,.15);
33 | @include border-radius(4px);
34 | white-space: pre;
35 | white-space: pre-wrap;
36 | word-break: break-all;
37 | word-wrap: break-word;
38 |
39 | // Make prettyprint styles more spaced out for readability
40 | &.prettyprint {
41 | margin-bottom: $baseLineHeight;
42 | }
43 |
44 | // Account for some code outputs that place code tags in pre tags
45 | code {
46 | padding: 0;
47 | color: inherit;
48 | background-color: transparent;
49 | border: 0;
50 | }
51 | }
52 |
53 | // Enable scrollable blocks of code
54 | .pre-scrollable {
55 | max-height: 340px;
56 | overflow-y: scroll;
57 | }
58 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/templates/package/base_form_page.html:
--------------------------------------------------------------------------------
1 | {% extends "package/edit_base.html" %}
2 |
3 | {% block primary_content %}
4 |
5 | {% block page_header %}{% endblock %}
6 |
7 | {% block primary_content_inner %}
8 | {% block form %}
9 | {#- passing c to a snippet is bad but is required here
10 | for backwards compatibility with old templates and
11 | plugins using setup_template_variables() -#}
12 | {{- h.snippet(form_snippet, c=c, **form_vars) -}}
13 | {% endblock %}
14 | {% endblock %}
15 |
16 |
17 | {% endblock %}
18 |
19 | {% block secondary_content %}
20 | {% block info_module %}
21 |
22 | {{ _('What are datasets?') }}
23 |
24 |
25 | {% trans %}
26 | A CKAN Dataset is a collection of data resources (such as files),
27 | together with a description and other information, at a fixed URL.
28 | Datasets are what users see when searching for data.
29 | {% endtrans %}
30 |
31 |
32 |
33 | {% endblock %}
34 |
35 | {% block resources_module %}
36 | {# TODO: Pass in a list of previously created resources and the current package dict #}
37 | {% snippet "package/snippets/resources.html", pkg={}, action='new_resource' %}
38 | {% endblock %}
39 | {% endblock %}
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/sass/old/twitter_bootstrap/_alerts.scss:
--------------------------------------------------------------------------------
1 | // ALERT STYLES
2 | // ------------
3 |
4 | // Base alert styles
5 | .alert {
6 | padding: 8px 35px 8px 14px;
7 | margin-bottom: $baseLineHeight;
8 | text-shadow: 0 1px 0 rgba(255,255,255,.5);
9 | background-color: $warningBackground;
10 | border: 1px solid $warningBorder;
11 | @include border-radius(4px);
12 | }
13 | .alert,
14 | .alert-heading {
15 | color: $warningText;
16 | }
17 |
18 | // Adjust close link position
19 | .alert .close {
20 | position: relative;
21 | top: -2px;
22 | right: -21px;
23 | line-height: 18px;
24 | }
25 |
26 | // Alternate styles
27 | // ----------------
28 |
29 | .alert-success {
30 | background-color: $successBackground;
31 | border-color: $successBorder;
32 | }
33 | .alert-success,
34 | .alert-success .alert-heading {
35 | color: $successText;
36 | }
37 | .alert-danger,
38 | .alert-error {
39 | background-color: $errorBackground;
40 | border-color: $errorBorder;
41 | }
42 | .alert-danger,
43 | .alert-error,
44 | .alert-danger .alert-heading,
45 | .alert-error .alert-heading {
46 | color: $errorText;
47 | }
48 | .alert-info {
49 | background-color: $infoBackground;
50 | border-color: $infoBorder;
51 | }
52 | .alert-info,
53 | .alert-info .alert-heading {
54 | color: $infoText;
55 | }
56 |
57 |
58 | // Block alerts
59 | // ------------------------
60 | .alert-block {
61 | padding-top: 14px;
62 | padding-bottom: 14px;
63 | }
64 | .alert-block > p,
65 | .alert-block > ul {
66 | margin-bottom: 0;
67 | }
68 | .alert-block p + p {
69 | margin-top: 5px;
70 | }
71 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/templates/home/snippets/latest_datasets.html:
--------------------------------------------------------------------------------
1 |
2 |
3 |
4 | Publicações mais recentes
5 |
6 |
7 |
8 |
9 |
10 | Conjunto de dados
11 | Data
12 | Responsável
13 |
14 |
15 |
16 | {% for dataset in h.dadosgovbr_most_recent_datasets(5) %}
17 |
18 | {{dataset.title}}
19 | {{dataset.time}}
20 |
21 | {# Organization #}
22 | {% if dataset.owner_org %}
23 |
24 |
25 | {{h.dadosgovbr_trim_letter(dataset.organization.title, 36)}}
26 |
27 |
28 | {# Autor #}
29 | {% else %}
30 |
31 |
34 |
35 | {% endif %}
36 |
37 | {% endfor %}
38 |
39 |
40 |
41 |
42 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/sass/old/twitter_bootstrap/bootstrap.scss:
--------------------------------------------------------------------------------
1 | /*!
2 | * Bootstrap v2.0.1
3 | *
4 | * Copyright 2012 Twitter, Inc
5 | * Licensed under the Apache License v2.0
6 | * http://www.apache.org/licenses/LICENSE-2.0
7 | *
8 | * Designed and built with all the love in the world @twitter by @mdo and @fat.
9 | *
10 | * Converted to Sass by @johnwlong / @m5o.
11 | *
12 | * Date: @DATE
13 | */
14 |
15 | // Core variables and mixins
16 | @import "variables"; // Modify this for custom colors, font-sizes, etc
17 | @import "mixins";
18 |
19 | // CSS Reset
20 | @import "reset";
21 |
22 | // Grid system and page structure
23 | @import "scaffolding";
24 | @import "grid";
25 | @import "layouts";
26 |
27 | // Base CSS
28 | @import "type";
29 | @import "code";
30 | @import "forms";
31 | @import "tables";
32 |
33 | // Components: common
34 | @import "sprites";
35 | @import "dropdowns";
36 | @import "wells";
37 | @import "component-animations";
38 | @import "close";
39 |
40 | // Components: Buttons & Alerts
41 | @import "buttons";
42 | @import "button-groups";
43 | @import "alerts"; // Note: alerts share common CSS with buttons and thus have styles in buttons.scss
44 |
45 | // Components: Nav
46 | @import "navs";
47 | @import "navbar";
48 | @import "breadcrumbs";
49 | @import "pagination";
50 | @import "pager";
51 |
52 | // Components: Popovers
53 | @import "modals";
54 | @import "tooltip";
55 | @import "popovers";
56 |
57 | // Components: Misc
58 | @import "thumbnails";
59 | @import "labels";
60 | @import "progress-bars";
61 | @import "accordion";
62 | @import "carousel";
63 | @import "hero-unit";
64 |
65 | // Utility classes
66 | @import "utilities"; // Has to be last to override when necessary
67 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/templates/snippets/organization_item.html:
--------------------------------------------------------------------------------
1 | {% set url=h.url_for(controller='organization', action='read', id=organization.name) %}
2 | {% set truncate=truncate or 0 %}
3 | {% block organization_item %}
4 |
5 | {% block organization_item_header %}
6 |
7 | {% block organization_item_header_image %}
8 |
11 | {% endblock %}
12 | {% block organization_item_header_title %}
13 | Dados em destaque
14 | {% endblock %}
15 | {% block organization_item_header_description %}
16 | {% if organization.description %}
17 | {% if truncate == 0 %}
18 | {{ h.markdown_extract(organization.description)|urlize }}
19 | {% else %}
20 | {{ h.markdown_extract(organization.description, truncate)|urlize }}
21 | {% endif %}
22 | {% endif %}
23 | {% endblock %}
24 |
25 | {% endblock %}
26 | {% block organization_item_content %}
27 | {% set list_class = "unstyled dataset-list" %}
28 | {% set item_class = "dataset-item module-content" %}
29 | {% snippet 'snippets/package_list.html', packages=organization.packages, list_class=list_class, item_class=item_class, truncate=120 %}
30 | {% endblock %}
31 |
32 | {% endblock %}
33 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/templates/package/snippets/stages.html:
--------------------------------------------------------------------------------
1 | {#
2 | Inserts a stepped progress indicator for the new package form. Each stage can
3 | have one of three states, "uncomplete", "complete" and "active".
4 |
5 | stages - A list of states for each of the three stages. Missing stages default
6 | to "uncomplete".
7 |
8 | Example:
9 |
10 | {% snippet 'package/snippets/stages.html', stages=['active'] %}
11 | {% snippet 'package/snippets/stages.html', stages=['complete', 'active'] %}
12 | {% snippet 'package/snippets/stages.html', stages=['active', 'complete'] %}
13 |
14 | #}
15 | {% set s1 = stages[0] or 'active' %}
16 | {% set s2 = stages[1] or 'uncomplete' %}
17 | {% if s1 != 'uncomplete' %}{% set class = 'stage-1' %}{% endif %}
18 | {% if s2 != 'uncomplete' %}{% set class = 'stage-2' %}{% endif %}
19 |
20 |
21 | -
22 | {% if s1 != 'complete' %}
23 | {{ _('Create') }} {{h.dadosgovbr_get_schema_title()}}
24 | {% else %}
25 |
26 | {% endif %}
27 |
28 | -
29 | {% if s2 != 'complete' %}
30 | {{ _('Add resource') }}
31 | {% else %}
32 | {% if s1 == 'active' %}
33 | {# stage 1 #}
34 |
35 | {% else %}
36 | {% link_for _('Add resource'), controller='package', action='new', class_="highlight" %}
37 | {% endif %}
38 | {% endif %}
39 |
40 |
--------------------------------------------------------------------------------
/y:
--------------------------------------------------------------------------------
1 | -----BEGIN RSA PRIVATE KEY-----
2 | MIIEowIBAAKCAQEAwxMuGHfLJci2NN9KHliQLO3ABsb/2yK5ey4LRK/nnR4f2uay
3 | c1Xl03ZukydTWBIYu41qxrkKw0RFcjLotCDkkv+5PVV4CAqbBY/nVa1zFwl9fjaA
4 | LUWmkoFr64Z8QQJ7UeR+qp/XdEL0t/yQp07cAOFefrIt8Aan3msfFqF6KcktcYyx
5 | KEvAFcnrl9gDN2qp9ByG/ZVDSo+Zi0M9kGYZAXEShkrNNMgfqB3u+fSeoVlG6eBu
6 | FNJaynj+QgDr/QEcwr6iDuHEYWSVJlcnOg5hmAbpcnMG4jzrlqIVA95J+KLkBunB
7 | 8ixo2zafi9BxHixYBrBbQWYhUXW979GZQ2tr1QIDAQABAoIBABRs17C8Kkskft9+
8 | WbZfs4jgw/BxuaxqMF2Tbp6chHXRB6jV6u1kmxHPHrjNr05TZr+MiReRnGzhoxvX
9 | 9MGXiBdUK0Mexdihs6Wbca9o39oTpk4myrjyyAQjBPe+NxhfeCYU9KZM4jRMJm91
10 | RHggK6zz6/78DQ9KwxzovnKSKcZiGTSLYM4/MwDSIUwEGBOeZ8gobH3OLHUqCcg5
11 | mqVxhmzt72uI1u3lQorktDsKPWtbOkN6f/oCTiqfIrGUj5GkzF5nfUZqiUmSMpZE
12 | zjDe+eh1O81dZ5qkfWwWxAfAHmjQodS6lhQ21l1MyxnXLFmK97nZABzaV7xlxF9t
13 | PLFSeGkCgYEA76ojCZc4Jp44OxW+bpq0Fe4p7ODhHHJt+gPJuoE5gjA08Js+kHH4
14 | mRzi31QudRAFU+BSxrKHJnYvxCbdwzsh5HdgWA6eOb921RAHWaKDRn0IryTwmXp6
15 | ombholyqjqaqT5zQIca6EYFuk1xyT41rCcaKKhtmKY7tSwMFwPn2ZqsCgYEA0F8B
16 | l7AdoC562m+LNsI52KWdEgIKsaaRu3/jDtizH2sTOyhLyn/zGZobYgffqcTvwdcp
17 | GEF0AvmU6TKrIydVQixVkjsRCf6LLfnU+LsXM5mR9BGfyf/RgTMtThK3C8st+qjC
18 | mId8ZHpFFdx2JlBjixrjyYPr8wgXdHKEzt1fd38CgYAaFM3TUV2O9lDwPSGIL9XB
19 | PTXazW4yBlHpj1f4r+9uN4jLVlmspnqDTx1xaFvV6XRq+FKJxQvoJ5xzIDep81lw
20 | 33zgmFanuipYbXIfUwwuM5UqWj7EtQt7eO69GJCHDaQjHdGYm2PMW+WIq9rUxXMM
21 | kUqf4nNvuloge6e4pHsoGQKBgHk+rviKm9J2+TldKk5EmdA8Hbc6xOo2GBpYAdDD
22 | uwaPEXOcsO01okjFaSWTm0t3smLCRcE9ZLnObB19RCOCYZPNpEUgZXvBR08LTicl
23 | Bg0aUNkJ4EZzun5JPxVswmH0ad6uj/yc6X61vrlHvN/yatmoXd8GCicyECPL9wc/
24 | vKsVAoGBAKWqpwijLX4cnEaBIGdyuTbInOILAr8Bql2I5L81oUH/hOnXL19lCzuG
25 | w7e7UXDSiImBTkinT8rwdPTx5ZZhNg5AT2ordW0fcIJsTw9o334osAuXoxSurrwn
26 | M8tuAcZ9QmSK0uJ3egiyTvxNq5iAEdzOYXefP4Km+Vdxs9QlX95Q
27 | -----END RSA PRIVATE KEY-----
28 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/controllers/wordpress.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 |
3 | import ckan.plugins as p
4 | from ckan.lib.base import c, render
5 | from pylons import request, response
6 | from pylons.controllers.util import redirect
7 | import requests
8 |
9 | # Wordpress integration
10 | import ckanext.dadosgovbr.helpers.wordpress as wp
11 |
12 |
13 | class NoticiasController(p.toolkit.BaseController):
14 |
15 | def redirect (ctrl, slug):
16 | return redirect(b'/noticia/'+slug)
17 |
18 | def show (ctrl, slug):
19 | c.wp_post = wp.post(slug)
20 | return render('wordpress/post_single.html')
21 |
22 | def list (ctrl):
23 | if ('page' in request.GET):
24 | c.wp_page_number = int(request.GET['page'])
25 | else:
26 | c.wp_page_number = int(1)
27 |
28 | c.title = "Notícias".decode('utf8')
29 | c.wp_posts = wp.posts(10, c.wp_page_number)
30 | return render('wordpress/posts.html')
31 |
32 | def feed (ctrl):
33 | # Get content from feed URL
34 | url = "http://wp.dados.gov.br/wp/feed"
35 | feed = requests.get(url)
36 | content = feed.content
37 |
38 | # Update URL to mask Wordpress path
39 | #content = content.replace("dados.gov.br/wp", "dados.gov.br/noticias")
40 |
41 | # Set header for XML content
42 | response.headers['Content-Type'] = (
43 | b'text/xml; charset=utf-8')
44 |
45 | return content
46 |
47 |
48 | class PaginasController(p.toolkit.BaseController):
49 | def index (ctrl, slug):
50 | c.wp_page = wp.page(slug)
51 | return render('wordpress/page_single.html')
52 |
53 | def redirect (ctrl, slug):
54 | return redirect(b'/pagina/'+slug)
55 |
56 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/theme.py:
--------------------------------------------------------------------------------
1 | import os
2 | from ckan.plugins import implements, SingletonPlugin
3 | from ckan.plugins import IConfigurer
4 | import ckan.plugins.toolkit
5 |
6 | class DadosGovBrTheme(SingletonPlugin):
7 | '''The theme for the dados.gov.br site.
8 |
9 | Uses CKAN's IConfigurer plugin interface to override some of CKAN's
10 | default files and templates with files and templates from this extension
11 | package.
12 |
13 | '''
14 | implements(IConfigurer, inherit=True)
15 |
16 | def update_config(self, config):
17 | '''This IConfigurer implementation causes CKAN to look in the
18 | ```public``` and ```templates``` directories present in this package
19 | for any customisations.
20 |
21 | It also shows how to set the site title here (rather than in the main
22 | site .ini file).
23 |
24 | '''
25 | # Setup some variable that will be useful below.
26 | here = os.path.dirname(__file__)
27 | rootdir = os.path.dirname(os.path.dirname(here))
28 | our_public_dir = os.path.join(rootdir, 'ckanext', 'dadosgovbr',
29 | 'public')
30 | template_dir = os.path.join(rootdir, 'ckanext', 'dadosgovbr',
31 | 'templates')
32 |
33 | # use new style plugin toolkit
34 | ckan.plugins.toolkit.add_public_directory(config, 'public')
35 | ckan.plugins.toolkit.add_resource('public/css', 'application.css')
36 |
37 | # Configure our public and templates overrides.
38 | config['extra_public_paths'] = ','.join([our_public_dir,
39 | config.get('extra_public_paths', '')])
40 | config['extra_template_paths'] = ','.join([template_dir,
41 | config.get('extra_template_paths', '')])
42 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/dataset_plugin.py:
--------------------------------------------------------------------------------
1 | import os
2 | from ckan.plugins import implements, SingletonPlugin
3 | from ckan.plugins import IRoutes
4 | from ckan.config.routing import SubMapper
5 |
6 | class DadosGovBrDatasetView(SingletonPlugin):
7 | '''The customized dataset view screen.
8 | '''
9 | implements(IRoutes, inherit=True)
10 |
11 | def before_map(self, map):
12 | # Default mappings copied from ckan/config/routing.py that we want to preserve.
13 | with SubMapper(map, controller='package') as m:
14 | m.connect('/dataset/{action}',
15 | requirements=dict(action='|'.join([
16 | 'list',
17 | 'new',
18 | 'autocomplete',
19 | 'search'
20 | ]))
21 | )
22 | m.connect('/dataset/{action}/{id}/{revision}', action='read_ajax',
23 | requirements=dict(action='|'.join([
24 | 'read',
25 | 'edit',
26 | 'authz',
27 | 'history',
28 | ]))
29 | )
30 | m.connect('/dataset/{action}/{id}',
31 | requirements=dict(action='|'.join([
32 | 'edit',
33 | 'editresources',
34 | 'authz',
35 | 'history',
36 | 'read_ajax',
37 | 'history_ajax',
38 | ]))
39 | )
40 | m.connect('/dataset/{id}.{format}', action='read')
41 | m.connect('/dataset/{id}/resource/{resource_id}', action='resource_read')
42 |
43 | # Our new custom mapping.
44 | map.connect('/dataset/{id}',
45 | controller='ckanext.dadosgovbr.controllers.package:DadosGovBrDatasetController',
46 | action='read')
47 | return map
48 |
49 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/templates/group/snippets/group_item.html:
--------------------------------------------------------------------------------
1 | {#
2 | Renders a media item for a group. This should be used in a list.
3 |
4 | group - A group dict.
5 |
6 | Example:
7 |
8 |
9 | {% for group in groups %}
10 | {% snippet "group/snippets/group_item.html", group=group %}
11 | {% endfor %}
12 |
13 | #}
14 | {% set type = group.type or 'group' %}
15 | {% set url = h.url_for(type ~ '_read', action='read', id=group.name) %}
16 | {% block item %}
17 |
18 | {% block item_inner %}
19 | {% block image %}
20 |
21 | {% endblock %}
22 | {% block title %}
23 | {{ group.display_name }}
24 | {% endblock %}
25 | {% block description %}
26 | {% if group.description %}
27 | {{ h.markdown_extract(group.description, extract_length=80) }}
28 | {% endif %}
29 | {% endblock %}
30 | {% block datasets %}
31 | {% if group.packages %}
32 | {{ ungettext('{num} Dataset', '{num} Datasets', group.packages).format(num=group.packages) }}
33 | {% elif group.packages == 0 %}
34 | {{ _('0 Datasets') }}
35 | {% endif %}
36 | {% endblock %}
37 | {% block link %}
38 |
39 | {{ _('View {name}').format(name=group.display_name) }}
40 |
41 | {% endblock %}
42 | {% if group.user_member %}
43 |
44 | {% endif %}
45 | {% endblock %}
46 |
47 | {% endblock %}
48 | {% if position is divisibleby 3 %}
49 |
50 | {% endif %}
51 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/templates/scheming/package/read.html:
--------------------------------------------------------------------------------
1 | {% extends "package/read_base.html" %}
2 | {% block primary_content_inner %}
3 | {{ super() }}
4 | {% block package_description %}
5 | {% if pkg.private %}
6 |
7 |
8 | {{ _('Private') }}
9 |
10 | {% endif %}
11 |
12 | {% block page_heading %}
13 | {{ h.dataset_display_name(pkg) }}
14 | {% if pkg.state.startswith('draft') %}
15 | [{{ _('Draft') }}]
16 | {% endif %}
17 | {% if pkg.state == 'deleted' %}
18 | [{{ _('Deleted') }}]
19 | {% endif %}
20 | {% endblock %}
21 |
22 | {% block package_notes %}
23 | {% if pkg.notes %}
24 |
25 |
28 | {% endif %}
29 | {% endblock %}
30 | {# FIXME why is this here? seems wrong #}
31 |
32 | {% endblock %}
33 |
34 | {% block package_tags %}
35 |
36 | {% snippet "package/snippets/tags.html", tags=pkg.tags %}
37 | {% if h.dadosgovbr_eouv_is_avaliable() %}
38 | {% if h.dadosgovbr_get_organization_extra(pkg.organization.name, 'siorg') %}
39 | {{pkg.id}}
40 | {{h.dadosgovbr_get_organization_extra(pkg.organization.name, 'siorg').value}}
41 | {% snippet "package/snippets/eouv.html", pkg_id=pkg.id %}
42 | {% endif %}
43 | {% endif %}
44 |
45 | {% endblock %}
46 |
47 | {% block package_resources %}
48 | {% snippet "package/snippets/resources_list.html", pkg=pkg, resources=pkg.resources %}
49 |
50 | {% endblock %}
51 |
52 | {% block package_additional_info %}
53 | {% snippet "scheming/snippets/additional_info.html", pkg_dict=pkg %}
54 | {% endblock %}
55 |
56 | {% endblock %}
--------------------------------------------------------------------------------
/bin/travis-build.bash:
--------------------------------------------------------------------------------
1 | #!/bin/bash
2 | set -e
3 |
4 | echo "This is travis-build.bash..."
5 |
6 | echo "Installing the packages that CKAN requires..."
7 | sudo apt-get update -qq
8 | sudo apt-get install solr-jetty libcommons-fileupload-java
9 |
10 | echo "Installing CKAN and its Python dependencies..."
11 | git clone https://github.com/ckan/ckan
12 | cd ckan
13 | if [ $CKANVERSION == 'master' ]
14 | then
15 | echo "CKAN version: master"
16 | else
17 | CKAN_TAG=$(git tag | grep ^ckan-$CKANVERSION | sort --version-sort | tail -n 1)
18 | git checkout $CKAN_TAG
19 | echo "CKAN version: ${CKAN_TAG#ckan-}"
20 | fi
21 | python setup.py develop
22 | pip install -r requirements.txt --allow-all-external
23 | pip install -r dev-requirements.txt --allow-all-external
24 | cd -
25 |
26 | echo "Setting up Solr..."
27 | # solr is multicore for tests on ckan master now, but it's easier to run tests
28 | # on Travis single-core still.
29 | # see https://github.com/ckan/ckan/issues/2972
30 | sed -i -e 's/solr_url.*/solr_url = http:\/\/127.0.0.1:8983\/solr/' ckan/test-core.ini
31 | printf "NO_START=0\nJETTY_HOST=127.0.0.1\nJETTY_PORT=8983\nJAVA_HOME=$JAVA_HOME" | sudo tee /etc/default/jetty
32 | sudo cp ckan/ckan/config/solr/schema.xml /etc/solr/conf/schema.xml
33 | sudo service jetty restart
34 |
35 | echo "Creating the PostgreSQL user and database..."
36 | sudo -u postgres psql -c "CREATE USER ckan_default WITH PASSWORD 'pass';"
37 | sudo -u postgres psql -c "CREATE USER datastore_default WITH PASSWORD 'pass';"
38 | sudo -u postgres psql -c 'CREATE DATABASE ckan_test WITH OWNER ckan_default;'
39 | sudo -u postgres psql -c 'CREATE DATABASE datastore_test WITH OWNER ckan_default;'
40 |
41 | echo "Initialising the database..."
42 | cd ckan
43 | paster db init -c test-core.ini
44 | cd -
45 |
46 | echo "Installing Mocha for front-end tests..."
47 | npm install -g mocha-phantomjs@3.5.0 phantomjs@~1.9.1
48 |
49 | echo "Installing ckanext-dadosgovbr and its requirements..."
50 | pip install -r pip-requirements.txt
51 | pip install -r dev-requirements.txt
52 |
53 | python setup.py develop
54 |
55 | echo "Moving test.ini into a subdir..."
56 | mkdir subdir
57 | mv test.ini subdir
58 |
59 | echo "travis-build.bash is done."
60 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/sass/_bugfix.scss:
--------------------------------------------------------------------------------
1 | // main: extra.scss
2 |
3 | // Correção de bugs de design da versão antiga dos Dados Abertos.
4 |
5 | // Correção de espaçamentos globais. Provavelmente vindo da importação
6 | // do módulos do Bootstrap 2.x
7 | body div[role='main'] section h1, body div[role='main'] section p, body div[role='main'] section h2, body div[role='main'] section span {
8 | margin-left: initial;
9 | margin-right: initial;
10 | }
11 |
12 |
13 | select, textarea, input[type="text"], input[type="password"], input[type="datetime"], input[type="datetime-local"], input[type="date"], input[type="month"], input[type="time"], input[type="week"], input[type="number"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], input[type="color"], .uneditable-input,
14 | .input-append .add-on, .input-prepend .add-on {
15 | height: initial !important;
16 | }
17 |
18 |
19 | .module-content .pagination {
20 | margin: 20px 0;
21 | }
22 |
23 | // Controles form
24 | .radio, .checkbox {
25 | padding: initial;
26 | }
27 | .radio input[type="radio"], .checkbox input[type="checkbox"], .radio.inline + .radio.inline, .checkbox.inline + .checkbox.inline {
28 | margin: auto;
29 | }
30 | .ui input[type="radio"], .ui input[type="checkbox"] {
31 | margin: 4px 0 0 !important;
32 | }
33 |
34 |
35 | // Correção após reset e semantic-ui
36 | header.module-heading {
37 | padding-top: 18px;
38 | padding-bottom: 18px;
39 | min-height: 61px;
40 | }
41 | h3 {
42 | font-size: 18px;
43 | line-height: 1.3;
44 | }
45 | .ui {
46 | //font-size: 1.2rem !important;
47 | }
48 |
49 | // semantic-ui modal
50 | .modal-backdrop {
51 | z-index: 999;
52 | }
53 | .ui.modal.in .actions {
54 | position: initial;
55 | }
56 | .ui.modal {
57 | top: 20%;
58 | }
59 |
60 |
61 | // Bootstrap 3 GRID
62 | @mixin container{
63 | @include clearfix();
64 | margin: 0 auto;
65 | }
66 |
67 | @mixin row(){
68 | @include clearfix();
69 | }
70 | @mixin column($column, $isLast: false){
71 | @include gridSystem-gridColumn($gridGutterWidth);
72 | @include gridSystem-columns($gridGutterWidth, $gridColumnWidth, $gridColumnWidth, $column);
73 | @if $isLast {
74 | margin-right: 20px
75 | }
76 | }
77 |
78 |
79 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/sass/old/twitter_bootstrap/_modals.scss:
--------------------------------------------------------------------------------
1 | // MODALS
2 | // ------
3 |
4 | // Recalculate z-index where appropriate
5 | .modal-open {
6 | .dropdown-menu { z-index: $zindexDropdown + $zindexModal; }
7 | .dropdown.open { *z-index: $zindexDropdown + $zindexModal; }
8 | .popover { z-index: $zindexPopover + $zindexModal; }
9 | .tooltip { z-index: $zindexTooltip + $zindexModal; }
10 | }
11 |
12 | // Background
13 | .modal-backdrop {
14 | position: fixed;
15 | top: 0;
16 | right: 0;
17 | bottom: 0;
18 | left: 0;
19 | z-index: $zindexModalBackdrop;
20 | background-color: $black;
21 | // Fade for backdrop
22 | &.fade { opacity: 0; }
23 | }
24 |
25 | .modal-backdrop,
26 | .modal-backdrop.fade.in {
27 | @include opacity(80);
28 | }
29 |
30 | // Base modal
31 | .modal {
32 | position: fixed;
33 | top: 50%;
34 | left: 50%;
35 | z-index: $zindexModal;
36 | max-height: 500px;
37 | overflow: auto;
38 | width: 560px;
39 | margin: -250px 0 0 -280px;
40 | background-color: $white;
41 | border: 1px solid #999;
42 | border: 1px solid rgba(0,0,0,.3);
43 | *border: 1px solid #999; /* IE6-7 */
44 | @include border-radius(6px);
45 | @include box-shadow(0 3px 7px rgba(0,0,0,0.3));
46 | @include background-clip(padding-box);
47 | &.fade {
48 | @include transition(opacity .3s linear);
49 | // @include transition(top .3s ease-out);
50 | top: -25%;
51 | }
52 | &.fade.in { top: 50%; }
53 | }
54 | .modal-header {
55 | padding: 9px 15px;
56 | border-bottom: 1px solid #eee;
57 | // Close icon
58 | .close { margin-top: 2px; }
59 | }
60 |
61 | // Body (where all modal content resises)
62 | .modal-body {
63 | padding: 15px;
64 | }
65 | // Remove bottom margin if need be
66 | .modal-body .modal-form {
67 | margin-bottom: 0;
68 | }
69 |
70 | // Footer (for actions)
71 | .modal-footer {
72 | padding: 14px 15px 15px;
73 | margin-bottom: 0;
74 | background-color: #f5f5f5;
75 | border-top: 1px solid #ddd;
76 | @include border-radius(0 0 6px 6px);
77 | @include box-shadow(inset 0 1px 0 $white);
78 | @include clearfix();
79 | .btn {
80 | float: right;
81 | margin-left: 5px;
82 | margin-bottom: 0; // account for input[type="submit"] which gets the bottom margin like all other inputs
83 | }
84 | }
85 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/sass/_pag_wordpress.scss:
--------------------------------------------------------------------------------
1 | // main: extra.scss
2 |
3 | // Notícias (Wordpress API)
4 | // ==========================================================================
5 |
6 | // Lista com todas as notícias
7 | #noticia-list {
8 | h1 {
9 | margin: 0 0 14px;
10 | }
11 |
12 | div.noticia h4 {
13 | font-size: 18px;
14 | }
15 | }
16 |
17 | // Uma única notícia
18 | .noticia {
19 | & > .module {
20 | margin: 0;
21 | }
22 |
23 | noticia-content {
24 | div.module-content {
25 | position: relative;
26 | padding: 0;
27 | @media (max-width: 767px) {
28 | padding: 17px 25px 25px 25px;
29 | }
30 | .conteudo {
31 | padding-top: 10px;
32 | }
33 | }
34 | h1{
35 | margin-bottom: 20px;
36 | font-size: 24px;
37 | }
38 | a, a:link, a:active {
39 | color: #769F29;
40 | text-decoration: none;
41 | }
42 | }
43 |
44 | noticia-sidebar {
45 | // Remove "Continuar lendo..." do Wordpress
46 | .module-content a {
47 | position: absolute !important;
48 | top: -9999px !important;
49 | left: -9999px !important;
50 | }
51 | }
52 | }
53 |
54 |
55 | // Páginas (Wordpress API)
56 | // ==========================================================================
57 | #pagina {
58 | #content {
59 | border: 1px solid #7d99aa;
60 | -moz-box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.3);
61 | -webkit-box-shadow: 0px 10px 15px rgba(0, 0, 0, 0.3);
62 | margin-top: 20px;
63 | margin-bottom: 30px;
64 | font-size: 16px;
65 | line-height: 1.5em;
66 | // -------
67 | -moz-border-radius: 5px;
68 | border-radius: 5px;
69 | margin-bottom: 30px;
70 | background: #ececec url('../img/bg/bg_boxes.png') 0 0 repeat;
71 |
72 | h1 {
73 | margin-top: 0;
74 | margin-bottom: 15px;
75 | }
76 | .wrapper {
77 | background: none;
78 | border: none;
79 | box-shadow: none;
80 | }
81 | .page-header {
82 | background: none;
83 | padding-top: 0;
84 | }
85 |
86 | a, a:link, a:active {
87 | color: #769F29;
88 | text-decoration: none;
89 | }
90 | }
91 |
92 | }
93 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/controllers/aplicativos.py:
--------------------------------------------------------------------------------
1 | # -*- coding: utf-8 -*-
2 |
3 | import ckan.plugins as p
4 | from ckan.lib.base import c, g, render, model
5 | from pylons import request, response
6 | from pylons.controllers.util import redirect
7 | import requests
8 |
9 | # Wordpress integration
10 | import ckanext.dadosgovbr.helpers.wordpress as wp
11 |
12 | # ============================================================
13 | # Aplicativos
14 | # ============================================================
15 | class AplicativosController(p.toolkit.BaseController):
16 | def index (ctrl):
17 | # Query
18 | from ckan.logic import get_action
19 | context = {'model': model, 'session': model.Session,
20 | 'user': c.user or c.author}
21 |
22 | # Get "aplicativos"
23 | data_dict = {'fq': 'type:aplicativo'}
24 | c.aplicativos = get_action('package_search')(context, data_dict)['results']
25 |
26 | # Get page content from Wordpress
27 | wp_page_slug = 'scheming_aplicativos'
28 | c.wp_page = type('Nothing', (object,), {})
29 | c.wp_page.content = type('Nothing', (object,), {})
30 | c.wp_page.content.rendered = "Conteudo da pagina nao encontrado..."
31 | try:
32 | c.wp_page = wp.page(wp_page_slug)
33 | except:
34 | pass
35 |
36 | # DEBUG
37 | # from pprint import pprint
38 | # pprint(c.aplicativos)
39 |
40 |
41 | # Get search params from URL
42 | if request.method == 'GET' and 's' in request.GET:
43 | c.s_result = request.GET['s']
44 | else:
45 | c.s_result = ""
46 |
47 |
48 | return render('scheming/aplicativo/search_bkp.html')
49 |
50 |
51 |
52 | def single (ctrl, title):
53 | from ckan.logic import get_action
54 | context = {'model': model, 'session': model.Session,
55 | 'user': c.user or c.author}
56 |
57 | # Get app
58 | data_dict = {'id': title, 'include_extras': 'True'}
59 | app = get_action('package_show')(context, data_dict)
60 | c.app_dict = app
61 |
62 | # DEBUG
63 | from pprint import pprint
64 | pprint(app)
65 |
66 | c.app_title = title
67 | return render("scheming/aplicativo_modal.html")
68 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/templates/scheming/concurso/read.html:
--------------------------------------------------------------------------------
1 | {% extends "scheming/concurso/read_base.html" %}
2 |
3 | {% block breadcrumb_content %}
4 | {{h.dadosgovbr_get_schema_title(plural=True).title()}}
5 | {{pkg.title|safe}}
6 | {% endblock %}
7 |
8 | {% block primary_content_inner %}
9 | {{ super() }}
10 | {% block package_description %}
11 | {% if pkg.private %}
12 |
13 |
14 | {{ _('Private') }}
15 |
16 | {% endif %}
17 |
18 | {% block page_heading %}
19 | {{ h.dataset_display_name(pkg) }}
20 | {% if pkg.state.startswith('draft') %}
21 | [{{ _('Draft') }}]
22 | {% endif %}
23 | {% if pkg.state == 'deleted' %}
24 | [{{ _('Deleted') }}]
25 | {% endif %}
26 | {% endblock %}
27 |
28 | {% block package_notes %}
29 | {% if pkg.notes %}
30 |
31 |
34 | {% endif %}
35 | {% endblock %}
36 | {# FIXME why is this here? seems wrong #}
37 |
38 | {% endblock %}
39 |
40 | {% block package_tags %}
41 |
42 | {% snippet "package/snippets/tags.html", tags=pkg.tags %}
43 |
44 |
54 | {% endblock %}
55 |
56 | {% block package_resources %}
57 | {% snippet "package/snippets/resources_list.html", pkg=pkg, resources=pkg.resources %}
58 |
59 | {% endblock %}
60 |
61 | {% block package_additional_info %}
62 | {% snippet "scheming/snippets/additional_info.html", pkg_dict=pkg %}
63 | {% endblock %}
64 |
65 | {% endblock %}
66 |
67 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/templates/scheming/inventario/read.html:
--------------------------------------------------------------------------------
1 | {% extends "scheming/inventario/read_base.html" %}
2 |
3 | {% block breadcrumb_content %}
4 | {{h.dadosgovbr_get_schema_title(plural=True).title()}}
5 | {{pkg.title|safe}}
6 | {% endblock %}
7 |
8 | {% block primary_content_inner %}
9 | {{ super() }}
10 | {% block package_description %}
11 | {% if pkg.private %}
12 |
13 |
14 | {{ _('Private') }}
15 |
16 | {% endif %}
17 |
18 | {% block page_heading %}
19 | {{ h.dataset_display_name(pkg) }}
20 | {% if pkg.state.startswith('draft') %}
21 | [{{ _('Draft') }}]
22 | {% endif %}
23 | {% if pkg.state == 'deleted' %}
24 | [{{ _('Deleted') }}]
25 | {% endif %}
26 | {% endblock %}
27 |
28 | {% block package_notes %}
29 | {% if pkg.notes %}
30 |
31 |
34 | {% endif %}
35 | {% endblock %}
36 | {# FIXME why is this here? seems wrong #}
37 |
38 | {% endblock %}
39 |
40 | {% block package_tags %}
41 |
42 | {% snippet "package/snippets/tags.html", tags=pkg.tags %}
43 |
44 |
54 | {% endblock %}
55 |
56 | {% block package_resources %}
57 | {% snippet "package/snippets/resources_list.html", pkg=pkg, resources=pkg.resources %}
58 |
59 | {% endblock %}
60 |
61 | {% block package_additional_info %}
62 | {% snippet "scheming/snippets/additional_info.html", pkg_dict=pkg %}
63 | {% endblock %}
64 |
65 | {% endblock %}
66 |
67 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/templates/scheming/aplicativo/read.html:
--------------------------------------------------------------------------------
1 | {% extends "scheming/aplicativo/read_base.html" %}
2 |
3 | {% block breadcrumb_content %}
4 | {{h.dadosgovbr_get_schema_title(plural=True).title()}}
5 | {{pkg.title|safe}}
6 | {% endblock %}
7 |
8 | {% block primary_content_inner %}
9 | {{ super() }}
10 | {% block package_description %}
11 | {% if pkg.private %}
12 |
13 |
14 | {{ _('Private') }}
15 |
16 | {% endif %}
17 |
18 | {% block page_heading %}
19 | {{ h.dataset_display_name(pkg) }}
20 | {% if pkg.state.startswith('draft') %}
21 | [{{ _('Draft') }}]
22 | {% endif %}
23 | {% if pkg.state == 'deleted' %}
24 | [{{ _('Deleted') }}]
25 | {% endif %}
26 | {% endblock %}
27 |
28 | {% block package_notes %}
29 | {% if pkg.notes %}
30 |
31 |
34 | {% endif %}
35 | {% endblock %}
36 | {# FIXME why is this here? seems wrong #}
37 |
38 | {% endblock %}
39 |
40 | {% block package_tags %}
41 |
42 | {% snippet "package/snippets/tags.html", tags=pkg.tags %}
43 |
44 |
54 | {% endblock %}
55 |
56 | {% block package_resources %}
57 | {% snippet "package/snippets/resources_list.html", pkg=pkg, resources=pkg.resources %}
58 |
59 | {% endblock %}
60 |
61 | {% block package_additional_info %}
62 | {% snippet "scheming/snippets/additional_info.html", pkg_dict=pkg %}
63 | {% endblock %}
64 |
65 | {% endblock %}
66 |
67 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/sass/old/twitter_bootstrap/_progress-bars.scss:
--------------------------------------------------------------------------------
1 | // PROGRESS BARS
2 | // -------------
3 |
4 |
5 | // ANIMATIONS
6 | // ----------
7 |
8 | // Webkit
9 | @-webkit-keyframes progress-bar-stripes {
10 | from { background-position: 0 0; }
11 | to { background-position: 40px 0; }
12 | }
13 |
14 | // Firefox
15 | @-moz-keyframes progress-bar-stripes {
16 | from { background-position: 0 0; }
17 | to { background-position: 40px 0; }
18 | }
19 |
20 | // Spec
21 | @keyframes progress-bar-stripes {
22 | from { background-position: 0 0; }
23 | to { background-position: 40px 0; }
24 | }
25 |
26 |
27 |
28 | // THE BARS
29 | // --------
30 |
31 | // Outer container
32 | .progress {
33 | overflow: hidden;
34 | height: 18px;
35 | margin-bottom: 18px;
36 | @include gradient-vertical(#f5f5f5, #f9f9f9);
37 | @include box-shadow(inset 0 1px 2px rgba(0,0,0,.1));
38 | @include border-radius(4px);
39 | }
40 |
41 | // Bar of progress
42 | .progress .bar {
43 | width: 0%;
44 | height: 18px;
45 | color: $white;
46 | font-size: 12px;
47 | text-align: center;
48 | text-shadow: 0 -1px 0 rgba(0,0,0,.25);
49 | @include gradient-vertical(#149bdf, #0480be);
50 | @include box-shadow(inset 0 -1px 0 rgba(0,0,0,.15));
51 | @include box-sizing(border-box);
52 | @include transition(width .6s ease);
53 | }
54 |
55 | // Striped bars
56 | .progress-striped .bar {
57 | @include gradient-striped(#62c462);
58 | @include background-size(40px 40px);
59 | }
60 |
61 | // Call animation for the active one
62 | .progress.active .bar {
63 | -webkit-animation: progress-bar-stripes 2s linear infinite;
64 | -moz-animation: progress-bar-stripes 2s linear infinite;
65 | animation: progress-bar-stripes 2s linear infinite;
66 | }
67 |
68 |
69 |
70 | // COLORS
71 | // ------
72 |
73 | // Danger (red)
74 | .progress-danger .bar {
75 | @include gradient-vertical(#ee5f5b, #c43c35);
76 | }
77 | .progress-danger.progress-striped .bar {
78 | @include gradient-striped(#ee5f5b);
79 | }
80 |
81 | // Success (green)
82 | .progress-success .bar {
83 | @include gradient-vertical(#62c462, #57a957);
84 | }
85 | .progress-success.progress-striped .bar {
86 | @include gradient-striped(#62c462);
87 | }
88 |
89 | // Info (teal)
90 | .progress.info .bar {
91 | @include gradient-vertical(#5bc0de, #339bb9);
92 | }
93 | .progress-info.progress-striped .bar {
94 | @include gradient-striped(#5bc0de);
95 | }
96 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/templates/snippets/search_result_text.html:
--------------------------------------------------------------------------------
1 | {#
2 |
3 | Displays a test for results of a search.
4 |
5 | query - The text that was searched for
6 | count - The number of results for the search
7 | type - Search result type (dataset, group, organization)
8 |
9 | Example:
10 |
11 | {% snippet 'snippets/search_result_text.html', query=query, count=count, type='dataset' %}
12 |
13 | #}
14 | {% if type == 'dataset' %}
15 | {% set pkg_name=h.dadosgovbr_get_schema_title() %}
16 | {% set pkg_name_plural=h.dadosgovbr_get_schema_title(plural=True) %}
17 | {% set text_query = ungettext('{number} pkg_name encontrado para "{query}"'.replace('pkg_name',pkg_name), '{number} pkg_name_plural encontrados para "{query}"'.replace('pkg_name_plural',pkg_name_plural), count) %}
18 | {% set text_query_none = _('Nenhum pkg_name encontrado para "{query}"'.replace('pkg_name',pkg_name)) %}
19 | {% set text_no_query = ungettext('{number} pkg_name encontrado(s)'.replace('pkg_name',pkg_name), '{number} pkg_name_plural encontrado(s)', count).replace('pkg_name_plural',pkg_name_plural) %}
20 | {% set text_no_query_none = _('Nenhum pkg_name encontrado'.replace('pkg_name',pkg_name)) %}
21 |
22 | {% elif type == 'group' %}
23 | {% set text_query = ungettext('{number} group found for "{query}"', '{number} groups found for "{query}"', count) %}
24 | {% set text_query_none = _('No groups found for "{query}"') %}
25 | {% set text_no_query = ungettext('{number} group found', '{number} groups found', count) %}
26 | {% set text_no_query_none = _('No groups found') %}
27 |
28 | {% elif type == 'organization' %}
29 | {% set text_query = ungettext('{number} organization found for "{query}"', '{number} organizations found for "{query}"', count) %}
30 | {% set text_query_none = _('No organizations found for "{query}"') %}
31 | {% set text_no_query = ungettext('{number} organization found', '{number} organizations found', count) %}
32 | {% set text_no_query_none = _('No organizations found') %}
33 | {%- endif -%}
34 |
35 | {% if query %}
36 | {%- if count -%}
37 | {{ text_query.format(number=h.localised_number(count), query=query) }}
38 | {%- else -%}
39 | {{ text_query_none.format(query=query) }}
40 | {%- endif -%}
41 | {%- else -%}
42 | {%- if count -%}
43 | {{ text_no_query.format(number=h.localised_number(count)) }}
44 | {%- else -%}
45 | {{ text_no_query_none }}
46 | {%- endif -%}
47 | {%- endif -%}
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/public/sass/old/twitter_bootstrap/_carousel.scss:
--------------------------------------------------------------------------------
1 | // CAROUSEL
2 | // --------
3 |
4 | .carousel {
5 | position: relative;
6 | margin-bottom: $baseLineHeight;
7 | line-height: 1;
8 | }
9 |
10 | .carousel-inner {
11 | overflow: hidden;
12 | width: 100%;
13 | position: relative;
14 | }
15 |
16 | .carousel {
17 |
18 | .item {
19 | display: none;
20 | position: relative;
21 | @include transition(.6s ease-in-out left);
22 | }
23 |
24 | // Account for jankitude on images
25 | .item > img {
26 | display: block;
27 | line-height: 1;
28 | }
29 |
30 | .active,
31 | .next,
32 | .prev { display: block; }
33 |
34 | .active {
35 | left: 0;
36 | }
37 |
38 | .next,
39 | .prev {
40 | position: absolute;
41 | top: 0;
42 | width: 100%;
43 | }
44 |
45 | .next {
46 | left: 100%;
47 | }
48 | .prev {
49 | left: -100%;
50 | }
51 | .next.left,
52 | .prev.right {
53 | left: 0;
54 | }
55 |
56 | .active.left {
57 | left: -100%;
58 | }
59 | .active.right {
60 | left: 100%;
61 | }
62 |
63 | }
64 |
65 | // Left/right controls for nav
66 | // ---------------------------
67 |
68 | .carousel-control {
69 | position: absolute;
70 | top: 40%;
71 | left: 15px;
72 | width: 40px;
73 | height: 40px;
74 | margin-top: -20px;
75 | font-size: 60px;
76 | font-weight: 100;
77 | line-height: 30px;
78 | color: $white;
79 | text-align: center;
80 | background: $grayDarker;
81 | border: 3px solid $white;
82 | @include border-radius(23px);
83 | @include opacity(50);
84 |
85 | // we can't have this transition here
86 | // because webkit cancels the carousel
87 | // animation if you trip this while
88 | // in the middle of another animation
89 | // ;_;
90 | // .transition(opacity .2s linear);
91 |
92 | // Reposition the right one
93 | &.right {
94 | left: auto;
95 | right: 15px;
96 | }
97 |
98 | // Hover state
99 | &:hover {
100 | color: $white;
101 | text-decoration: none;
102 | @include opacity(90);
103 | }
104 | }
105 |
106 | // Caption for text below images
107 | // -----------------------------
108 |
109 | .carousel-caption {
110 | position: absolute;
111 | left: 0;
112 | right: 0;
113 | bottom: 0;
114 | padding: 10px 15px 5px;
115 | background: $grayDark;
116 | background: rgba(0,0,0,.75);
117 | }
118 | .carousel-caption h4,
119 | .carousel-caption p {
120 | color: $white;
121 | }
122 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/templates/package/read.html:
--------------------------------------------------------------------------------
1 | {% set pkg = c.pkg_dict %}
2 |
3 | {# Scheming pages #}
4 | {% set pkg_type = h.dadosgovbr_get_schema_name() %}
5 | {% set pkg_type = '' %}
6 | {% if pkg_type == 'aplicativo' %}
7 | {% snippet "scheming/aplicativo/read.html", pkg=pkg %}
8 | {% elif pkg_type == 'concurso' %}
9 | {% snippet "scheming/concurso/read.html", pkg=pkg %}
10 | {% elif pkg_type == 'inventario' %}
11 | {% snippet "scheming/inventario/read.html", pkg=pkg %}
12 |
13 | {% else %}
14 | {% extends "package/read_base.html" %}
15 | {% block primary_content_inner %}
16 | {{ super() }}
17 | {% block package_description %}
18 | {% if pkg.private %}
19 |
20 |
21 | {{ _('Private') }}
22 |
23 | {% endif %}
24 |
25 | {% block page_heading %}
26 | {{ h.dataset_display_name(pkg) }}
27 | {% if pkg.state.startswith('draft') %}
28 | [{{ _('Draft') }}]
29 | {% endif %}
30 | {% if pkg.state == 'deleted' %}
31 | [{{ _('Deleted') }}]
32 | {% endif %}
33 | {% endblock %}
34 |
35 | {% block package_notes %}
36 | {% if pkg.notes %}
37 |
38 |
41 | {% endif %}
42 | {% endblock %}
43 | {# FIXME why is this here? seems wrong #}
44 |
45 | {% endblock %}
46 |
47 | {% block package_tags %}
48 |
49 | {% snippet "package/snippets/tags.html", tags=pkg.tags %}
50 |
51 | {% if h.dadosgovbr_eouv_is_avaliable() %}
52 | {% if h.dadosgovbr_get_organization_extra(pkg.organization.name, 'siorg') %}
53 | {{pkg.id}}
54 | {{pkg.name}}
55 | {{h.dadosgovbr_get_organization_extra(pkg.organization.name, 'siorg').value}}
56 | {% snippet "package/snippets/eouv.html", pkg_name=pkg.name %}
57 | {% endif %}
58 | {% endif %}
59 |
60 | {% endblock %}
61 |
62 | {% block package_resources %}
63 | {% snippet "package/snippets/resources_list.html", pkg=pkg, resources=pkg.resources %}
64 |
65 | {% endblock %}
66 |
67 | {% block package_additional_info %}
68 | {% snippet "package/snippets/additional_info.html", pkg_dict=pkg %}
69 | {% endblock %}
70 |
71 | {% endblock %}
72 |
73 |
74 | {% endif %}
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/templates/scheming/aplicativo/read_base.html:
--------------------------------------------------------------------------------
1 | {% extends "package/base.html" %}
2 |
3 | {% block subtitle %}{{ h.dataset_display_name(pkg) }} - {{ super() }}{% endblock %}
4 |
5 | {% block head_extras -%}
6 | {{ super() }}
7 | {% set description = h.markdown_extract(pkg.notes, extract_length=200)|forceescape %}
8 |
9 |
10 | {% endblock -%}
11 |
12 | {% block content_action %}
13 | {% if h.check_access('package_update', {'id':pkg.id }) %}
14 | {% link_for _('Manage'), controller='package', action='edit', id=pkg.name, class_='btn', icon='wrench' %}
15 | {% endif %}
16 | {% endblock %}
17 |
18 | {% block content_primary_nav %}
19 |
20 | {{h.dadosgovbr_get_schema_title().title()}}
21 |
22 | {% if c.userobj.sysadmin %}
23 | {{ h.build_nav_icon('dataset_groups', _('Groups'), id=pkg.name) }}
24 | {{ h.build_nav_icon('dataset_activity', _('Activity Stream'), id=pkg.name) }}
25 | {% endif %}
26 | {% endblock %}
27 |
28 | {% block primary_content_inner %}
29 | {% block package_revision_info %}
30 | {% if c.revision_date %}
31 |
32 |
33 | {% set timestamp = h.render_datetime(c.revision_date, with_hours=True) %}
34 | {% set url = h.url_for(controller='package', action='read', id=pkg.name) %}
35 |
36 | {% trans timestamp=timestamp, url=url %}This is an old revision of this dataset, as edited at {{ timestamp }}. It may differ significantly from the current revision.{% endtrans %}
37 |
38 |
39 | {% endif %}
40 | {% endblock %}
41 | {% endblock %}
42 |
43 | {% block secondary_content %}
44 |
45 | {% block secondary_help_content %}{% endblock %}
46 |
47 | {% block package_info %}
48 | {% snippet 'package/snippets/info.html', pkg=pkg %}
49 | {% endblock %}
50 |
51 | {% block package_organization %}
52 | {% if pkg.organization %}
53 | {% set org = h.get_organization(pkg.organization.name) %}
54 | {% snippet "snippets/organization.html", organization=org, has_context_title=true %}
55 | {% endif %}
56 | {% endblock %}
57 |
58 | {% block package_social %}
59 | {% snippet "snippets/social.html" %}
60 | {% endblock %}
61 |
62 | {% block package_license %}
63 | {% snippet "snippets/license.html", pkg_dict=pkg %}
64 | {% endblock %}
65 |
66 | {% endblock %}
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/templates/scheming/concurso/read_base.html:
--------------------------------------------------------------------------------
1 | {% extends "package/base.html" %}
2 |
3 | {% block subtitle %}{{ h.dataset_display_name(pkg) }} - {{ super() }}{% endblock %}
4 |
5 | {% block head_extras -%}
6 | {{ super() }}
7 | {% set description = h.markdown_extract(pkg.notes, extract_length=200)|forceescape %}
8 |
9 |
10 | {% endblock -%}
11 |
12 | {% block content_action %}
13 | {% if h.check_access('package_update', {'id':pkg.id }) %}
14 | {% link_for _('Manage'), controller='package', action='edit', id=pkg.name, class_='btn', icon='wrench' %}
15 | {% endif %}
16 | {% endblock %}
17 |
18 | {% block content_primary_nav %}
19 |
20 | {{h.dadosgovbr_get_schema_title().title()}}
21 |
22 | {% if c.userobj.sysadmin %}
23 | {{ h.build_nav_icon('dataset_groups', _('Groups'), id=pkg.name) }}
24 | {{ h.build_nav_icon('dataset_activity', _('Activity Stream'), id=pkg.name) }}
25 | {% endif %}
26 | {% endblock %}
27 |
28 | {% block primary_content_inner %}
29 | {% block package_revision_info %}
30 | {% if c.revision_date %}
31 |
32 |
33 | {% set timestamp = h.render_datetime(c.revision_date, with_hours=True) %}
34 | {% set url = h.url_for(controller='package', action='read', id=pkg.name) %}
35 |
36 | {% trans timestamp=timestamp, url=url %}This is an old revision of this dataset, as edited at {{ timestamp }}. It may differ significantly from the current revision.{% endtrans %}
37 |
38 |
39 | {% endif %}
40 | {% endblock %}
41 | {% endblock %}
42 |
43 | {% block secondary_content %}
44 |
45 | {% block secondary_help_content %}{% endblock %}
46 |
47 | {% block package_info %}
48 | {% snippet 'package/snippets/info.html', pkg=pkg %}
49 | {% endblock %}
50 |
51 | {% block package_organization %}
52 | {% if pkg.organization %}
53 | {% set org = h.get_organization(pkg.organization.name) %}
54 | {% snippet "snippets/organization.html", organization=org, has_context_title=true %}
55 | {% endif %}
56 | {% endblock %}
57 |
58 | {% block package_social %}
59 | {% snippet "snippets/social.html" %}
60 | {% endblock %}
61 |
62 | {% block package_license %}
63 | {% snippet "snippets/license.html", pkg_dict=pkg %}
64 | {% endblock %}
65 |
66 | {% endblock %}
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/templates/scheming/inventario/read_base.html:
--------------------------------------------------------------------------------
1 | {% extends "package/base.html" %}
2 |
3 | {% block subtitle %}{{ h.dataset_display_name(pkg) }} - {{ super() }}{% endblock %}
4 |
5 | {% block head_extras -%}
6 | {{ super() }}
7 | {% set description = h.markdown_extract(pkg.notes, extract_length=200)|forceescape %}
8 |
9 |
10 | {% endblock -%}
11 |
12 | {% block content_action %}
13 | {% if h.check_access('package_update', {'id':pkg.id }) %}
14 | {% link_for _('Manage'), controller='package', action='edit', id=pkg.name, class_='btn', icon='wrench' %}
15 | {% endif %}
16 | {% endblock %}
17 |
18 | {% block content_primary_nav %}
19 |
20 | {{h.dadosgovbr_get_schema_title().title()}}
21 |
22 | {% if c.userobj.sysadmin %}
23 | {{ h.build_nav_icon('dataset_groups', _('Groups'), id=pkg.name) }}
24 | {{ h.build_nav_icon('dataset_activity', _('Activity Stream'), id=pkg.name) }}
25 | {% endif %}
26 | {% endblock %}
27 |
28 | {% block primary_content_inner %}
29 | {% block package_revision_info %}
30 | {% if c.revision_date %}
31 |
32 |
33 | {% set timestamp = h.render_datetime(c.revision_date, with_hours=True) %}
34 | {% set url = h.url_for(controller='package', action='read', id=pkg.name) %}
35 |
36 | {% trans timestamp=timestamp, url=url %}This is an old revision of this dataset, as edited at {{ timestamp }}. It may differ significantly from the current revision.{% endtrans %}
37 |
38 |
39 | {% endif %}
40 | {% endblock %}
41 | {% endblock %}
42 |
43 | {% block secondary_content %}
44 |
45 | {% block secondary_help_content %}{% endblock %}
46 |
47 | {% block package_info %}
48 | {% snippet 'package/snippets/info.html', pkg=pkg %}
49 | {% endblock %}
50 |
51 | {% block package_organization %}
52 | {% if pkg.organization %}
53 | {% set org = h.get_organization(pkg.organization.name) %}
54 | {% snippet "snippets/organization.html", organization=org, has_context_title=true %}
55 | {% endif %}
56 | {% endblock %}
57 |
58 | {% block package_social %}
59 | {% snippet "snippets/social.html" %}
60 | {% endblock %}
61 |
62 | {% block package_license %}
63 | {% snippet "snippets/license.html", pkg_dict=pkg %}
64 | {% endblock %}
65 |
66 | {% endblock %}
--------------------------------------------------------------------------------
/README.md:
--------------------------------------------------------------------------------
1 | [](https://travis-ci.org/dadosgovbr/ckanext-dadosgovbr)
2 |
3 | # ckanext-dadosgovbr
4 | Plugin / Tema do Portal de Dados Abertos do Governo Federal - Brasil
5 |
6 | ## Requisitos
7 |
8 | - CKAN 2.5.x / 2.6.x
9 | - Um grupo criado com o "name" igual a "dados-em-destaque"
10 | - Plugin: ckanext-scheming
11 |
12 |
13 | ## Instalação ckanext-dadosgovbr
14 |
15 | Ative o virtualenv:
16 | ```
17 | # Entre no usuário onde o CKAN foi instalado
18 | su ckan
19 |
20 | # Ative o virtualenv
21 | . /usr/lib/ckan/default/bin/activate
22 |
23 | # Acesse o diretório de plugins
24 | cd /usr/lib/ckan/default/src
25 | ```
26 |
27 | Instale o ckanext-dadosgovbr e as dependências:
28 | ```
29 | # Instale o ckanext-dadosgovbr (última versão Beta)
30 | pip install -e git+https://github.com/dadosgovbr/ckanext-dadosgovbr.git@beta#egg=ckanext-dadosgovbr
31 |
32 | # Instale as dependências
33 | pip install -r /usr/lib/ckan/default/src/ckanext-dadosgovbr/pip-requirements.txt
34 |
35 | # Configure o plugin
36 | cd /usr/lib/ckan/default/src/ckanext-dadosgovbr && python setup.py develop
37 | ```
38 |
39 |
40 | ## Configuração adicional
41 |
42 | ### Wordpress
43 | - O Wordpress precisa estar na versão 4.7 ou superior.
44 | - O plugin [WP-API/rest-filter](https://github.com/thenets/rest-filter) precisa estar instalado e ativado no Wordpress.
45 | - Adicione no arquivo `/etc/ckan/default/development.ini` as seguintes linhas, abaixo de `ckan.plugins = ...`:
46 | ```
47 | # ckanext-dadosgovbr
48 | wordpress.domain = http://wordpress_url_aqui/
49 | ```
50 |
51 | ### Scheming
52 | Para ativar o suporte ao [ckanext-scheming](https://github.com/ckan/ckanext-scheming) e permitir novos tipos de pacotes criados pelo dados.gov.br, como "Inventário", "Concurso" e "Aplicativo", você deve instalar o ckanext-scheming e o ckanext-dadosgovbrschema:
53 |
54 | Ative o virtualenv:
55 | ```
56 | # Entre no usuário onde o CKAN foi instalado
57 | su ckan
58 |
59 | # Ative o virtualenv
60 | . /usr/lib/ckan/default/bin/activate
61 |
62 | # Acesse o diretório de plugins
63 | cd /usr/lib/ckan/default/src
64 | ```
65 |
66 | Instale o ckanext-scheming:
67 |
68 | ```
69 | # Instale o ckanext-scheming
70 | pip install -e git+https://github.com/ckan/ckanext-scheming.git#egg=ckanext-scheming
71 |
72 | # Instale as dependências
73 | pip install -r /usr/lib/ckan/default/src/ckanext-scheming/requirements.txt
74 | ```
75 |
76 | Instale o ckanext-dadosgovbrschema:
77 |
78 | ```
79 | # Instale o ckanext-dadosgovbrschema (última versão)
80 | pip install -e git+https://github.com/dadosgovbr/ckanext-dadosgovbrschema.git@beta#egg=ckanext-dadosgovbrschema
81 |
82 | # Instale as dependências
83 | pip install -r /usr/lib/ckan/default/src/ckanext-dadosgovbrschema/pip-requirements.txt
84 |
85 | # Configure o plugin
86 | cd /usr/lib/ckan/default/src/ckanext-dadosgovbrschema && python setup.py develop
87 | ```
88 |
89 | Adicione no arquivo `/etc/ckan/default/development.ini` as seguintes linhas, abaixo da definição dos plugins:
90 | ```
91 | scheming.dataset_schemas = ckanext.dadosgovbrschema:schema_aplicativo.json
92 | ckanext.dadosgovbrschema:schema_inventario.json
93 | ckanext.dadosgovbrschema:schema_concurso.json
94 | ```
95 |
96 |
--------------------------------------------------------------------------------
/ckanext/dadosgovbr/templates/report/view.html:
--------------------------------------------------------------------------------
1 | {% extends "page.html" %}
2 |
3 | {% block title %}{{ report.title }} - {{ _('Reports') }} - {{ super() }}{% endblock %}
4 |
5 | {% block breadcrumb_content %}
6 | {{ h.build_nav('reports', _('Reports')) }}
7 | {{ h.build_nav('report-org' if '/organization' in request.environ.get('PATH_INFO', '') else 'report', report.title, report_name=report_name) }}
8 | {% endblock%}
9 |
10 | {% block secondary %}
11 | {% endblock%}
12 | {% block primary %}
13 |
14 | {% block primary_content %}
15 | {{super()}}
16 | {% endblock %}
17 |
18 | {% endblock %}
19 |
20 | {% block primary_content_inner %}
21 | {{ report.title }}
22 | {{ report.description }}
23 |
24 | {{ _('Generated') }}: {{ h.report__render_datetime(report_date, '%d/%m/%Y %H:%M') }}
25 |
26 | {% if c.userobj.sysadmin %}
27 |
28 | {% trans %}Refresh report{% endtrans %}
29 |
30 |
33 | {{ _('As a system administrator you are able to refresh this report on demand by clicking the \'Refresh\' button.') }}
34 |
35 |
36 | {% endif %}
37 |
38 | {% if options %}
39 | {{ _('Options') }}
40 |
51 | {% endif %}
52 |
53 | {% if are_some_results %}
54 |
59 | {% endif %}
60 | {{ _('Results') }}
61 | {% if not are_some_results %}
62 | {{ _('No results found.') }}
63 | {% else %}
64 |
65 | {% snippet report_template, table=data['table'], data=data, report_name=report_name, options=options %}
66 |
67 | {% endif %}
68 | {{h.dadosgovbr_format_timestamp(post.date,'%d/%m/%Y')}}
77 |{{post.excerpt.rendered|safe}}
79 | 80 |{{ _("This dataset has no description") }}
62 | {% endif %} 63 | {% endblock %} 64 |