diff options
author | ThibG <thib@sitedethib.com> | 2018-06-22 00:10:43 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-22 00:10:43 +0200 |
commit | 03cfe366fd0146cb4c3ede4dcdeeb2228a513e7d (patch) | |
tree | 4ea4874b420a859b706b1187440e2ed103800396 /app/views/settings | |
parent | f0161702d857a2f91d2e51469e8480253ffcd86e (diff) | |
parent | 0c3a337e045dbd4b7be6ae6c3f07969b42f08857 (diff) |
Merge pull request #550 from ThibG/glitch-soc/merge-upstream
Merge upstream changes
Diffstat (limited to 'app/views/settings')
-rw-r--r-- | app/views/settings/preferences/show.html.haml | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/settings/preferences/show.html.haml b/app/views/settings/preferences/show.html.haml index 4632034d7..9092780c3 100644 --- a/app/views/settings/preferences/show.html.haml +++ b/app/views/settings/preferences/show.html.haml @@ -12,7 +12,9 @@ .fields-group = f.input :locale, collection: I18n.available_locales, wrapper: :with_label, include_blank: false, label_method: lambda { |locale| human_locale(locale) }, selected: I18n.locale - = f.input :filtered_languages, collection: filterable_languages, wrapper: :with_block_label, include_blank: false, label_method: lambda { |locale| human_locale(locale) }, required: false, as: :check_boxes, collection_wrapper_tag: 'ul', item_wrapper_tag: 'li' + = f.input :setting_default_language, collection: [nil] + filterable_languages.sort, wrapper: :with_label, label_method: lambda { |locale| locale.nil? ? I18n.t('statuses.language_detection') : human_locale(locale) }, required: false, include_blank: false + + = f.input :chosen_languages, collection: filterable_languages.sort, wrapper: :with_block_label, include_blank: false, label_method: lambda { |locale| human_locale(locale) }, required: false, as: :check_boxes, collection_wrapper_tag: 'ul', item_wrapper_tag: 'li' %h4= t 'preferences.publishing' |