Javier Martín
3c49ae3386
Merge pull request #3496 from LextrendIT/feature/refactor_embedded_video
...
Refactor embed video helper to disconnect from @proposal
2019-09-14 00:02:41 +02:00
decabeza
8440208597
Hide comments count on selected proposals
2019-09-11 22:18:43 +02:00
decabeza
1a0f0215a7
Hide related content on selected proposals
2019-09-11 22:18:42 +02:00
decabeza
b15048ec7d
Hide proposal code on selected proposals
2019-09-11 22:17:40 +02:00
decabeza
e879fddba4
Hide view mode on selected proposals list
2019-09-11 22:17:40 +02:00
Javi Martín
f9ed186909
Add rubocop spacing rules
...
We were following these rules in most places; we just didn't define them
anywhere.
2019-09-10 21:04:56 +02:00
Javi Martín
c62da726b8
Apply SpaceAroundErbTag ERB Lint rule
2019-09-10 20:02:15 +02:00
Javi Martín
71d9ddd849
Apply rule to end files with a newline character
2019-09-10 20:02:15 +02:00
Javi Martín
cf9e36c767
Replace single quotes with double quotes
...
Most of these quotes were in the dashboard branch before we added the
rule for double quotes.
2019-09-10 19:21:03 +02:00
Javi Martín
911fe4e481
Simplify calls to render partial
...
We're also adding a bit of consistency, since most of our calls to
partial rendering omit the `partial` and `locals` keys.
2019-09-04 15:00:36 +02:00
Senén Rodero Rodríguez
b2d8851bcc
Add the option to disable languages managment to cover special cases
...
We understand languages management as the ability to add new languages
or remove existing ones. When no option is passed it will allow language
manipulation by default.
There are 3 special places where we want block languages management:
- admin legislation processes homepage
- admin legislation processes milestones summary
- proposals retired form
Co-Authored-By: Sebastia <sebastia.roig@gmail.com >
2019-07-01 15:03:48 +02:00
Senén Rodero Rodríguez
db70594fca
Add column class to keep proper alignment of forms
...
When translations interface is enabled we also want to keep
proper alignment between translatable and not translatable fields.
Co-Authored-By: alessandro <agileontheweb@gmail.com >
2019-07-01 14:49:43 +02:00
Senén Rodero Rodríguez
146c09adb7
Update references to new translation interface
2019-07-01 14:49:43 +02:00
taitus
44ef1ce5e1
Fix houncibot parse error
...
Add missing quotes.
Notification Error:
warning: 2.6.0-dev-compliant syntax, but you are running 2.6.1.
warning: please see https://github.com/whitequark/parser#compatibility-with-ruby-mri .
2 error(s) were found in ERB files
expected attribute value after '=' (at >)
2019-06-27 09:20:24 +02:00
Senén Rodero Rodríguez
4236a3a388
Move label translations to activerecord.yml files
...
Moved only :es and :en translations from general.yml to activerecord.yml
and use them in related forms.
2019-06-27 09:19:37 +02:00
Senén Rodero Rodríguez
0f4fcfb20e
Fix proposals suggest feature
...
Now we need one suggest placeholder for each translation. This also
fixes invalid usage of id HTML attribute.
2019-06-27 09:19:37 +02:00
Senén Rodero Rodríguez
bd3bb72370
Add proposals translation interface
...
* Convert proposal form into translatable one.
* Adapt translatable shared spec to define an owner when running at
frontend feature specs.
* Remove old attributes from strong parameters.
2019-06-27 09:19:37 +02:00
Senén Rodero Rodríguez
02be0c61f9
Add proposal translations
...
Adapt retire form to include needed translations and move validations
from controller to model.
Also change sanitizable concern to sanitize not marked for destruction
translations.
2019-06-27 09:19:36 +02:00
German Galia
9d1ca3bfd4
Report generation. Download csv
2019-06-12 10:17:31 +02:00
decabeza
19867836f8
Extract partial with mobile sticky content
2019-06-04 17:29:31 +02:00
decabeza
7ed80d7883
Move link to selected proposals on proposals index
2019-05-31 12:24:10 +02:00
Julian Herrero
4be4d96710
Don't show order links in selected proposals list
2019-05-30 11:19:38 +02:00
Julian Herrero
6e905c517f
Don't show recommented proposals in selected proposals list
2019-05-30 11:19:38 +02:00
Julian Herrero
dfe3764616
Don't show featured proposals in selected proposals list
2019-05-30 11:19:38 +02:00
Julian Herrero
5952c2664d
Show a 'Selected proposal' message in the show view
2019-05-30 11:19:38 +02:00
Julian Herrero
6beb11f0a9
Show completed progress bar for successful proposals
...
Show a completed progress bar with total supports intead of showing
a message telling the proposal has reached the needed supports.
2019-05-30 11:19:38 +02:00
Julian Herrero
db774e3fd2
Extract proposal supports progress bar to a partial
2019-05-30 11:19:38 +02:00
Julian Herrero
b68a872298
Change links for proposals lists
...
Changed applied:
- Remove Archived proposals from tab and add a link under Proposals
lists
- Remove Popular proposals link from custom section and add it to the
Proposals lists
- Remove Retired proposals link from custom section and add it to the
Proposals lists
- Remove Selected proposals link from custom section and add it to the
Proposals lists
2019-05-30 11:19:38 +02:00
Julian Herrero
ad5f7a06e1
Allow admins to select proposals and users to list them
2019-05-30 11:19:33 +02:00
Julian Herrero
0237565ece
Set correct attributes for data-sticky component
2019-05-22 12:41:25 +02:00
decabeza
8684835857
Adds sticky on proposals supports for mobile version
2019-05-22 12:40:12 +02:00
lalo
71f750ca9d
Refactor embedded_video_code method to use it with other models
2019-05-14 18:34:50 +02:00
decabeza
f40787561d
Remove all references to question and external_url fields
2019-04-30 16:42:07 +02:00
decabeza
0995480b73
Remove question and external_url fields from proposals
2019-04-30 11:35:47 +02:00
decabeza
2af154d539
Merge branch 'master' into proposal-dashboard
2019-03-28 01:26:04 +01:00
decabeza
91be3cf775
Fix more hound warnings
2019-03-27 15:22:14 +01:00
decabeza
eda6ea7f12
Merge branch 'master' into dashboard
2019-03-26 16:45:48 +01:00
Javi Martín
3e4e65ead7
Use double quotes inside ERB
...
We were using single quotes inside ERB code when that code was inside
HTML double quotes.
2019-03-25 14:58:54 +01:00
Julian Herrero
7fe6285fe3
Use double quotes in app/views/proposals
2019-03-19 12:16:50 +01:00
decabeza
88cae1424e
Add missing mobile social share message
2019-03-14 11:32:14 +01:00
decabeza
e2e29cd9bc
Replace summary to title on proposals social share message
2019-03-14 11:31:37 +01:00
decabeza
cfe034d401
Show proposal question only if it is present
...
This prevent render an empty <h4> tag.
2019-03-14 11:31:12 +01:00
decabeza
25c8212e80
Remove proposal improvement path setting
2019-02-19 11:07:58 +01:00
Alberto
938d5eba43
Merge pull request #3191 from consul/ui-i18n-details
...
Fix i18n and UI minor details
2019-02-13 10:55:03 +01:00
decabeza
b4ecd07f1f
Refactor social share messages
2019-02-11 15:41:35 +01:00
taitus
aa908d8d60
Add progress tab as initial page on Dashboard.
2019-02-02 14:49:28 +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
5a027f3a0a
Removes create question button on proposals index and show
2018-12-19 13:55:00 +01:00
Javi Martín
1ff6390950
Fix proposal info rendering for managers
...
We were looking for the partial in management/proposals/info instead of
proposals/info.
2018-12-12 13:43:03 +01:00
Javi Martín
2fcbee6261
Manage proposal milestones
2018-12-11 20:09:47 +01:00