Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Consul pull ⬇️ #881

Merged
merged 182 commits into from
Sep 15, 2017
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
182 commits
Select commit Hold shift + click to select a range
fa6f41b
Bundle Update on 2017-07-12
deppbot Jul 12, 2017
456429f
adds shifts
voodoorai2000 Aug 4, 2017
bf192f3
highlights shift's menu instead of booths
voodoorai2000 Aug 4, 2017
0aba196
adds specs for shifts
voodoorai2000 Aug 4, 2017
9181610
removes obsolete code
voodoorai2000 Aug 4, 2017
65b13f4
Change log level in production to warn
artofhuman Jun 18, 2017
a141c82
Create new polymorphic model Document.
Senen Jul 20, 2017
34d06da
Add document model validations and model shared specs.
Senen Jul 21, 2017
c92827e
Add abilities to documentable authors and admins to create and destro…
Senen Jul 21, 2017
a213068
Create documentable concern and add it to budget investment model. Cr…
Senen Jul 21, 2017
586776e
Add documentable to proposal model.
Senen Jul 21, 2017
1c83507
Changed icon-documents color.
agileontheweb Jul 21, 2017
143c888
Center in the page new document-form. Added style recommendations sid…
agileontheweb Jul 21, 2017
27b3c60
Added style button download and remove. Removed border on table.
agileontheweb Jul 21, 2017
4629318
Fix back link on document new page.
Senen Jul 21, 2017
6b61cbe
Set maximum number of documents on proposal and budget investments. S…
Senen Jul 21, 2017
62372aa
Added translation buttons download, destroy, link. Remove white space.
agileontheweb Jul 21, 2017
38d4d59
Add arguments to documentable concern to make it configurable for any…
Senen Jul 21, 2017
3a7c9d9
Add documentables helper
Senen Jul 21, 2017
63621aa
Style radio buttons. Added icon inside the table. Adjusted buttons wi…
agileontheweb Jul 22, 2017
17ad148
Fix i18n translations warnings.
Senen Jul 24, 2017
92e8468
Use documentables helper method within specs and document model.
Senen Jul 24, 2017
e266826
Added margin bottom to attachment-errors. Remove unused space between…
agileontheweb Jul 24, 2017
0edd5d8
Add missing class to file input custom error to hide and show correctly.
Senen Jul 24, 2017
a709cd0
Add accept HTML attribute to documents form file input.
Senen Jul 24, 2017
c438e51
Add rel attribute with nofollow value.
Senen Jul 24, 2017
593da5e
Show maximum number of document reached notice only when current user…
Senen Jul 24, 2017
45fc5c4
Changed primary class with warning class in the callout. Added strong…
agileontheweb Jul 26, 2017
9a0b34f
Install jquery-file-upload assets for rails.
Senen Jul 31, 2017
e327b42
Ajax file upload to tmp dir. Add cached_attachment to document. Recov…
Senen Jul 31, 2017
e9c5f77
Accept nested attributes for documents on proposals. Adapt documentab…
Senen Aug 12, 2017
f226d2a
Fix edit and update actions
Senen Aug 14, 2017
4cfe841
Create separate reusable partial for nested document fields.
Senen Aug 18, 2017
0b23467
Fix partial variable name
Senen Aug 18, 2017
723173a
Show validation errors on nested documents.
Senen Aug 18, 2017
cc89907
Add nested documents to proposal form.
Senen Aug 23, 2017
a06eec3
Temporal fix to file upload files
Senen Aug 23, 2017
0db49fd
Fix translations error and refactor nested documentable shared exampl…
Senen Aug 23, 2017
d34216b
Refactor nested documentable spec
Senen Aug 23, 2017
4081dde
Add nested documents to new budgetinvestments.
Senen Aug 23, 2017
8e91bbe
Fix document validations specs
Senen Aug 23, 2017
0fbffdc
Fix abilities definition and related specs
Senen Aug 24, 2017
1be9d40
Fix capybara error when attaching a file to hidden file input.
Senen Aug 24, 2017
a32849c
Changed style button. Add margin top progress bar.
agileontheweb Aug 24, 2017
cae588a
Refactor scss. Pass scss-lint.
agileontheweb Aug 24, 2017
2e1d98c
Fix use of an old route
Senen Aug 24, 2017
f4ac8b1
Store AJAX uploaded documents with timestamp prefix to avoid file nam…
Senen Aug 24, 2017
d67ad6d
Fix overlapping error on Travis with make_visible option on attach_fi…
Senen Aug 24, 2017
b2a6189
Views and helpers refactor
Senen Aug 25, 2017
796e6f9
Code adaptation to work with nested documents and plain documents.
Senen Aug 25, 2017
2fdbbf1
Fix back link
Senen Aug 25, 2017
b0e4c5d
Hide progress bar for remove white space on init form. Added display …
agileontheweb Aug 25, 2017
57930df
Remove unused code
Senen Aug 25, 2017
4e7e141
includes help header and footer on debates and proposals
decabeza Aug 29, 2017
5e6d1d7
Use absolute urls on document cached_attachment
Senen Aug 30, 2017
6d66077
Make documentable capable to work with local or remote storage system.
Senen Aug 30, 2017
c15b78b
adds i18n ignore for section_header keys
decabeza Aug 30, 2017
e24e9df
adds section header on polls, make filter styles consistent
decabeza Aug 30, 2017
7a1a18b
improves icons for help sections
decabeza Aug 30, 2017
5581445
Use different path to store ajax uploaded cached attachments
Senen Aug 31, 2017
ff66909
includes help sections to legislation processes
decabeza Aug 31, 2017
6e58a32
includes help sections to budgets
decabeza Aug 31, 2017
79a461f
simplifies css classes on section header partial
decabeza Aug 31, 2017
bd274bd
replaces consul images with new logo
decabeza Sep 1, 2017
ab013bd
adds brand guidelines
decabeza Sep 1, 2017
5949f7a
uppercase all consul name
decabeza Sep 1, 2017
68591fa
removes image and improves layout of welcome index page
decabeza Sep 1, 2017
c3277d5
Change direct uploads path
Senen Sep 1, 2017
15a4d26
Keep original filename for attachments
Senen Sep 1, 2017
dd0452e
updates texts on specs
decabeza Sep 1, 2017
4aeb4fc
Merge pull request #1808 from consul/consul-brand
bertocq Sep 1, 2017
9665548
Small corrections on english translations for help texts
bertocq Sep 1, 2017
3d3d015
Some cleaning.
Senen Sep 1, 2017
e94ef72
Merge pull request #1807 from consul/help-headers
bertocq Sep 1, 2017
c68923c
adds helper to prevent show empty admin menu
decabeza Sep 1, 2017
dd6ad52
improves show_admin_menu helper
decabeza Sep 1, 2017
d676018
remove condition on current poll officer helper
decabeza Sep 1, 2017
6fa1401
Merge pull request #1810 from consul/admin-menu
bertocq Sep 4, 2017
a5b6620
Merge pull request #1664 from artofhuman/log
voodoorai2000 Sep 4, 2017
99006c2
Merge pull request #1747 from consul/bundle-update-2017-07-12-083432
voodoorai2000 Sep 5, 2017
ee3b3f2
Merge pull request #1809 from rockandror/documentable-ajax
voodoorai2000 Sep 5, 2017
de63a25
Update invisible_captcha to version 0.9.3
depfu[bot] Sep 5, 2017
c6b61b6
minimises section header space and main consul logo
decabeza Sep 5, 2017
1d17e0c
replace header text with back link
decabeza Sep 4, 2017
da1f72e
improves legislation processes header layout
decabeza Sep 4, 2017
a15a75a
cleans legislation process scss
decabeza Sep 4, 2017
6d25a0c
Update savon to version 2.11.2
depfu[bot] Sep 5, 2017
43c17c3
Add communities and topics
taitus Aug 7, 2017
579a174
Sidebar: Added button to access the community. Created community.yml.
agileontheweb Aug 7, 2017
c6e4894
Add timestamps to Topic. Add fields on topic list.
taitus Aug 7, 2017
ebf62ef
Show: Created jumbo light and converted plain text to yml.
agileontheweb Aug 7, 2017
7cf9324
remove tag.
agileontheweb Aug 7, 2017
bea393b
Add comments to topics
taitus Aug 7, 2017
d8b4323
Add comments tab to topic show
taitus Aug 7, 2017
bc95b6f
Add description as comment on topic.
taitus Aug 7, 2017
08f58b8
Add participants to community
taitus Aug 7, 2017
b4cdca2
Added style show community.
agileontheweb Aug 7, 2017
1dc3cd4
Add paginate to topics
taitus Aug 7, 2017
a1d37fa
Add order on topic index.
taitus Aug 7, 2017
83683eb
Changed community.yml buttons.
agileontheweb Aug 7, 2017
11f6515
Style topic show. Fix tabs-panel.
agileontheweb Aug 8, 2017
e5fb90f
Renaming class. Topic show: Added author_info.
agileontheweb Aug 8, 2017
322ecf4
Changed some translations.
agileontheweb Aug 8, 2017
35f6ce4
Translate button editar. Activated translations into wide_order_selec…
agileontheweb Aug 9, 2017
a68c230
Added tag is-author in tab Participants
agileontheweb Aug 9, 2017
1c1ac4c
Added translate (most commented) into wide-order-selector
agileontheweb Aug 9, 2017
1e60bc5
Remove some css. Pass scss-lint
agileontheweb Aug 9, 2017
8205304
Changed column into wide-order-selector.
agileontheweb Aug 9, 2017
555c47e
Clean code.
agileontheweb Aug 9, 2017
4539c5f
Refactor and tests.
taitus Aug 10, 2017
895c942
Add community to investments
taitus Aug 23, 2017
69a97bb
Added to the button create theme the property pointer-events: none. N…
agileontheweb Aug 25, 2017
5f5eaec
Correct name in community.yml
agileontheweb Aug 25, 2017
b143682
Changed image_tag property.
agileontheweb Aug 25, 2017
188d492
Add tag author to participants
taitus Aug 25, 2017
54cf210
Fix rebase with master.
taitus Aug 28, 2017
74958b4
Add new model concern Communitable with relation, callback and associ…
taitus Aug 29, 2017
0d76004
Simplify and refactor method to calculate community participants
taitus Aug 29, 2017
456672c
Add partial with access button to community.
taitus Aug 29, 2017
ec309de
Add partial with participants on community show page.
taitus Aug 29, 2017
8f7356f
Add missing spec. Improve readability on topics files
taitus Aug 29, 2017
90518d4
Refactor participants. Add scopes on User.
taitus Aug 29, 2017
dcaa101
Relocate User model spec to Community model spec.
taitus Aug 29, 2017
e1a7f9c
Add community to Global Settings
taitus Aug 29, 2017
5d22558
Fix specs
taitus Aug 29, 2017
634d782
Fixed error label.
agileontheweb Aug 30, 2017
3af5ace
Added style to icons recommendations topic.
agileontheweb Aug 30, 2017
6b042de
Add translates to settings
taitus Aug 30, 2017
8d0ba0b
Display tag author only proposal or budget investment author
taitus Aug 30, 2017
3516c65
Fix community particpants spec
taitus Aug 30, 2017
f67f4c8
If there is no theme, add text and link.
agileontheweb Aug 30, 2017
9c7cd7d
Fix features communities spec
taitus Aug 30, 2017
47f8978
Refactor translates and indent.
taitus Aug 30, 2017
62003b3
Add back link on community show. Add styles on login to create topic.
taitus Sep 1, 2017
d8e9aad
Fix community access text.
taitus Sep 1, 2017
56eb30c
Add associate community rake task.
taitus Sep 5, 2017
2e781a8
Update rspec-rails to version 3.6.1
depfu[bot] Sep 5, 2017
da7b53a
Refactor spec.
taitus Sep 5, 2017
e20ac83
fixes wrong close tag
decabeza Sep 5, 2017
4b7200f
fixes quotes on active class for key dates
decabeza Sep 5, 2017
879bfa8
Merge pull request #1816 from consul/depfu/update/rspec-rails-3.6.1
voodoorai2000 Sep 5, 2017
ab90ec5
Merge pull request #1814 from consul/depfu/update/savon-2.11.2
voodoorai2000 Sep 5, 2017
734a8c2
Merge pull request #1812 from consul/depfu/update/invisible_captcha-0…
voodoorai2000 Sep 5, 2017
eb4528e
Merge branch 'master' into poll-shifts
voodoorai2000 Sep 5, 2017
40114cf
Merge pull request #1813 from consul/headers
voodoorai2000 Sep 5, 2017
c0238c9
Merge pull request #1777 from consul/poll-shifts
voodoorai2000 Sep 5, 2017
6f9d48f
Merge branch 'master' into community
voodoorai2000 Sep 5, 2017
36f1992
Merge pull request #1815 from rockandror/community
voodoorai2000 Sep 5, 2017
7f2c192
Update i18n-tasks to version 0.9.18
depfu[bot] Sep 5, 2017
553348e
Convert phase to symbol before comparision for active dates
bertocq Sep 5, 2017
fb2d535
Update rinku to version 2.0.3
depfu[bot] Sep 5, 2017
c6f675e
Merge pull request #1811 from consul/legislation-processes
bertocq Sep 5, 2017
4ec40f5
Upgrade scss_lint to version 0.54.0
depfu[bot] Sep 5, 2017
7a0a91f
Upgrade pg to version 0.21.0
depfu[bot] Sep 5, 2017
5923ca3
Upgrade database_cleaner to version 1.6.1
depfu[bot] Sep 5, 2017
0de56e8
Merge pull request #1817 from consul/depfu/update/i18n-tasks-0.9.18
voodoorai2000 Sep 5, 2017
4d6cb2d
Merge pull request #1818 from consul/depfu/update/rinku-2.0.3
voodoorai2000 Sep 5, 2017
bbd82fc
Merge pull request #1819 from consul/depfu/upgrade/scss_lint-0.54.0
voodoorai2000 Sep 5, 2017
ac5933f
Merge pull request #1820 from consul/depfu/upgrade/pg-0.21.0
voodoorai2000 Sep 5, 2017
65e1867
Merge pull request #1821 from consul/depfu/upgrade/database_cleaner-1…
voodoorai2000 Sep 5, 2017
618c6f8
uses method instead of db attribute to check for sms verification
voodoorai2000 Sep 6, 2017
5ea1697
Refactor communities controller. Add missing specs on topics order.
taitus Sep 6, 2017
64774b0
Refactor topics controller. Add Common abilities. Add destroy action.
taitus Sep 6, 2017
c5cb463
Refactor helpers.
taitus Sep 6, 2017
25560a2
Refactor Community model.
taitus Sep 6, 2017
9b6b57a
Remove all white spaces
taitus Sep 6, 2017
79d4a82
Fix specs
taitus Sep 6, 2017
f066793
Refactor and extract code to partials.
taitus Sep 6, 2017
748a549
Add missing specs on comments from topics
taitus Sep 6, 2017
1de763a
removes deprecated specs
decabeza Sep 6, 2017
2a389db
removes unnecessary html tag
decabeza Sep 6, 2017
3648b5d
Merge pull request #1834 from consul/specs
voodoorai2000 Sep 6, 2017
f5f64f5
Merge pull request #1832 from consul/verification-consistency
bertocq Sep 6, 2017
d01b147
Merge pull request #1833 from rockandror/improve-community
voodoorai2000 Sep 7, 2017
9a182f1
Merge remote-tracking branch 'consul/master' into consul_pull
bertocq Sep 8, 2017
baf3e50
Fix translations integration from consul
bertocq Sep 8, 2017
2a9f2f1
Remove deprecated fill in on nested documentable spec
bertocq Sep 8, 2017
ae9ff9e
removes duplicated data-equalizer :scream:
decabeza Sep 8, 2017
6c2b7ae
Improves performance of initial community rake task
voodoorai2000 Sep 12, 2017
9ef6c6d
moves header description to footer
decabeza Sep 13, 2017
4a902eb
makes section header minimal
decabeza Sep 13, 2017
c7a22f9
improves margins on simple menus
decabeza Sep 13, 2017
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions CUSTOMIZE_EN.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Customization

You can modify your own Consul to have your custom visual style, but first you'll have to create a fork from [https://github.com/consul/consul](https://github.com/consul/consul) using Github's "fork" button on top right corner. You can use any other service like Gitlab, but don't forget to put a reference link back to Consul on the footer to comply with project's license (GPL Affero 3).
You can modify your own CONSUL to have your custom visual style, but first you'll have to create a fork from [https://github.com/consul/consul](https://github.com/consul/consul) using Github's "fork" button on top right corner. You can use any other service like Gitlab, but don't forget to put a reference link back to CONSUL on the footer to comply with project's license (GPL Affero 3).

We've created an specific structure where you can overwrite and customize the application in a way that will let you keep updating it from Consul's main repository, without having conflicts on code merging or risking loosing your customization changes. We try to make Consul as vanilla as possible to help other developers onboard the codebase.
We've created an specific structure where you can overwrite and customize the application in a way that will let you keep updating it from CONSUL's main repository, without having conflicts on code merging or risking loosing your customization changes. We try to make CONSUL as vanilla as possible to help other developers onboard the codebase.

## Special Folders and Files

In order to customize your Consul fork, you'll make use of some `custom` folders on the following paths:
In order to customize your CONSUL fork, you'll make use of some `custom` folders on the following paths:

* `config/locales/custom/`
* `app/assets/images/custom/`
Expand Down Expand Up @@ -207,7 +207,7 @@ TODO

## Updating

We recommend you to add consul as remote:
We recommend you to add CONSUL as remote:

```
git remote add consul https://github.com/consul/consul
Expand Down
8 changes: 4 additions & 4 deletions CUSTOMIZE_ES.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
# Personalización

Puedes modificar consul y ponerle tu propia imagen, para esto debes primero hacer un fork de [https://github.com/consul/consul](https://github.com/consul/consul) creando un repositorio nuevo en Github. Puedes usar otro servicio como Gitlab, pero no te olvides de poner el enlace en el footer a tu repositorio en cumplimiento con la licencia de este proyecto (GPL Affero 3).
Puedes modificar CONSUL y ponerle tu propia imagen, para esto debes primero hacer un fork de [https://github.com/consul/consul](https://github.com/consul/consul) creando un repositorio nuevo en Github. Puedes usar otro servicio como Gitlab, pero no te olvides de poner el enlace en el footer a tu repositorio en cumplimiento con la licencia de este proyecto (GPL Affero 3).

Hemos creado una estructura específica donde puedes sobreescribir y personalizar la aplicación para que puedas actualizar sin que tengas problemas al hacer merge y se sobreescriban por error tus cambios. Intentamos que Consul sea una aplicación Ruby on Rails lo más plain vanilla posible para facilitar el acceso de nuevas desarrolladoras.
Hemos creado una estructura específica donde puedes sobreescribir y personalizar la aplicación para que puedas actualizar sin que tengas problemas al hacer merge y se sobreescriban por error tus cambios. Intentamos que CONSUL sea una aplicación Ruby on Rails lo más plain vanilla posible para facilitar el acceso de nuevas desarrolladoras.

## Ficheros y directorios especiales

Para adaptarlo puedes hacerlo a través de los directorios que están en custom dentro de:
Para adaptar tu fork de CONSUL puedes utilizar alguno de los directorios `custom` que están en las rutas:

* `config/locales/custom/`
* `app/assets/images/custom/`
Expand Down Expand Up @@ -207,7 +207,7 @@ TODO

## Actualizar

Te recomendamos que agregues el remote de consul para facilitar este proceso de merge:
Te recomendamos que agregues el remote de CONSUL para facilitar este proceso de merge:

```
git remote add consul https://github.com/consul/consul
Expand Down
7 changes: 4 additions & 3 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,9 @@ gem 'omniauth-facebook', '~> 4.0.0'
gem 'omniauth-google-oauth2', '~> 0.4.0'
gem 'omniauth-twitter', '~> 1.4.0'
gem 'paperclip', '~> 5.1.0'
gem 'jquery-fileupload-rails'
gem 'paranoia', '~> 2.3.1'
gem 'pg', '~> 0.20.0'
gem 'pg', '~> 0.21.0'
gem 'pg_search', '~> 2.0.1'
gem 'rails-assets-markdown-it', '~> 8.2.1', source: 'https://rails-assets.org'
gem 'redcarpet', '~> 3.4.0'
Expand Down Expand Up @@ -71,7 +72,7 @@ end
group :test do
gem 'capybara', '~> 2.14.0'
gem 'coveralls', '~> 0.8.21', require: false
gem 'database_cleaner', '~> 1.5.3'
gem 'database_cleaner', '~> 1.6.1'
gem 'email_spec', '~> 2.1.0'
gem 'poltergeist', '~> 1.15.0'
gem 'rspec-rails', '~> 3.6'
Expand All @@ -84,7 +85,7 @@ group :development do
gem 'capistrano3-delayed-job', '~> 1.7.3'
gem 'mdl', '~> 0.4.0', require: false
gem 'rvm1-capistrano3', '~> 1.4.0', require: false
gem 'scss_lint', '~> 0.53.0', require: false
gem 'scss_lint', '~> 0.54.0', require: false
gem 'web-console', '~> 3.3.0'
end

Expand Down
19 changes: 12 additions & 7 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ GEM
tins (~> 1.6)
daemons (1.2.4)
dalli (2.7.6)
database_cleaner (1.5.3)
database_cleaner (1.6.1)
debug_inspector (0.0.2)
delayed_job (4.1.2)
activesupport (>= 3.0, < 5.1)
Expand Down Expand Up @@ -205,6 +205,10 @@ GEM
railties (>= 3.1, < 6.0)
invisible_captcha (0.9.2)
rails (>= 3.2.0)
jquery-fileupload-rails (0.4.7)
actionpack (>= 3.1)
railties (>= 3.1)
sass (>= 3.2)
jquery-rails (4.3.1)
rails-dom-testing (>= 1, < 3)
railties (>= 4.2.0)
Expand Down Expand Up @@ -302,7 +306,7 @@ GEM
activerecord (>= 4.0, < 5.2)
parser (2.4.0.0)
ast (~> 2.2)
pg (0.20.0)
pg (0.21.0)
pg_search (2.0.1)
activerecord (>= 4.2)
activesupport (>= 4.2)
Expand Down Expand Up @@ -406,7 +410,7 @@ GEM
nokogiri (>= 1.4.0)
nori (~> 2.4)
wasabi (~> 3.4)
scss_lint (0.53.0)
scss_lint (0.54.0)
rake (>= 0.9, < 13)
sass (~> 3.4.20)
selenium-webdriver (3.0.5)
Expand Down Expand Up @@ -511,7 +515,7 @@ DEPENDENCIES
coveralls (~> 0.8.21)
daemons (~> 1.2.4)
dalli (~> 2.7.6)
database_cleaner (~> 1.5.3)
database_cleaner (~> 1.6.1)
delayed_job_active_record (~> 4.1.0)
devise (~> 3.5.7)
devise-async (~> 0.10.2)
Expand All @@ -527,6 +531,7 @@ DEPENDENCIES
i18n-tasks (~> 0.9.15)
initialjs-rails (~> 0.2.0.5)
invisible_captcha (~> 0.9.2)
jquery-fileupload-rails
jquery-rails (~> 4.3.1)
jquery-ui-rails (~> 6.0.1)
kaminari (~> 1.0.1)
Expand All @@ -541,7 +546,7 @@ DEPENDENCIES
omniauth-twitter (~> 1.4.0)
paperclip (~> 5.1.0)
paranoia (~> 2.3.1)
pg (~> 0.20.0)
pg (~> 0.21.0)
pg_search (~> 2.0.1)
poltergeist (~> 1.15.0)
quiet_assets (~> 1.1.0)
Expand All @@ -557,7 +562,7 @@ DEPENDENCIES
rvm1-capistrano3 (~> 1.4.0)
sass-rails (~> 5.0, >= 5.0.4)
savon (~> 2.11.1)
scss_lint (~> 0.53.0)
scss_lint (~> 0.54.0)
selenium-webdriver (~> 3.0.5)
sitemap_generator (~> 5.3.1)
social-share-button (~> 0.10)
Expand All @@ -573,4 +578,4 @@ DEPENDENCIES
whenever (~> 0.9.7)

BUNDLED WITH
1.15.1
1.15.4
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![Logo of Consul](https://raw.githubusercontent.com/consul/consul/master/public/consul_logo.png)

# Consul
# CONSUL

Citizen Participation and Open Government Application

Expand All @@ -21,7 +21,7 @@ Citizen Participation and Open Government Application
[![Join the chat at https://gitter.im/consul/consul](https://badges.gitter.im/consul/consul.svg)](https://gitter.im/consul/consul?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/consul/consul/issues?q=is%3Aissue+is%3Aopen+label%3APRs-welcome)

This is the opensource code repository of the eParticipation website originally developed for the Madrid City government eParticipation website
This is the opensource code repository of the eParticipation website CONSUL, originally developed for the Madrid City government eParticipation website

## Current state

Expand Down Expand Up @@ -108,3 +108,7 @@ Code published under AFFERO GPL v3 (see [LICENSE-AGPLv3.txt](LICENSE-AGPLv3.txt)
## Contributions

See [CONTRIBUTING.md](CONTRIBUTING.md)

## Brand guidelines

If you want to use CONSUL logo you can [download the guidelines](https://raw.githubusercontent.com/consul/consul/master/public/consul_brand.zip) which contains a use guide and different versions and sizes of the logo.
8 changes: 6 additions & 2 deletions README_ES.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

![Logotipo de Consul](https://raw.githubusercontent.com/consul/consul/master/public/consul_logo.png)

# Consul
# CONSUL

Aplicación de Participación Ciudadana y Gobierno Abierto

Expand All @@ -21,7 +21,7 @@ Aplicación de Participación Ciudadana y Gobierno Abierto
[![Join the chat at https://gitter.im/consul/consul](https://badges.gitter.im/consul/consul.svg)](https://gitter.im/consul/consul?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
[![PRs Welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg?style=flat-square)](https://github.com/consul/consul/issues?q=is%3Aissue+is%3Aopen+label%3APRs-welcome)

Este es el repositorio de código abierto de la Aplicación de Participación Ciudadana Consul, creada originariamente por el Ayuntamiento de Madrid.
Este es el repositorio de código abierto de la Aplicación de Participación Ciudadana CONSUL, creada originariamente por el Ayuntamiento de Madrid.

## Estado del proyecto

Expand Down Expand Up @@ -105,3 +105,7 @@ El código de este proyecto está publicado bajo la licencia AFFERO GPL v3 (ver
## Contribuciones

Ver fichero [CONTRIBUTING_ES.md](CONTRIBUTING_ES.md)

## Guía de estilo

Si quieres usar el logo de CONSUL puedes [descargar la guía de estilo](https://raw.githubusercontent.com/consul/consul/master/public/consul_brand.zip) que contiene una guía de uso y diferentes versiones y tamaños del logo.
Binary file added app/assets/images/help/help_icon_budgets.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/help/help_icon_debates.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/help/help_icon_polls.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added app/assets/images/help/help_icon_proposals.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 4 additions & 1 deletion app/assets/javascripts/application.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,7 @@
//= require jquery-ui/widgets/datepicker
//= require jquery-ui/i18n/datepicker-es
//= require jquery-ui/effects/effect-shake
//= require jquery-fileupload/basic
//= require foundation
//= require turbolinks
//= require ckeditor/loader
Expand Down Expand Up @@ -62,6 +63,7 @@
//= require legislation_annotatable
//= require watch_form_changes
//= require followable
//= require documentable
//= require tree_navigator
//= require custom

Expand Down Expand Up @@ -97,6 +99,7 @@ var initialize_modules = function() {
App.LegislationAnnotatable.initialize();
App.WatchFormChanges.initialize();
App.TreeNavigator.initialize();
App.Documentable.initialize();
};

$(function(){
Expand All @@ -105,4 +108,4 @@ $(function(){
$(document).ready(initialize_modules);
$(document).on('page:load', initialize_modules);
$(document).on('ajax:complete', initialize_modules);
});
});
101 changes: 101 additions & 0 deletions app/assets/javascripts/documentable.js.coffee
Original file line number Diff line number Diff line change
@@ -0,0 +1,101 @@
App.Documentable =

initialize: ->
@initializeDirectUploads()
@initializeInterface()

initializeDirectUploads: ->

$('input.document_ajax_attachment[type=file]').fileupload

paramName: "document[attachment]"

formData: null

add: (e, data) ->
wrapper = $(e.target).closest('.document')
index = $(e.target).data('index')
is_nested_document = $(e.target).data('nested-document')
$(wrapper).find('.progress-bar-placeholder').empty()
data.progressBar = $(wrapper).find('.progress-bar-placeholder').html('<div class="progress-bar"><div class="loading-bar uploading"></div></div>')
$(wrapper).find('.progress-bar-placeholder').css('display','block')
data.formData = {
"document[title]": $(wrapper).find('input.document-title').val() || data.files[0].name
"index": index,
"nested_document": is_nested_document
}
data.submit()

change: (e, data) ->
wrapper = $(e.target).parent()
$.each(data.files, (index, file)->
$(wrapper).find('.file-name').text(file.name)
)

progress: (e, data) ->
progress = parseInt(data.loaded / data.total * 100, 10)
$(data.progressBar).find('.loading-bar').css 'width', progress + '%'
return

initializeInterface: ->
input_files = $('input.document_ajax_attachment[type=file]')

$.each input_files, (index, file) ->
wrapper = $(file).parent()
App.Documentable.watchRemoveDocumentbutton(wrapper)

watchRemoveDocumentbutton: (wrapper) ->
remove_document_button = $(wrapper).find('.remove-document')
$(remove_document_button).on 'click', (e) ->
e.preventDefault()
$(wrapper).remove()
$('#new_document_link').show()
$('.max-documents-notice').hide()

uploadNestedDocument: (id, nested_document, result) ->
$('#' + id).replaceWith(nested_document)
@updateLoadingBar(id, result)
@initialize()

uploadPlainDocument: (id, nested_document, result) ->
$('#' + id).replaceWith(nested_document)
@updateLoadingBar(id, result)
@initialize()

updateLoadingBar: (id, result) ->
if result
$('#' + id).find('.loading-bar').addClass 'complete'
else
$('#' + id).find('.loading-bar').addClass 'errors'
$('#' + id).find('.progress-bar-placeholder').css('display','block')

new: (nested_fields) ->
$(".documents-list").append(nested_fields)
@initialize()

destroyNestedDocument: (id, notice) ->
$('#' + id).remove()
@updateNotice(notice)

replacePlainDocument: (id, notice, plain_document) ->
$('#' + id).replaceWith(plain_document)
@updateNotice(notice)
@initialize()

updateNotice: (notice) ->
if $('[data-alert]').length > 0
$('[data-alert]').replaceWith(notice)
else
$("body").append(notice)

updateNewDocumentButton: (link) ->
if $('.document').length >= $('.documents').data('max-documents')
$('#new_document_link').hide()
$('.max-documents-notice').removeClass('hide')
$('.max-documents-notice').show()
else if $('#new_document_link').length > 0
$('#new_document_link').replaceWith(link)
$('.max-documents-notice').hide()
else
$('.max-documents-notice').hide()
$(link).insertBefore('.documents hr:last')
5 changes: 2 additions & 3 deletions app/assets/javascripts/embed_video.js.coffee
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
App.EmbedVideo =

initialize: ->
$('#js-embedded-video').each ->
code = $(this).data("video-code")
code = $(this).data("video-code")
$('#js-embedded-video').html(code)

2 changes: 2 additions & 0 deletions app/assets/stylesheets/application.scss
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,12 @@
@import 'pages';
@import 'legislation';
@import 'legislation_process';
@import 'community';
@import 'custom';
@import 'custom/*';
@import 'c3';
@import 'annotator.min';
@import 'annotator_overrides';
@import 'jquery-ui/datepicker';
@import 'datepicker_overrides';
@import 'documentable';
Loading