Julian Herrero
54e59a8a58
LegacyLegislation migration cleanup
...
These legacy models are not used anymore.
2019-02-06 17:07:38 +01:00
decabeza
eb169ca435
Add models tag spec with 160 chars
2019-02-05 17:41:00 +01:00
rgarcia
9951d303d3
makes sure tagging_count is decreased when hidden a taggable
2019-02-05 17:41:00 +01:00
Alberto
282ae61139
Merge pull request #3252 from consul/custom-pages-cards
...
Allow select column width for widget cards
2019-02-05 17:37:46 +01:00
decabeza
7263401561
Remove duplicated budgets specs
2019-02-05 14:01:30 +01:00
decabeza
5409db6c55
Show only selected investments on map from publishing prices phase
...
If there are no selected investements show all investments on map.
2019-02-05 14:01:27 +01:00
decabeza
dfd4f60e15
Order admin poll list by starts_at date
2019-01-31 18:49:24 +01:00
decabeza
5ea1275e6a
Change admin poll list title
2019-01-31 18:24:28 +01:00
decabeza
64cbed838a
Fix hound warnings
2019-01-31 17:23:45 +01:00
decabeza
6bb3c0a3da
Add columns on welcome card view
2019-01-31 17:20:04 +01:00
decabeza
40a42b0c63
Show card label only if it is present
2019-01-31 17:07:51 +01:00
decabeza
f00b504f55
Improve notice message for pages cards
2019-01-31 17:06:22 +01:00
decabeza
e7fcf2ce35
Add select on cards form to select the number of columns
2019-01-31 17:06:01 +01:00
Alberto
9475a0c6ee
Merge pull request #3249 from consul/custom-pages
...
Refactor processes header colors and custom pages
2019-01-30 20:05:20 +01:00
Julian Nicolas Herrero
0e9fd645e8
Merge pull request #3234 from consul/use_find_instead_of_find_by_id
...
[Backport] Use find instead of find_by_id
2019-01-30 19:46:22 +01:00
decabeza
773302f0d7
Show only random order for unfeasible and unselected investments
2019-01-30 14:16:25 +01:00
decabeza
9edabb5bf4
Fix links on budgets index page
2019-01-30 14:15:40 +01:00
decabeza
cdb66ce23c
Refactor header process colors specs
2019-01-30 13:17:35 +01:00
decabeza
2695e19e2f
Fix hound warnings
2019-01-29 17:54:02 +01:00
Julian Nicolas Herrero
81b65ec821
Merge pull request #3202 from consul/sort_legislation_processes_by_start_date
...
Sort Legislation Processes by descending start date
2019-01-29 17:30:02 +01:00
Alberto
41fe1e3922
Merge pull request #3152 from NahiaSolutions/add_image_to_legislation_processes
...
Add image to legislation processes and banner colors
2019-01-29 16:06:54 +01:00
Alberto
ebe5bf13e7
Merge pull request #3149 from NahiaSolutions/add_cards_to_custom_pages
...
Add cards to custom pages
2019-01-29 16:05:47 +01:00
Alberto
78479ff0e7
Merge pull request #3228 from consul/milestones_public_progress_bar
...
[Backport] Add progress bars to milestones public view
2019-01-29 14:12:08 +01:00
Alberto
bd4826b25e
Merge branch 'master' into add_cards_to_custom_pages
2019-01-28 14:49:39 +01:00
Alberto
c297595e49
Merge branch 'master' into add_image_to_legislation_processes
2019-01-28 14:49:19 +01:00
Julian Herrero
9a23393535
Use find instead of find_by_id
...
This method will raise an exception if resource is not found when
trying to call score_action on nil.
Prefer to raise a 404 HTML NotFound error instead.
2019-01-25 09:03:56 +01:00
Julian Herrero
8f112cf37e
Allow admins delete poll answer documents
2019-01-24 19:19:04 +01:00
decabeza
d650b90e25
Adds missing backport content on progressable specs
2019-01-24 18:33:26 +01:00
Alberto
5d790eae67
Merge pull request #3230 from consul/admin-images-map
...
[Backport] Allow change map image from admin
2019-01-24 17:48:02 +01:00
Javi Martín
97ef69ee33
Rename progressable specs to admin_progressable
...
We're going to introduce progress bars in the public view as well, and
it's more consistent with "admin_milestoneable".
2019-01-24 17:39:42 +01:00
Javi Martín
b552f6e70b
Add heading to milestones progress bars
2019-01-24 17:33:43 +01:00
Javi Martín
e73f3bd97a
Add progress bars to milestones public view
2019-01-24 17:33:34 +01:00
decabeza
045c4eca64
Allow change map image from admin site customization
...
Also adds on site customization image.rb jpeg content type to allow replace this image.
2019-01-24 14:55:01 +01:00
decabeza
62088bc635
Hide poll results and stats to admins
2019-01-24 14:33:41 +01:00
Alberto
227f496f6d
Merge pull request #3195 from consul/milestone_progress_bar
...
[Backport] Manage milestone progress bars
2019-01-24 11:59:24 +01:00
decabeza
75531c6c80
Show current phase as selected on phase select on admin budgets form
2019-01-23 14:30:35 +01:00
Manu
abcb96ffda
added test spec for creation of legislative process with image
2019-01-22 16:32:05 -05:00
Julian Herrero
33d6f6c18d
Sort Legislation Processes by descending start date
2019-01-22 18:51:22 +01:00
Manu
14d64e94d0
rspec tests were added for the process banner
2019-01-21 12:02:27 -05:00
Javi Martín
486100bf53
Add specs for custom page cards
2019-01-21 10:40:24 -05:00
Javi Martín
2926e4e375
Fix managing widget cards for homepage
...
The condition `params[:page_id] != 0` didn't work properly when editing
the homepage because in that case the parameter was `nil`, and the line
`SiteCustomization::Page.find(@card.site_customization_page_id)` raised
an exception because it couldn't find a page with a `nil` ID.
Fixing the issue while maintaining the check against `0` lead to complex
code, and so allowing `nil` in the database and assuming cards with no
`site_customization_page_id` belonged in the homepage seemed to be the
easiest solution.
2019-01-21 10:40:14 -05:00
Manu
162b61f94c
updated test file for cards
2019-01-18 09:54:43 -05:00
decabeza
7c0fb96b02
Adds styles to admin progress bars views
2019-01-18 14:17:40 +01:00
Javi Martín
dfdf0b0636
Hide title field for primary progress bars
...
These bars don't have a title.
2019-01-18 14:17:37 +01:00
Javi Martín
c5d32c5ab9
Manage progress bars in the admin area
2019-01-18 14:17:33 +01:00
Javi Martín
4f25581636
Add progress bar polymorphic views
2019-01-18 14:17:29 +01:00
Javi Martín
eaea95ccfb
Add progress bar model
2019-01-18 14:17:12 +01:00
Javi Martín
c3c9b02220
Move milestone factories to their own file
2019-01-18 14:15:27 +01:00
Julian Nicolas Herrero
357d0617e2
Merge pull request #3174 from consul/backport-1736-pending_specs_proposal_notification_limits
...
[Backport] Add pending specs proposal notification limits
2019-01-18 11:06:03 +01:00
decabeza
9dfbeed140
Moves draft and final result publication dates from tabs to sidebar
2019-01-15 16:13:41 +01:00