Raimond Garcia
4260c05f30
Merge pull request #2537 from consul/budgets-ui
...
Fixes budgets ui for all phases
2018-03-27 20:21:45 +02:00
rgarcia
bdffb9765e
Allow voting in multiple headings
...
Now that we have the option of voting in multiple headings per group,
the method of voting in a “different heading assigned” has become
deprecated and thus removed
2018-03-22 22:24:58 +01:00
decabeza
4fbc10d85e
Fixes budgets ui for all phases
2018-03-14 15:01:56 +01:00
Alberto García
eba4a3c6cb
Merge pull request #2528 from consul/budgets-message
...
Heading link on budgets message
2018-03-09 13:25:39 +01:00
Alberto Calderón Queimadelos
a55218ad9f
Merge pull request #2443 from consul/fix_currency_locale
...
Use user locale instead of default locale to format currencies
2018-03-08 18:03:52 +01:00
Bertocq
6e843730b0
Replace format_price for Budget#formatted_amount
...
ApplicationHelper#format_price and Budget#formatted_amount has the same
objective and code, but the Budget#formatted_amount method also uses the
currency of the Budget to correctly give currencies format.
By replacing usage of format_price with formatted_amount we can remove
format_price and have a single location for currency format logic.
2018-03-08 13:26:36 +01:00
decabeza
0bc0a2b1e8
Makes smaller text on participation not allowed div
2018-03-08 11:50:30 +01:00
decabeza
d70c46e578
Extract BudgetHeadingsHelper#heading_link & use it
...
Why:
The logic to construct the link to a heading (if it exists) is in three
different places, this is a clear candidate for a helper method.
How:
Just checking at the helper method if `assigned_heading` and `budget`
has values and composing the link if so.
2018-03-08 11:50:23 +01:00
decabeza
0e9190bc43
Adds heading link on different heading message
2018-03-08 11:50:09 +01:00
decabeza
d4b88f1fae
Adds description for social share buttons
2018-03-07 17:24:30 +01:00
decabeza
e0480675ed
Replaces hardcoded social share buttons tag with correct partial
2018-03-07 17:21:59 +01:00
decabeza
5b1ac0a6ce
Adds correct url on budget investment twitter share
2018-03-07 17:16:43 +01:00
Alberto Calderón Queimadelos
0acb4988f0
Merge pull request #2490 from consul/documents-tab
...
Documents list
2018-02-28 17:14:58 +01:00
decabeza
7a888b71fd
Removes duplicate heading info, fixes headings structure
2018-02-28 16:10:14 +01:00
decabeza
46f21330bd
Removes document tab on budgets investments
2018-02-28 15:23:39 +01:00
decabeza
1cc799ef11
Adds links to milestone description
2018-02-14 18:13:46 +01:00
decabeza
a950bb03a7
Removes unnecessary p tag on investment partial
2018-02-14 18:04:17 +01:00
Bertocq
a46e9f756a
Fix end's indentations at budget index page
2018-02-10 18:23:38 +01:00
Bertocq
9f47bce7f5
Improve budget index info page with classes
2018-02-10 18:22:45 +01:00
Bertocq
2915788487
Add budget id to finished budgets list on budget index
2018-02-10 18:20:15 +01:00
Raúl Fuentes
5b16d395e7
Added logic to not show invetment links is the budget phase isn't reviewing_ballots or finished
2018-02-10 15:27:40 +01:00
Bertocq
770086779e
Use new milestone order_by_publication_date order scope
2018-02-03 19:15:59 +01:00
Bertocq
2a678dfd4a
Order group headings by name on listing
2018-01-31 23:20:57 +01:00
BertoCQ
f0f41b0403
Merge pull request #2373 from consul/single_heading_group_names
...
Improve heading names at select boxes
2018-01-31 02:35:11 +01:00
Bertocq
c01c08a3f4
Use current_budget directly instead of instance variable
2018-01-25 00:48:52 +01:00
Bertocq
8749b46ec4
Remove budget_published? usage on budget index, drafting budgets no longer listed
2018-01-25 00:48:52 +01:00
Bertocq
791f081a91
Rename @budget to @current budget at budget index
...
Clear instance variable names help understand what's going around when
you're deep 2 or 3 partials. In this case @budget is only used to carry
around the current_budget so @current_budget is more descriptive.
Using `current_budget` directly around would be an alternative, but
maybe not as maintainable in case we want to change which budget is
being shown (for example the drafting one if you're admin).
2018-01-25 00:48:52 +01:00
Bertocq
e62ca48a94
Show only finished budgets at budget's index
...
We only need finished budget's at budget's index "Finished budgets"
section. So we add the `finished` scope to @budgets variable, and rename
it so its clear what it contains.
Also avoid showing the "Finished budgets" section if there is none
2018-01-25 00:48:52 +01:00
Bertocq
31956312bf
Make use of new single_heading_group? on existing similar logic
2018-01-24 12:17:46 +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
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
599442440b
Correctly format Budget's phases dates
2018-01-23 02:07:49 +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
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
Raúl Fuentes
bb39f8af0a
issue #1436 , mirrored behavior from proposals
2018-01-22 09:59:09 +01:00
decabeza
32c442ec66
removes description on finished participatory budgets
2018-01-19 14:35:05 +01:00
decabeza
f1ce68a445
changes back link on header to budgets_path
2018-01-19 14:35:05 +01:00
decabeza
27111b95c3
makes sure description has white color
2018-01-19 14:35:05 +01:00
decabeza
f722caac24
removes budget steps on header
2018-01-19 14:35:05 +01:00
rgarcia
d3d05f9cee
Add guide to create a proposal or investment
...
During a Participatory Budget, some users are getting confused and
creating a proposal instead of a budget investment. This intermediate
page should help them create investments
Adding a feature flag just in case other forks don’t need this feature
and setting seeds and dev_seeds for appropriate initial setup
2018-01-18 21:09:21 +01:00
Bertocq
e6e9e2db05
Render budget description html with links on budget index
2018-01-18 17:40:37 +01:00
Bertocq
95a7942372
Some css class improvements at budget list on /budget
2018-01-18 17:37:08 +01:00
Bertocq
872e7ceb02
Use budget published_phases's method to get them ordered, and decrease final date
2018-01-18 17:18:05 +01:00
Bertocq
7599eb4c35
Refactor budget phases step progress functions and usage
2018-01-18 17:18:05 +01:00
decabeza
aaccf87ec5
adds new partial for phases info on budget homepage
2018-01-18 17:18:04 +01:00