Bertocq
e5ce55b1cd
Hide order selectors when only one order available
2018-01-30 17:03:17 +01:00
Raimond Garcia
b5cb5e2563
Merge pull request #2387 from wairbut-m2c/show_only_current_budget_tags_in_admin_budget
...
Show only current budget tags in admin budget
2018-01-29 20:14:10 +01:00
Raimond Garcia
626b9972d1
Merge pull request #2378 from wairbut-m2c/aperez-investments-search
...
Add search & sorting options to Admin::BudgetInvestments
2018-01-29 20:06:43 +01:00
Alberto García
1207b5ce51
Merge pull request #2279 from wairbut-m2c/aperez-missing-i18n-keys
...
I18n maintenance
2018-01-29 14:02:15 +01:00
Bertocq
6d3359dbbc
Fix bad line break
2018-01-26 12:01:22 +01:00
Vicente Mendoza
ff5112f96b
Changed the budgets helper so just search for the current budget
2018-01-26 11:30:02 +01:00
Bertocq
5e583d2015
Increase notifiable access security on add notification method
2018-01-26 11:24:13 +01:00
Bertocq
f4ad0b2979
Improve add_notification logic to add notificable author
2018-01-26 00:33:07 +01:00
Bertocq
070c94494e
Fix linelenght over 100 on multiple files
2018-01-26 00:27:03 +01:00
Bertocq
34b2a27357
Cleanup indentation and line lenght aat order select partial
2018-01-25 18:06:36 +01:00
Bertocq
9b2aebc8c2
Remove closing </li>'s without opening <li>
2018-01-25 17:54:15 +01:00
decabeza
1d7352d21c
fixes textarea and label order on admin budgets phases form
2018-01-25 14:40:04 +01:00
decabeza
f607075c4a
replaces hardcoded text to votes_for_proposal_success setting
2018-01-25 14:39:13 +01:00
Angel Perez
716fd6a46e
Persist sorting when filtering/selecting investments
2018-01-25 08:18:04 -04:00
Angel Perez
e04dc5b8f2
Add sorting options for Admin::BudgetInvestments ( #2336 )
2018-01-25 08:18:04 -04:00
Angel Perez
d30d2b0dd8
Arrange Admin::BudgetInvestments I18n for buttons under same namespace
2018-01-25 08:18:04 -04:00
Angel Perez
680ca46ef1
Add search form for Admin::BudgetInvestments ( #2336 )
2018-01-25 08:16:32 -04:00
decabeza
c2ff1f6cff
fixes scss lint warning
2018-01-25 11:14:06 +01:00
decabeza
acfd49e5bd
improves styles for budget investments advanced filters
2018-01-25 11:14:06 +01:00
Bertocq
6dcd01366c
Preven admins from destroying others images&docs
2018-01-24 17:07:13 +01:00
Bertocq
97ec551178
Correctly check if user can destroy a document
2018-01-24 17:07:05 +01:00
María Checa
1c2949b60d
Merge pull request #2344 from wairbut-m2c/aperez-investments-filters
...
Improvements for Admin::Budget::Investment filters
2018-01-23 20:09:54 +01:00
María Checa
0dd71e6bea
Merge pull request #2349 from wairbut-m2c/iagirre-budgets-new-information-phase
...
Budget new "Information" phase
2018-01-23 19:46:49 +01:00
rgarcia
eee19ad690
Use scope to order headings by name
2018-01-23 19:35:42 +01:00
Bertocq
418dc6a1d6
Revert default map change
2018-01-23 17:30:42 +01:00
Alberto García
610e37870c
Merge pull request #2367 from consul/budget-headings-order
...
Budgets groups headings order
2018-01-23 16:49:32 +01:00
Bertocq
c30c47cbb5
Improve default city map with 4 districts, and more real fake geozones
2018-01-23 15:59:24 +01:00
Raúl Fuentes
82b750de68
moved duplicated code to helper
2018-01-23 15:42:01 +01:00
iagirre
846898f3ec
New phase "Information" added and UI modified to not show the links.
...
Specs to test the functionality added.
2018-01-23 15:42:01 +01:00
decabeza
cb170766b4
orders budgets groups headings by name
2018-01-23 13:55:42 +01:00
Bertocq
b6cc816d0f
Remove the end date adjustment at admin budget phase table
2018-01-23 02:13:11 +01:00
Bertocq
599442440b
Correctly format Budget's phases dates
2018-01-23 02:07:49 +01:00
Bertocq
d017b5bb49
Make Budget::Phase#invalid_dates_range? private
2018-01-23 00:23:22 +01:00
Bertocq
16b6abe2b8
Touch Budget object after updating a Budget::Pphase
...
Why:
We need to clear associated rails cache keys in order for changes to be
ready to be seen on the views
How:
* Just an after_save callback to a private method
2018-01-23 00:23:19 +01:00
Bertocq
e59ed81528
Return 404 accesing community without communitable
...
Why:
Somehow we're seeing communities without proposals at production. We
must find why and fix it, but first we need to throw a 404 at the user
instead of a 500 internal server error
How:
First catching the scenario of non-existent communitable at the
controller and raising a 404 error. Secondly preventing the author_id
access over a possibly nil object, this is a smell but it can't be
easily fixed right now... we need to correctly implement a relation
between Community and communitable and avoid the multiple occurences of
`community.from_proposal?` in the codebase that makes it impossible to
extend to a fourth communitable model.
2018-01-23 00:22:53 +01:00
Bertocq
cc69225b7a
Assert phases list order in admins budget edit form
2018-01-23 00:15:06 +01:00
Bertocq
217f62116e
Correctly scape budget phase summary on phases list
2018-01-22 23:29:48 +01:00
decabeza
7a17db01ef
adds links with filters on budgets results page
2018-01-22 19:27:54 +01:00
Angel Perez
3f6a9187ec
Add 'current applied filters' message to investments partial
2018-01-22 14:04:57 -04:00
Angel Perez
1027896617
Reenable 'winners' tab under Admin::Budget::Investment
2018-01-22 14:04:57 -04:00
Angel Perez
3826f040c2
Add missing 'tbody' HTML tag to investments partial
2018-01-22 14:02:29 -04:00
Angel Perez
ff40d32028
Add new filters to Admin::Budget::Investment navbar
2018-01-22 14:02:29 -04:00
Angel Perez
e92a67a206
Simplify filters navbar on Admin::Budget::Investment
2018-01-22 14:02:29 -04:00
Angel Perez
e5c73d8f02
Add advanced filters for Admin::Budget::Investment
2018-01-22 14:02:29 -04:00
María Checa
1f461b09f0
Merge pull request #2353 from consul/2339-admin_budgets_phases
...
Allow admins to edit Budget phases
2018-01-22 18:07:34 +01:00
María Checa
b706f0c8bb
Merge pull request #2142 from wairbut-m2c/rfuentes-add-advanced-menu-to-order-proposals
...
Add advanced search menu to investments list
2018-01-22 17:46:19 +01:00
decabeza
0eaba9fc9e
changes order for finished budgets on budgets homepage list
2018-01-22 14:46:54 +01:00
Bertocq
155840a130
Sanitize & truncate text for socialmedia metatags
...
Why:
The html tags weren't removed from the text that was rendered at the
social metatags (twitter & facebook), neither scaped so adding a quoted
text would endup breaking the metatag content and writting in plain
sight the description at the browser view.
How:
Saniziting the text and truncating it afterwards since we don't need to
send more than 140 chars for twitter/facebook social cards.
2018-01-22 11:52:35 +01:00
Raúl Fuentes
93268fc5d6
changed advanced filter from budgets to budgets/investments
2018-01-22 09:59:09 +01:00
Raúl Fuentes
a56be4bc5f
added I18n to phase select
2018-01-22 09:59:09 +01:00