decabeza
bcfb9b7a18
Use complete keys on legislation translations
2020-08-07 10:29:39 +02:00
Javi Martín
573f861ad1
Don't use comment_flags to cache comments
...
Flagging a comment automatically updates the comment, so the cache
expires anyway, making the `comment_flags` variable redundant.
2020-05-11 16:09:23 +02:00
Javi Martín
fa070f326e
Remove unnecessary content_tag calls
...
We're usually using HTML tags in views instead.
2020-04-27 19:26:37 +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
86a205c8fc
Extract link to verify account to a mehtod
...
We were using the same text and the same route in many places.
2019-10-05 14:20:03 +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
2ccc283bb7
Use the same I18n key for "verify account" text
...
We were using several different keys, all of them having the same text.
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
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
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
0bf31bde6c
Updates all active to is-active classes
2018-06-06 12:02:13 +02:00
decabeza
827e4702a9
removes duplicated social share partial on legislation views
2017-08-16 13:40:46 +02:00
Bertocq
6c386ffd95
Make comments count display optional using a variable on comments comment_tree partial
2017-06-26 19:23:49 +02:00
Bertocq
523988a291
Replace old open_phase? method for new phase/publication open? on Legislative Process
2017-06-13 22:04:36 +02:00
Amaia Castro
3ab6adbb1b
Refactor share buttons partial to use gem helper
2017-03-25 13:54:33 +01:00
Amaia Castro
d656de680d
Social share buttons for annotation
2017-02-09 15:32:42 +01:00
Amaia Castro
53e9837db3
Change texts for legislation questions comments
2017-01-17 15:42:42 +01:00
Martín González
eadf933c22
Change debate questions class to avoid colliding with other CSS
2017-01-13 16:42:59 +01:00
Martín González
5a5fed975a
Push changes
2017-01-13 16:19:57 +01:00
Martín González
1cf074a297
Fix identation and markup issue on the legislation question page
2017-01-13 15:41:23 +01:00
Martín González
a0011b7c5c
More css fixes
2017-01-12 11:55:12 +01:00
Amaia Castro
f974883556
Refactor legislation comments partials
2017-01-11 16:27:22 +01:00
Fernando Blat
8682e426ac
Show warning if phase is not open
2017-01-05 13:08:06 +01:00
Fernando Blat
de13574617
Show link to the first question
2017-01-05 12:31:20 +01:00
Fernando Blat
ba0089ac44
Truncate social networks text
2017-01-05 11:05:45 +01:00
Amaia Castro
f505d6fec7
Check if debate phase is open to create answers
2016-12-28 22:02:08 +01:00
Amaia Castro
646ec67595
‘Participation not allowed’ hover for legislation questions
2016-12-28 17:37:17 +01:00
Amaia Castro
2693393eb0
Answer question through ajax
2016-12-28 16:21:58 +01:00
Amaia Castro
a6ceab6d73
Answer legislation questions
2016-12-27 19:49:03 +01:00
Amaia Castro
55eb03531c
Comments in legislation question page
2016-12-23 09:35:02 +01:00
Amaia Castro
f68b6a2f32
Question title for page and share links
2016-12-22 17:27:59 +01:00
Amaia Castro
368430d914
Legislation Question page
2016-12-22 16:00:28 +01:00
Amaia Castro
36399277ec
Legislation Process page
2016-12-22 11:23:49 +01:00