Commit Graph

12 Commits

Author SHA1 Message Date
Jakub Krzus
7e669e8e39 refactor custom pages seed files 2021-04-08 19:15:06 +01:00
Jakub Krzus
299a05345d add conditional to accesibility.rb generator preventing exceptions when row in translation files is nul 2021-04-08 18:45:53 +01:00
Jakub Krzus
ca047b9a52 welcome_not_verified translations in seed are being generated 2021-03-22 17:52:39 +00:00
Jakub Krzus
a50b14a354 welcome_level_two_verified translations in seed are being generated 2021-03-22 17:52:22 +00:00
Jakub Krzus
465725aa90 welcome_level_three_verified translations in seed are being generated 2021-03-22 17:50:05 +00:00
Jakub Krzus
44bec30bf8 privacy translations in seed are being generated 2021-03-22 17:50:05 +00:00
Jakub Krzus
c690635b6c conditions translations in seed are being generated 2021-03-22 17:50:05 +00:00
Jakub Krzus
0c0a97a906 accessibility translations in seed are being generated 2021-03-22 17:50:05 +00:00
Jakub Krzus
2781fbac96 faq translations in seed are being generated 2021-03-22 17:49:36 +00:00
Javi Martín
49e55b4dc4 Apply Rails/DynamicFindBy rubocop rule
We were already using `find_by` most of the time.

Since there are false positives related to our `find_by_slug_or_id!` and
`find_by_manger_login` methods, which cannot be replaced with `find_by`,
I'm adding it indicating the "refactor" severity.
2019-10-23 20:05:40 +02:00
Javi Martín
7782ed73b6 Remove unneeded _html suffix
Although this translation has HTML, we aren't marking them as HTML safe
since we're using `I18n.t` instead of Rails' helper `t` method. So using
the `_html` suffix is counterintuitive in this case.
2019-10-09 19:46:47 +02:00
Julian Herrero
87be6f302c Add default site customization pages
From now on these static pages:

`/privacy'
`/conditions'
`/accesibility'
`/help/faq'
`/welcome'

have been moved to the DB and can be modified easily by any
administrator in `/admin/site_customization/pages'
2019-03-14 18:35:51 +01:00