Javi Martín
6b1864fbcd
Sanitize translations instead of using _html
...
Using the `_html` suffix in an i18n key is the same as using `html_safe`
on it, which means that translation could potentially be used for XSS
attacks.
2019-10-09 19:46:47 +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
8d9cb4d8e3
Simplify generating checkboxes in forms
...
Using the block syntax to generate the label with a <span> tag inside
isn't necessary after upgrading foundation_rails_helpers. Before the
upgrade, we couldn't do so because the <span> tag was escaped.
2019-10-06 19:32:04 +02:00
Javi Martín
3ea9f3cecf
Simplify generating form fields with labels
...
Instead of generating the label and then a field without a label, we can
directly generate a field with a label.
2019-10-05 16:01:58 +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
ee8426c5b5
Indent with spaces instead of tabs
2019-09-10 20:02:15 +02:00
Javi Martín
c62da726b8
Apply SpaceAroundErbTag ERB Lint rule
2019-09-10 20:02:15 +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
347fc21cf0
Fix trailing whitespace
2019-09-10 19:21:03 +02:00
alejandro
2de51d1888
Changes autorize path method.
...
Devise api changed autorize path method
2019-04-16 17:28:07 +02:00
Julian Herrero
f6489bc604
Use double quotes in app/views
2019-03-19 12:33:07 +01:00
rgarcia
b35c750865
Remove unrelated budget recommendation's link
...
During the backport for “Read Notifications”[1] this link was added,
which belongs to a different backport “Budget Recommendations” which is
not quite ready to bring to upstream, yet 😌
[1] https://github.com/AyuntamientoMadrid/consul/pull/1304
2018-03-23 19:31:48 +01:00
rgarcia
09c44ee583
Extend notifications to be marked as read and unread
2018-03-23 11:47:06 +01:00
rgarcia
2b52d26d82
refactors notifications into concerns and shared examples
2017-12-14 16:15:30 +01:00
decabeza
a14d54d56e
include text for notification menu on mobile size
2017-10-17 13:26:00 +02:00
decabeza
79fb497bfb
adds active class on login items menu
2017-07-19 17:03:19 +02:00
decabeza
3bcfaeb61a
replaces sr-only class to show-for-sr
2017-06-13 17:51:57 +02:00
Juanjo Bazán
3f11dbe1d5
allows login using username or email
2017-06-12 17:26:38 +02:00
Alberto Garcia Cabeza
8b42d57e18
adds rel nofollow on links
2017-04-21 16:59:11 +02:00
Alberto Garcia Cabeza
7523c4f870
adds missing close div tag
2017-03-24 16:21:56 +01:00
Alberto Garcia Cabeza
45def094fe
removes accesskey on top links and login items links
2017-03-14 18:42:21 +01:00
Alberto Garcia Cabeza
9e582245d3
avoids use tabindex attribute
2017-03-10 12:04:47 +01:00
Alberto Garcia Cabeza
750909916b
improves layout on sign in and sign up views
2017-01-17 19:13:31 +01:00
Alberto Garcia Cabeza
508de35320
polishes forms styles on devise views
2017-01-09 19:10:15 +01:00
Alberto Garcia Cabeza
201a222cd3
improves styles for omniauth buttons
2017-01-09 18:49:29 +01:00
Marcia
1e87810593
improves expired password view
2016-09-29 14:34:37 +02:00
Marcia
8d883b1e17
mejoras de codigo
2016-09-15 11:45:03 +02:00
Alberto Garcia Cabeza
f3e0626709
Adds text to notifications icons on header
2016-07-12 13:24:49 +02:00
Alberto Garcia Cabeza
9dce52a69a
Adds title on input checkboxes
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
Alberto Garcia Cabeza
84f044c131
Improves website accessibility
2016-03-08 14:00:06 +01:00
Alberto Garcia Cabeza
5615f19ba9
Fixes some classes for foundation 6
2016-02-29 13:52:31 +01:00
Alberto Garcia Cabeza
3752f3a53b
Adds foundation 6 🎉
2016-02-26 19:33:33 +01:00
kikito
9e0494a82d
Activates omniauth functionality
2016-01-26 18:15:45 +01:00
kikito
d5eab64568
adds feature flags for omniauth login buttons/controls
...
Conflicts:
app/controllers/users/omniauth_callbacks_controller.rb
app/views/devise/_omniauth_form.html.erb
2016-01-26 18:15:39 +01:00
Alberto Garcia Cabeza
4d533c3ee3
Adds tabindex on users sign_in form
2016-01-20 16:28:42 +01:00
Juanjo Bazán
432e9e0d5b
adds counter cache for user's notifications
2016-01-08 14:39:34 +01:00
Alberto Garcia Cabeza
e008d1f642
Adds new styles for notifications
2016-01-08 12:45:37 +01:00
Julian Herrero
d9ba3edc2a
mostrar notificaciones a los usuarios cuando alguien comenta en su
...
debate o responde a su comentario
2016-01-05 17:43:44 +01:00
Juanjo Bazán
f57eef4929
makes public activity toggleable
2015-11-04 13:51:31 +01:00
rgarcia
e08ed41e98
fixes conflicts with master
2015-10-14 15:48:55 +02:00
Alberto Garcia Cabeza
2ca4557f2d
Improves accesibility
2015-10-13 16:48:37 +02:00
kikito
5f74528f12
Modifies devise so that unconfirmed users w/o password can set it when confirming their account
2015-10-07 20:18:54 +02:00
Juanjo Bazán
7d8f1f2629
adds title for public devise views
2015-09-28 13:59:17 +02:00
juandefelix
b519cb75fa
added warning text underneath omniauth sign up links
2015-09-19 20:36:16 -05:00
Alberto Garcia Cabeza
eedd919424
Improves styles and texts for devise pages
2015-09-07 00:16:54 +02:00
rgarcia
9838ba86ad
hides social network login
2015-09-01 16:30:12 +02:00
Raimond Garcia
c806547c1a
Merge pull request #257 from AyuntamientoMadrid/social_networks
...
Social networks
2015-08-27 10:52:10 +02:00
Alberto Garcia Cabeza
ad9e2cc637
Adds styles for social share and auth
2015-08-26 20:32:48 +02:00
Alberto Garcia Cabeza
33b501d98e
Improves texts for instructions emails
2015-08-26 19:43:51 +02:00