Javi Martín
9b908d7264
Extract component to render account permissions
...
We were using similar code in four different places; six, if we count
the welcome pages seeds. Reducing duplication in the pages seeds is a
bit tricky because administrators are supposed to edit their content and
might remove the HTML class we use to define styles. However, we can
share the code everywhere else.
Note that there's a bug in the application since we show that level 2
users cannot vote for budget projects but we give them permission to do
so in the abilities model. We're keeping the same behavior after this
refactoring but we might change it in the future.
2022-11-29 18:48:24 +01:00
Javi Martín
231a7aa8ee
Remove unused code to track events
...
We forgot to remove it in commit f28a5cc49 .
The generated HTML was invalid, with the error:
> Element meta is missing one or more of the following attributes:
> content, property.
2021-12-30 17:05:07 +01:00
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
9ddbd01f91
Use active model translations for labels
...
The same way we did for Active Record, but this time we do it for models
not inheriting fom Active Record.
2019-10-07 01:56:24 +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
decabeza
0e1bf2188c
Remove unused verification offices url setting
2019-03-06 13:08:35 +01:00
decabeza
0bf31bde6c
Updates all active to is-active classes
2018-06-06 12:02:13 +02:00
decabeza
0b235d69d4
adds consistency for back links
2017-07-26 18:18:30 +02:00
Fernando Blat
76bc1a7934
Use settings helper
2017-01-03 08:55:17 +01:00
Fernando Blat
ca2370eb7c
Manage offices url as a setting
2016-12-29 10:31:38 +01:00
palomahnhp
b4ec077f16
Merge remote-tracking branch 'origin/master' into tracking_user_verifications_and_others
...
Conflicts:
app/assets/javascripts/application.js
2016-04-20 11:28:06 +02:00
Alberto Garcia Cabeza
f6571662a2
Adds title on links with target blank
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
palomahnhp
7d4936b577
track user verification and add statistics of verified users who did not vote proposals
2016-03-13 21:38:05 +01:00
Alberto Garcia Cabeza
3752f3a53b
Adds foundation 6 🎉
2016-02-26 19:33:33 +01:00
Alberto Garcia Cabeza
66acbdbb66
Removes unused classes
2015-12-16 11:58:36 +01:00
kikito
58728102a6
merges and fixes conflicts
2015-10-20 16:23:51 +02:00
kikito
0d0806c9ae
improvements in the letter verification error messages
2015-10-20 16:19:17 +02:00
Alberto Garcia Cabeza
b33553cc1d
Adds new styles to verifica page
2015-10-20 15:45:08 +02:00
rgarcia
5fe1bb3eee
verifies the letter's code
2015-10-19 22:58:44 +02:00
rgarcia
0d01f431fb
simplifies verification form
2015-10-19 20:33:10 +02:00
rgarcia
a6fd1fb489
moves letter verification to letter controller
2015-10-19 19:38:22 +02:00
rgarcia
fd8684e713
redirects to show after asking for letter
2015-10-19 19:32:53 +02:00
Alberto Garcia Cabeza
e86f585232
Change some links to proposals
2015-10-09 11:30:57 +02:00
Alberto Garcia Cabeza
ebcb1009ae
Changes texts and styles for verification process
2015-10-02 15:15:05 +02:00
Alberto Garcia Cabeza
de4b0eb502
Improves styles for verification account
2015-09-17 13:38:32 +02:00
Alberto Garcia Cabeza
9c47129274
Simplifies final verification page
2015-09-16 17:27:57 +02:00
Alberto Garcia Cabeza
0b2cf1e2bb
Changes final verification step page
2015-09-14 19:18:50 +02:00
rgarcia
1fb2211776
removes unused validation errors [ #395 ]
2015-09-10 14:27:37 +02:00
Álvaro Durán Tovar
92ae988251
adds close button to alert boxes, also adds
...
data-alert attribute to enable javascript
on them
2015-09-06 19:54:12 +02:00
Alberto Garcia Cabeza
4e92b5c3ce
Adds back link on verification pages
2015-09-04 15:06:38 +02:00
rgarcia
99d779bcec
adds letter code verification
2015-09-02 21:57:03 +02:00
Alberto Garcia Cabeza
da86c5d6e0
Adds styles for verification account process
2015-09-02 12:34:08 +02:00
Juanjo Bazán
52f57c5b39
fixes letter new form
2015-08-29 12:21:55 +02:00
rgarcia
f7d22f64b6
adds letter verification
2015-08-27 23:58:31 +02:00