Javi Martín
f30afab9e3
Add ERB Lint configuration file
...
The rubocop linter cannot use the `rubocop_config` option because it's
not compatible with Ruby 2.3. So we're setting the rubocop rules
manually.
2019-03-20 14:35:40 +01:00
Julian Nicolas Herrero
f4de8fd42a
Merge pull request #3387 from consul/admin_settings_improvement
...
Improve Admin settings section
2019-03-20 11:10:02 +01:00
Julian Herrero
e04fd74cf1
Add rake task to rename existing setting keys
2019-03-19 19:45:34 +01:00
Julian Herrero
4df9a1a1b4
Move HTML settings to content blocks settings page
...
- Rename html settings keys
- Show html settings next to content blocks page
- Hide html settings from configuration tab
2019-03-19 19:45:34 +01:00
Julian Herrero
89d4ea5aa3
Remove homepage widget settings from configuration tab
...
- Rename homepage widget settings keys
2019-03-19 19:45:34 +01:00
Julian Herrero
c82b2a975a
Add new settings tab for participation processes
...
- Rename setting keys
- New tab por participation processes
- Hide these settings from features tab
2019-03-19 19:45:32 +01:00
Julian Herrero
1ece761beb
Render map properly when changing between setting tabs
2019-03-19 18:14:57 +01:00
Julian Herrero
dbac4bc222
Change admin settings tab for maps
...
- Rename map settings keys
- Add fields for latitude, longitude and zoom
- Add a callout message on how to enable map feature
2019-03-19 18:14:57 +01:00
Julian Herrero
c0d2776e8d
Refactor Admin settings tabs
...
- Rename partial views for tabs.
- Extract tables settings to reuse across the tabs.
2019-03-19 18:14:55 +01:00
Julian Herrero
9ed6aae348
Refactor Setting model
...
- Make easier to group settings by using prefixes
- Add method to rename setting keys
- Add method to remove setting keys
2019-03-19 15:14:08 +01:00
Julian Herrero
8ae80cd1a1
Cleanup (remove unnecessary code)
2019-03-19 15:11:50 +01:00
Julian Herrero
27553e9058
Move setting next to similar/related settings
2019-03-19 15:11:30 +01:00
Julian Nicolas Herrero
8d83e70ef4
Merge pull request #3369 from consul/double_quotes_for_views
...
Change single quotes to double quotes for views
2019-03-19 14:34:53 +01:00
Julian Herrero
f6489bc604
Use double quotes in app/views
2019-03-19 12:33:07 +01:00
Julian Nicolas Herrero
d83bf940be
Merge pull request #3370 from consul/double_quoutes_everywhere
...
Change single quotes to double quotes everywhere
2019-03-19 12:20:16 +01:00
Julian Herrero
dbe99f058e
Use double quotes in app/views/shared
2019-03-19 12:16:50 +01:00
Julian Herrero
7fe6285fe3
Use double quotes in app/views/proposals
2019-03-19 12:16:50 +01:00
Julian Herrero
129a258f19
Use double quotes in app/views/moderation
2019-03-19 12:16:50 +01:00
Julian Herrero
0e0462368b
Use double quotes in app/views/management
2019-03-19 12:16:50 +01:00
Julian Herrero
2b83be1c7c
Use double quotes in app/views/legislation
2019-03-19 12:16:50 +01:00
Julian Herrero
25ed245689
Use double quotes in app/views/layouts
2019-03-19 12:16:50 +01:00
Julian Herrero
b78ff808c1
Use double quotes in app/views/debates
2019-03-19 12:16:50 +01:00
Julian Herrero
c87267d34f
Use double quotes in app/views/budgets
2019-03-19 12:16:50 +01:00
Julian Herrero
0bb2633c7a
Use double quotes in app/views/admin
2019-03-19 12:16:50 +01:00
Julian Herrero
c32a98be10
Use double quotes in app/views/admin/site_customization
2019-03-19 12:16:50 +01:00
Julian Herrero
e63a862882
Use double quotes in app/views/admin/poll
2019-03-19 12:16:50 +01:00
Julian Herrero
7b4b4b716c
Use double quotes in app/views/admin/legislation
2019-03-19 12:16:50 +01:00
Julian Herrero
5bfc9add78
Use double quotes in app/views/admin/budget
2019-03-19 12:16:50 +01:00
Julian Nicolas Herrero
4d6ddd2bb3
Merge pull request #3362 from consul/double_quotes_for_models
...
Change single quotes to double quotes for models
2019-03-19 12:14:31 +01:00
Julian Nicolas Herrero
af55366e57
Merge pull request #3360 from consul/double_quotes_for_controllers
...
Change single quotes to double quotes for controllers
2019-03-19 12:13:07 +01:00
Julian Nicolas Herrero
1c71e01646
Merge pull request #3341 from consul/improvement_for_options_display_results_polls
...
Improvements about displaying results for voted polls
2019-03-18 10:51:03 +01:00
Julian Nicolas Herrero
542c744a6a
Merge pull request #3367 from consul/keep_images_uploaded_with_ckeditor
...
Keep images uploaded with CKEditor when deploying
2019-03-18 10:47:59 +01:00
Julian Herrero
6d281affa5
Use double quotes
2019-03-15 10:29:07 +01:00
Julian Herrero
002e16ce30
Use double quotes in lib/
2019-03-15 10:29:07 +01:00
Julian Herrero
c9cdc72537
Use double quotes in config/
2019-03-15 10:29:07 +01:00
Julian Herrero
8510624692
Use double quotes in config/routes
2019-03-15 10:29:07 +01:00
Julian Herrero
a8d8d2cdf9
Use double quotes in config/initializers
2019-03-15 10:29:03 +01:00
Julian Herrero
9f9b1ed100
Assign officer assignment when creating voter from booth
...
If `officer_assigment' is not set the model cannot be validated,
because it cannot be blank.
2019-03-15 09:58:16 +01:00
Julian Herrero
58f22915e9
Use double quotes
2019-03-15 09:57:09 +01:00
Julian Herrero
da04f6caa7
Add test for booth votes case
2019-03-15 09:55:12 +01:00
Julian Herrero
18bd2c7de8
Refactor (improve readability)
2019-03-15 09:55:12 +01:00
Julian Herrero
92979b84b5
Set correct origin for booth poll votes
2019-03-15 09:55:12 +01:00
Julian Herrero
9f21d9c64e
Use double quotes in app/mailers
2019-03-15 09:27:01 +01:00
Julian Herrero
b460c024f3
Use double quotes in app/helpers
2019-03-15 09:26:49 +01:00
Julian Herrero
d9eaea4ea0
Use double quotes in app/assets
2019-03-15 09:26:00 +01:00
Julian Nicolas Herrero
6012638597
Merge pull request #3353 from consul/default_custom_pages
...
[Backport] Default site customization pages
2019-03-14 18:36:38 +01:00
Julian Herrero
1e04643576
Adjust spec after changing welcome pages
...
Welcome pages no longer have classes or `span' tags.
They still have the 4 `li' tags, so we check for them.
2019-03-14 18:35:51 +01:00
Julian Herrero
ddca825f9f
Update spec after adding default pages
...
The spec was assuming there was only 1 custom page created in the
DB. With this change the spec will pass no matter how many custom
pages there are in the DB.
2019-03-14 18:35:51 +01:00
Julian Herrero
87be6f302c
Add default site customization pages
...
From now on these static pages:
`/privacy'
`/conditions'
`/accesibility'
`/help/faq'
`/welcome'
have been moved to the DB and can be modified easily by any
administrator in `/admin/site_customization/pages'
2019-03-14 18:35:51 +01:00
Julian Herrero
a0b8d076b7
Remove extra space
2019-03-14 18:34:55 +01:00