Javi Martín
71601bd3f8
Validate translations in banners
...
This change forces us to use nested attributes for translations, instead
of using the more convenient `:"title_#{locale}"` methods.
On the other hand, we can use Rails' native `_destroy` attribute to
remove existing translations, so we don't have to use our custom
`delete_translations`, which was a bit buggy since it didn't consider
failed updates.
2018-10-22 15:43:28 +02:00
decabeza
dc5c26856b
Removes unnecessary style to orbit slide
2018-10-18 19:40:25 +02:00
decabeza
0c34e66478
Removes styles to fix logo size on devise views
2018-10-18 18:17:22 +02:00
decabeza
7e828d7e94
Removes unnecessary styles for admin budgets groups
2018-10-18 18:16:11 +02:00
decabeza
8535380402
Fixes color of datepicker calendar
2018-10-18 18:15:12 +02:00
decabeza
7a92df8de5
Updates is-active class for view mode
2018-10-18 18:14:39 +02:00
decabeza
dbf41421ed
Removes guide feature
2018-10-17 14:58:29 +02:00
decabeza
0d8c9c289a
Removes closed message on legislation proposals votes
2018-10-04 16:32:32 +02:00
Alberto
857f747ab8
Merge pull request #2922 from consul/legislation-proposals-imageable
...
Legislation proposals imageable
2018-10-02 11:22:19 +02:00
decabeza
aa76251d1d
Adds image to legislation proposals views
2018-10-01 16:49:22 +02:00
Alberto
35ebe79d26
Merge pull request #2921 from consul/custom-js
...
[Backport] Adds custom javascripts folder
2018-09-26 14:24:47 +02:00
Raimond Garcia
4086220ebf
Merge pull request #2914 from microweb10/make_polls_translatable
...
Make polls translatable
2018-09-26 13:19:17 +02:00
decabeza
62490c4640
Adds custom javascripts folder
2018-09-26 12:34:16 +02:00
Javier Martín
ef0192c3ff
Merge pull request #2912 from consul/backport-make-collaborative-legislation-translatable
...
Make collaborative legislation translatable
2018-09-24 17:45:59 +02:00
decabeza
a94591fe78
Loads custom fonts before default ones
...
Also includes a .keep file inside fonts/custom folder to track the directory by git
2018-09-21 13:46:50 +02:00
Julian Herrero
673ec075eb
Make answers translatable
2018-09-20 17:13:40 +02:00
Marko Lovic
05bfa193cd
Make Legislation Draft Versions translatable
2018-09-19 14:54:24 +02:00
Marko Lovic
06347062dd
Make Legislation Questions translatable
2018-09-19 14:54:24 +02:00
Javi Martín
5faeefab2c
Show the image button only if editing admin pages
...
That's the only place where we need to attach images so far.
2018-09-12 12:35:28 +02:00
Javi Martín
9705360d98
Enable only a few headings in CKEditor
...
Allowing every format is way more than what we initially intended.
I've only added h2 and h3 because h1 is set somewhere else in the page
(like the title), and h4, h5 and h6 are usually not necessary.
2018-09-12 12:35:28 +02:00
Javi Martín
b6855b7140
Restore allowedContent line
...
We're not sure why it was removed, and we're using server-side
sanitizers to remove dangerous HTML.
2018-09-12 12:35:28 +02:00
Raúl Fuentes
88f0f14eab
Modify the configuration of ckeditor 4
...
add links, headers and images
2018-09-12 12:35:28 +02:00
Marko Lovic
4603a30f95
Change Translatable impl to keep track of enabled locales
2018-09-10 17:18:01 +02:00
decabeza
a2bf8a85f4
Fixes logo header on devise layout
2018-07-31 18:08:09 +02:00
decabeza
92f4c26fa4
Updates styles for admin tables
2018-07-31 12:54:52 +02:00
decabeza
076f9dd474
Moves back link to root path from dashboard to header
2018-07-31 12:47:51 +02:00
Alberto
fb19aafee7
Merge pull request #2778 from wairbut-m2c/backport/investments-moderation
...
Allow budget investments to be moderated
2018-07-27 12:34:17 +02:00
Bertocq
f695a7faf3
Add AdminNotification management at admin panel
...
In the same fashion Newsletters is managed, with the only difference that
the preview is using the notification partial in the same way the index
of notifications.
2018-07-25 18:33:45 +02:00
decabeza
fa4c3de83c
Fixes word wrap on document links
2018-07-24 18:32:34 +02:00
Raimond Garcia
ae0f0f4f5f
Merge pull request #2382 from wairbut-m2c/iagirre-admin-banner-migration
...
Migration to remove images and styles from banners
2018-07-23 14:45:37 +02:00
Alberto
c63fd5ada1
Merge pull request #2776 from consul/ui-custom
...
UI custom
2018-07-23 11:39:19 +02:00
Angel Perez
1990092fdf
Allow moderators to hide inappropriate investments
2018-07-20 18:42:33 -04:00
decabeza
b5caefc0d4
Makes footer sticky to bottom and changes footer styles
2018-07-20 18:51:13 +02:00
decabeza
dcec003d0e
Updates header markup and includes new logo
2018-07-20 18:50:49 +02:00
Alberto
bc5d263a53
Merge pull request #2761 from wairbut-m2c/backport_1384-add-max-heading-number-budget-group-list
...
Backport 1384 add max heading number budget group list
2018-07-20 13:17:38 +02:00
decabeza
137078054e
Fixes padding bottom on recommended index
2018-07-15 21:28:58 -04:00
decabeza
8cbc709601
Fixes margin top on recommended index
2018-07-15 21:28:58 -04:00
Angel Perez
e32387ed5b
Improve CSS styles for recommendations partial
2018-07-15 21:28:58 -04:00
decabeza
ecb0041b7f
Adds recommended index partial and styles
2018-07-15 21:28:56 -04:00
iagirre
d5120e1b32
Delete the folder app/assets/images/banners
2018-07-13 12:08:40 -04:00
iagirre
f871868a2b
Max headings are updated when editing heading
...
The max headings label is updated automatically
when updating the heading. It is done via AJAX
and a refresh isn't needed.
2018-07-13 11:46:09 +02:00
iagirre
82cb8d4c52
Changes suggested in PR:
...
* Delete all things related to banner images and styles (in code)
* Add a new test to check that the banner is showing correctly
* Update the specs accordingly to match the changes
Update dev_seed to set a random background_color and a font_color for banners (and remove everything about image and style)
Add a rake task to migrate the banner style to backgroun_color and font_color (so that the banners have the same colors than before)
2018-07-12 10:17:24 -04:00
iagirre
3690cae458
Apply banner style to the new banners
...
Banner sections can be saved (one banner can appear in several sections)
If the hex color is changed in the textfield, the color of the color picker changes.
2018-07-12 10:16:47 -04:00
iagirre
6d6da8affc
Add form fields to set the colours and the sections for the banner
...
Add migrations to store the information in the database
2018-07-12 10:16:47 -04:00
Raimond Garcia
e370069804
Merge pull request #2708 from javierv/fix_suggestions_keyup
...
Fix suggestions being requested with every keystroke
2018-07-12 16:05:09 +02:00
Alberto
c5c611837d
Merge pull request #2732 from consul/legislation-help-gif
...
Legislation help gif
2018-07-11 17:44:12 +02:00
decabeza
334e567d0d
Adds generic annotator help gif
2018-07-11 14:37:27 +02:00
decabeza
9ecb4f4f22
Fixes heading name on budgets index view
2018-07-05 18:14:15 +02:00
decabeza
2b958de992
Fixes valuation budget investments ui
2018-07-05 18:14:08 +02:00
decabeza
3dc469ad2d
Adss image height to recommendations on homepage
2018-07-05 18:13:45 +02:00