Javi Martín
b2b64ca8a0
Add link to download summary in XLSX format again
...
It was removed in commit 128a8164 alongside everything related to the
legislation process summary.
Co-Authored-By: taitus <sebastia.roig@gmail.com >
2020-09-08 13:32:08 +02:00
Javi Martín
14df74fed7
Add collaborative legislation summary again
...
It was removed in commit 128a8164 because we hadn't reviewed it nor
tested it properly. We're now adding it again, fixing the issues we've
found while reviewing.
2020-09-08 13:32:08 +02:00
decabeza
bcfb9b7a18
Use complete keys on legislation translations
2020-08-07 10:29:39 +02:00
João Lutz
f4ae9725c6
Allow create legislation proposals on process draft phase (Merge #3532 )
2019-11-13 01:23:59 +01:00
Javi Martín
128a816464
Remove collaborative legislation summary
...
This feature wasn't properly tested nor reviewed, and after reviewing
several pull requests with a similar status and considering this pull
request is related to the public area of the web, we've decided to
remove it before releasing version 1.1.
This commit reverts commit 4f50e67a .
2019-11-06 17:21:03 +01:00
Javi Martín
82b0a6a92d
Remove new CSV report generation
...
The new CSV report was more configurable and could work on proposals,
processes and comments. However, it had several issues.
In the public area, by default it generated a blank file.
In the admin section, the report was hard to configure and it generated
a file with less quality than the old system.
So until we improve this system, we're bringing back the old investment
CSV exporter.
This commit reverts most of commit 9d1ca3bf .
2019-11-06 00:04:02 +01:00
Javi Martín
b5eeb3f32f
Apply Style/HashSyntax rubocop rule
...
We were already using it almost everywhere.
2019-10-26 13:03:49 +02:00
Javi Martín
db97f9d08c
Add and apply rubocop rules for empty lines
...
We were very inconsistent regarding these rules.
Personally I prefer no empty lines around blocks, clases, etc... as
recommended by the Ruby style guide [1], and they're the default values
in rubocop, so those are the settings I'm applying.
The exception is the `private` access modifier, since we were leaving
empty lines around it most of the time. That's the default rubocop rule
as well. Personally I don't have a strong preference about this one.
[1] https://rubystyle.guide/#empty-lines-around-bodies
2019-10-24 17:11:47 +02:00
Javi Martín
ae2576020e
Extract method to use WYSIWYGSanitizer in views
...
This is similar to methods we use like `sanitize` or `markdown`.
2019-10-21 21:32:02 +02:00
Javi Martín
928312e218
Use sanitize in translations with links
...
Sometimes we're interpolating a link inside a translation, and marking
the whole translations as HTML safe.
However, some translations added by admins to the database or through
crowdin are not entirely under our control.
Although AFAIK crowdin checks for potential cross-site scripting
attacks, it's a good practice to sanitize parts of a string potentially
out of our control before marking the string as HTML safe.
2019-10-08 18:46:21 +02:00
Javi Martín
f8bd3d4f39
Extract links to signin and signup to methods
2019-10-05 14:07:24 +02:00
Javi Martín
78c6f6f7e9
Use the same key for "signin" and "signup" texts
...
We were using the same texts in several places
2019-10-05 14:07:23 +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
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
Javi Martín
a21240b230
Use Date.current and Time.current
...
Using Date.today and Time.now might lead to inconsistencies if the time
zone the application uses is not the same as the system time zone.
2019-08-28 20:32:40 +02:00
Raimond Garcia
259e05c3e0
Merge pull request #3410 from LextrendIT/report_generation
...
Report generation, download CSV
2019-06-12 11:45:59 +02:00
German Galia
9d1ca3bfd4
Report generation. Download csv
2019-06-12 10:17:31 +02:00
German Galia
4f50e67ac3
Collaborative legislation summary
2019-06-03 12:34:25 +02: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
2b83be1c7c
Use double quotes in app/views/legislation
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
5893ed7587
Create helper for legislation process header with custom colors
2019-01-30 13:15:42 +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
decabeza
78d8e34415
Show following tab on process if there are progress bar
...
Before, this tab only was show if were some milestone
2019-01-24 17:40:09 +01:00
Manu
b6cfe92d76
fixed banner styles issues
2019-01-21 12:02:27 -05:00
Manu
bd4e12112d
Add image to legislation processes and banner colors
2019-01-21 12:02:27 -05:00
decabeza
9dfbeed140
Moves draft and final result publication dates from tabs to sidebar
2019-01-15 16:13:41 +01:00
decabeza
73637de0d0
Adds homepage phase and tab to legislation processes show
2019-01-15 16:13:38 +01:00
Alberto
bbcb96027b
Merge pull request #3137 from consul/key-dates-processes
...
[Backport] Processes key dates
2019-01-08 10:51:40 +01:00
decabeza
dd8e2d6311
Shows participation phases only if there is a phase enabled
2018-12-28 18:23:08 +01:00
decabeza
a982f97cbd
Adds documents list on legislation process proposals phase
2018-12-28 17:22:03 +01:00
dperez
ff9a32c0a5
code reviewed
2018-12-15 18:04:24 +01:00
dperez
bef404c443
add homepage for legislation processes
2018-12-15 18:04:24 +01:00
Javi Martín
a42f5fab37
Add milestones summary to legislation processes
2018-12-11 20:19:48 +01:00
Javi Martín
b95ca9df8a
Add milestones to legislation process view
2018-12-11 20:18:53 +01:00
decabeza
04ea068f90
Fixes legislation processes key dates active class
2018-11-07 13:14:41 +01:00
Javi Martín
d9410a132a
Always show filters for legislation proposals
...
As done in the rest of the application: we show the filters even if
there isn't any data to display.
2018-10-04 16:31:00 +02:00
Raúl Fuentes
05340e423c
Add select to Legislation::Proposals
...
Add admin interface for mark any proposal as selected
Add filter to public interface for selected proposals
2018-10-04 16:28:56 +02:00
Javi Martín
acbf20c938
Extract partial for proposals content
2018-10-03 22:07:55 +02:00
Javi Martín
f93281fd02
Extract link text to a helper
...
This way we can use the same code in custom views which won't use the
same text.
2018-10-03 22:06:20 +02:00
Javi Martín
5ab8587ad2
Use absolute translation paths
...
Using `t(.empty_proposals)` IMHO is a bit dangerous because we'd need to
change the locale files if we move the code to a partial or rename the
file.
2018-10-03 22:05:33 +02:00
Bertocq
c04b0ceda4
Add pagination to legislation process proposals list
2018-10-03 13:46:32 +02:00
Bertocq
599ddf8f41
Create @proposal variable con process controller for proposals list that use random seed
2018-10-03 13:40:59 +02:00
decabeza
52fa9d27ac
Removes custom content on index views pages
2018-07-30 17:55:56 +02:00
decabeza
6f4f161076
Adds help gif on legislation processes with texts
2018-07-05 18:10:06 +02:00
decabeza
0bf31bde6c
Updates all active to is-active classes
2018-06-06 12:02:13 +02:00
decabeza
b93543cbf9
Shows message only if there is questions on legislation debate
2018-04-27 18:24:53 +02:00
decabeza
1ab4458785
Adds description to legislation process share buttons
2018-03-07 17:19:01 +01:00