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
f5d8badeb6
Extract partial to show "login to comment" message
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
ae64458fce
Use the same I18n key for "login to comment" text
...
We were using several different keys, all of them having the same
translations.
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
lalo
d721920b97
Display commenter as admin description or name
2019-06-05 16:19:31 +02:00
Julian Herrero
f6489bc604
Use double quotes in app/views
2019-03-19 12:33:07 +01:00
Bertocq
5420cd36bf
Disallow comment actions on valuation comments
2018-01-31 17:46:36 +01:00
Bertocq
9cb4b03276
Disallow valuation comment creation on finished budget
2018-01-31 17:07:56 +01:00
Bertocq
033c197580
Disallow comment flagging when showing valuations
2018-01-31 02:05:35 +01:00
Bertocq
1c3924b527
Hide comment voting at valuation comment threads
2018-01-31 02:04:16 +01:00
Bertocq
149c81371b
Allow valuation internal comments to be created
...
How:
Using a local variable at partials to set a hidden true/false value for
`valuation` parameter on the comment creation form.
Allowing that new param at the comment controller and using it when
building a new Comment.
2018-01-31 02:03:02 +01:00
Bertocq
070c94494e
Fix linelenght over 100 on multiple files
2018-01-26 00:27:03 +01: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
ce7a67418b
Remove current_order variable assignament, only used once
2017-06-26 18:50:28 +02:00
Amaia Castro
3009706b0d
Don’t allow comments on questions for unverified users and when the phase is closed
2017-02-08 18:19:10 +01:00
Amaia Castro
53e9837db3
Change texts for legislation questions comments
2017-01-17 15:42:42 +01:00
kikito
84eb6fcfc1
Adds _comment_tree view
2016-12-02 19:20:33 +01:00