Adding some localizations
This commit is contained in:
@ -1,16 +1,16 @@
|
||||
- content_for :page_title do
|
||||
Preferences
|
||||
= t('settings.preferences')
|
||||
|
||||
= simple_form_for current_user, url: settings_preferences_path, html: { method: :put } do |f|
|
||||
= render 'shared/error_messages', object: current_user
|
||||
|
||||
= f.simple_fields_for :notification_emails, current_user.settings(:notification_emails) do |ff|
|
||||
= ff.input :follow, as: :boolean, wrapper: :with_label, label: 'Send e-mail when someone follows you'
|
||||
= ff.input :reblog, as: :boolean, wrapper: :with_label, label: 'Send e-mail when someone reblogs your status'
|
||||
= ff.input :favourite, as: :boolean, wrapper: :with_label, label: 'Send e-mail when someone favourites your status'
|
||||
= ff.input :mention, as: :boolean, wrapper: :with_label, label: 'Send e-mail when someone mentions you'
|
||||
= ff.input :follow, as: :boolean, wrapper: :with_label
|
||||
= ff.input :reblog, as: :boolean, wrapper: :with_label
|
||||
= ff.input :favourite, as: :boolean, wrapper: :with_label
|
||||
= ff.input :mention, as: :boolean, wrapper: :with_label
|
||||
|
||||
.actions
|
||||
= f.button :button, 'Save changes', type: :submit
|
||||
= f.button :button, t('generic.save_changes'), type: :submit
|
||||
|
||||
.form-footer= render "settings/shared/links"
|
||||
|
@ -1,15 +1,15 @@
|
||||
- content_for :page_title do
|
||||
Edit profile
|
||||
= t('settings.edit_profile')
|
||||
|
||||
= simple_form_for @account, url: settings_profile_path, html: { method: :put } do |f|
|
||||
= render 'shared/error_messages', object: @account
|
||||
|
||||
= f.input :display_name, placeholder: 'Display name'
|
||||
= f.input :note, placeholder: 'Bio'
|
||||
= f.input :display_name, placeholder: t('simple_form.labels.defaults.display_name')
|
||||
= f.input :note, placeholder: t('simple_form.labels.defaults.note')
|
||||
= f.input :avatar, wrapper: :with_label
|
||||
= f.input :header, wrapper: :with_label
|
||||
|
||||
.actions
|
||||
= f.button :button, 'Save changes', type: :submit
|
||||
= f.button :button, t('generic.save_changes'), type: :submit
|
||||
|
||||
.form-footer= render "settings/shared/links"
|
||||
|
@ -1,7 +1,7 @@
|
||||
%ul.no-list
|
||||
- if controller_name != 'profiles'
|
||||
%li= link_to "Edit profile", settings_profile_path
|
||||
%li= link_to t('settings.edit_profile'), settings_profile_path
|
||||
- if controller_name != 'preferences'
|
||||
%li= link_to "Preferences", settings_preferences_path
|
||||
%li= link_to t('settings.preferences'), settings_preferences_path
|
||||
- if controller_name != 'registrations'
|
||||
%li= link_to "Change password", edit_user_registration_path
|
||||
%li= link_to t('auth.change_password'), edit_user_registration_path
|
||||
|
Reference in New Issue
Block a user