Commit Graph

1580 Commits

Author SHA1 Message Date
kikito
71832b5ff1 adds whenever 2015-09-11 13:26:31 +02:00
kikito
1f28e97c2e filters reset to page 1. Fixes #445 2015-09-11 13:04:43 +02:00
kikito
c399ddf18d Adds default values to limits when the db does not have them
This prevents errors when doing rake db:setup (the db has still not
been created but the rails models are loaded)
2015-09-11 11:32:29 +02:00
Juanjo Bazán
7b672d3ecb Merge pull request #462 from dgilperez/auto_linking
Adds autolinking for comments
2015-09-10 21:27:49 +02:00
Raimond Garcia
2eed0d9e48 Merge pull request #468 from dgilperez/unaccent_psql
Adds support for accented searches
2015-09-10 21:07:37 +02:00
David Gil
1833c83351 unaccents Debate.search terms and tests that 2015-09-10 21:03:55 +02:00
David Gil
49ca331fa3 adds migration to create unaccent extension 2015-09-10 21:02:53 +02:00
Raimond Garcia
725b9f2fe2 Merge pull request #465 from dgilperez/prevent_double_comments
Prevents double submit for form buttons
2015-09-10 20:55:05 +02:00
Raimond Garcia
67d5b6fcc8 Merge pull request #467 from AyuntamientoMadrid/improve_design
Improve design
2015-09-10 20:49:00 +02:00
Juanjo Bazán
728dd28acf Merge pull request #460 from dgilperez/improve_comment_email_delivery_logic
Prevents users to receive email notifications about own comments and replies
2015-09-10 20:45:17 +02:00
David Gil
ec4119582c accepts no html tags in text_with_links sanitize 2015-09-10 20:42:57 +02:00
Juanjo Bazán
d13a69334a Merge pull request #464 from AyuntamientoMadrid/lock_verification-279
refactors lock tries
2015-09-10 20:41:14 +02:00
rgarcia
abc68dc868 refactors lock tries [#279] 2015-09-10 20:26:49 +02:00
Enrique García
c1c213f773 Merge pull request #461 from AyuntamientoMadrid/final_verification-395
Final letter verification
2015-09-10 20:22:42 +02:00
Enrique García
1a804fc73d Merge pull request #454 from AyuntamientoMadrid/failed_census_call-277
Stores failed Census API calls
2015-09-10 20:21:15 +02:00
rgarcia
664852ce4e refactors storing of failed attempt [#277] 2015-09-10 20:16:49 +02:00
rgarcia
3958d2f4c2 fixes spec [#395] 2015-09-10 20:13:30 +02:00
rgarcia
b7c1b4acee renames verify? methods [#395] 2015-09-10 20:08:11 +02:00
rgarcia
8186f5a240 refactors method names for validations [#395] 2015-09-10 20:06:45 +02:00
Alberto Garcia Cabeza
a62cbf4f39 Adds submit button for header's search form 2015-09-10 19:47:31 +02:00
Alberto Garcia Cabeza
f1e95addaa Changes tests and comments unused keys 2015-09-10 19:29:05 +02:00
Alberto Garcia Cabeza
5dbea69586 Improves pages, debates list, mobile version 2015-09-10 19:28:46 +02:00
Raimond Garcia
c075d6f5c9 Merge pull request #466 from AyuntamientoMadrid/hotfix-field-length
Truncates values from the db before shortening them
2015-09-10 19:21:27 +02:00
kikito
52a773224d Made migrations rollbackeable 2015-09-10 19:14:05 +02:00
David Gil
5ecbe01d47 prevents body comments to accept html a tags, sanitize them out instead as well 2015-09-10 19:05:34 +02:00
kikito
480a9d6f4e Truncates values from the db before shortening them 2015-09-10 19:04:57 +02:00
David Gil
3386a29eb4 reverts options hash for optional attributes in spec helpers 2015-09-10 18:55:03 +02:00
David Gil
3f652262e7 makes the controller send the emails instead of Comment model 2015-09-10 18:47:45 +02:00
David Gil
d9300f1c10 prevents users to receive email notifications about own comments and replies 2015-09-10 18:46:00 +02:00
David Gil
8ed434cc8b uses more rails-like syntax in scopes 2015-09-10 18:44:33 +02:00
David Gil
a5f05455c4 prefers :button and :submit selector to css class in selector 2015-09-10 18:42:53 +02:00
David Gil
2f5168a2bf changes default loading text to "..." 2015-09-10 18:35:48 +02:00
David Gil
31cf51f07a adds text_with_links helper and use that in any comment.body in views, adds test to check for malicious injections in comment body 2015-09-10 18:28:10 +02:00
Raimond Garcia
59a99ed874 Merge pull request #450 from AyuntamientoMadrid/field-limits-446
Poner tamaño máximo a varios campos
2015-09-10 18:21:23 +02:00
kikito
be2a098706 removes missing constant in views, replacing by class method 2015-09-10 18:14:59 +02:00
kikito
8596df1ea8 merges master and fix conflicts 2015-09-10 18:09:19 +02:00
kikito
95fc7ea949 remove constants / replace by class methods 2015-09-10 18:07:30 +02:00
David Gil
a742afff9b clean code 2015-09-10 18:00:48 +02:00
rgarcia
547b7afc6b stores failed Census API calls [#277] 2015-09-10 18:00:23 +02:00
David Gil
f6246bf290 tests autolinking in a comment body 2015-09-10 17:58:44 +02:00
David Gil
81b1549d11 prevents double submit for form buttons 2015-09-10 17:58:02 +02:00
Raimond Garcia
b6f9de7e5c Merge pull request #463 from AyuntamientoMadrid/welcome-screen-308
Welcome screen
2015-09-10 17:57:42 +02:00
kikito
43bdfb940e merges master and fixes conflicts 2015-09-10 17:47:40 +02:00
Enrique García
cb072848f3 Merge pull request #459 from AyuntamientoMadrid/admin-tags
Admin tags
2015-09-10 17:46:27 +02:00
kikito
249aed42c4 Makes welcome screen work using a sessions controller 2015-09-10 17:41:37 +02:00
kikito
01acc84679 Adds failing tests for welcome spec 2015-09-10 17:41:15 +02:00
kikito
2c04cd07d9 Adds independent welcome screen 2015-09-10 17:40:54 +02:00
Alberto Garcia Cabeza
3878132e74 Improves styles on pages and debates list 2015-09-10 17:23:12 +02:00
Alberto Garcia Cabeza
57682e8111 Updates header styles, moves search form to header 2015-09-10 17:22:11 +02:00
Alberto Garcia Cabeza
c55f365f2e Updates custom icons font 2015-09-10 17:20:42 +02:00