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
9289a051c3
Extract partial to show "sign in to vote" 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
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
c62da726b8
Apply SpaceAroundErbTag ERB Lint rule
2019-09-10 20:02:15 +02:00
Julian Herrero
b78ff808c1
Use double quotes in app/views/debates
2019-03-19 12:16:50 +01:00
decabeza
4e4804e180
Replace total votes to cached_votes_score on debates
...
This show votes_score as result of votes_up minus votes_down
2019-02-12 18:42:35 +01:00
decabeza
3bcfaeb61a
replaces sr-only class to show-for-sr
2017-06-13 17:51:57 +02:00
Alberto Garcia Cabeza
b865eba1ab
removes links on debates and proposals to unlogged users
2016-12-07 17:12:45 +01:00
Alberto Garcia Cabeza
6fd5e6a67a
unifies styles for participation not allowed
2016-10-31 16:50:13 +01:00
Alberto Garcia Cabeza
77b99c1b5c
Adds text to icons like and unlike on debates
2016-07-12 13:48:55 +02:00
Alberto Garcia Cabeza
d46a2f9335
Includes aria hidden attribute on support buttons
2016-05-04 15:21:20 +02:00
Alberto Garcia Cabeza
6f74f8ab8a
Fixes debates votes styles
2016-03-14 19:32:49 +01:00
Alberto Garcia Cabeza
3ec0971b37
Replaces icons i tags for span
2016-03-14 19:32:48 +01:00
Juanjo Bazán
1c5f77def2
makes percentage votes to sum 100
2015-09-15 14:11:12 +02:00
rgarcia
ad8880d02c
adds proposal votes
2015-09-13 21:56:52 +02:00
Juanjo Bazán
1296668606
changes links to verification process
2015-09-11 16:44:00 +02:00
Juanjo Bazán
31a8c15344
removes redundant condition
2015-09-02 12:57:09 +02:00
Juanjo Bazán
8915ce7ffd
adds interface to disallow organizations votes
...
on debates
2015-09-02 12:16:55 +02:00
rgarcia
587749782d
hot fix for anonymous votes
2015-09-01 22:56:27 +02:00
Juanjo Bazán
ac7ad1d863
hides 'too many anonymous votes' layer
2015-09-01 17:49:03 +02:00
Juanjo Bazán
9f4a98d3a0
moves translation keys
2015-09-01 17:49:02 +02:00
Alberto Garcia Cabeza
bcc58ab0c4
Adds styles for too much anonymous votes
2015-09-01 17:49:02 +02:00
kikito
9a071d2ed7
Renames @voted_values to @debate_votes in controllers
2015-09-01 13:07:03 +02:00
David Gil
0291f574a2
add vote counters to comments
2015-08-12 14:59:21 +02:00
Juanjo Bazán
0541e9e936
shows not-logged votes on hover if user not logged
...
Fixes #85
2015-08-11 23:20:42 +02:00
Alberto Garcia Cabeza
3cddc1070a
Adds styles for not logged votes
2015-08-11 17:40:27 +02:00
Juanjo Bazán
37199125fa
refactors votes view code to helper
2015-08-07 09:19:02 +02:00
Juanjo Bazán
33489e7b0c
adds css classes to voted options in debates
...
for logged users.
Closes #88
2015-08-06 18:53:05 +02:00
rgarcia
ec6d34a49f
fixes conflicts
2015-08-06 13:42:57 +02:00
rgarcia
fa5b678b69
fixes conflicts with master [ #25 ]
2015-08-05 13:47:23 +02:00
rgarcia
91b52ad8d2
refactors voting implementation [ #25 ]
2015-08-05 12:24:22 +02:00
rgarcia
2a3086010e
adds voting for comments functionality [ #25 ]
2015-08-02 13:37:37 +02:00