]> cat aescling's git repositories - mastodon.git/commitdiff
Merge branch 'master' into glitch-soc/merge-upstream
authorThibaut Girka <thib@sitedethib.com>
Thu, 14 Mar 2019 16:14:05 +0000 (17:14 +0100)
committerThibaut Girka <thib@sitedethib.com>
Thu, 14 Mar 2019 16:17:20 +0000 (17:17 +0100)
Conflicts:
- app/views/admin/settings/edit.html.haml:
  Conflict due to how the theming settings change.

24 files changed:
1  2 
Gemfile.lock
app/controllers/accounts_controller.rb
app/controllers/admin/settings_controller.rb
app/controllers/auth/registrations_controller.rb
app/helpers/application_helper.rb
app/javascript/styles/mastodon/admin.scss
app/models/account.rb
app/models/form/admin_settings.rb
app/models/user.rb
app/presenters/instance_presenter.rb
app/serializers/rest/instance_serializer.rb
app/views/admin/settings/edit.html.haml
app/views/layouts/public.html.haml
config/locales/ca.yml
config/locales/en.yml
config/locales/es.yml
config/locales/ja.yml
config/locales/oc.yml
config/locales/pl.yml
config/locales/pt-BR.yml
config/routes.rb
config/settings.yml
db/schema.rb
spec/presenters/instance_presenter_spec.rb

diff --cc Gemfile.lock
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
index e3ceb4344fe61f191a967ca7f28b4c0358ae2c8d,d9b4bf01b85f021956821fe637e957fc49b4e546..9995e0b2ad86ada258fe10305ac75dce4a00c39d
@@@ -6,8 -6,11 +6,11 @@@
    .fields-group
      = f.input :site_title, wrapper: :with_label, label: t('admin.settings.site_title')
  
-   .fields-group
-     = f.input :flavour_and_skin, collection: Themes.instance.flavours_and_skins, group_label_method: lambda { |(flavour, _)| I18n.t("flavours.#{flavour}.name", default: flavour) }, wrapper: :with_label, include_blank: false, as: :grouped_select, label_method: :last, value_method: lambda { |value| value.join('/') }, group_method: :last
+   .fields-row
+     .fields-row__column.fields-row__column-6.fields-group
 -      = f.input :theme, collection: Themes.instance.names, label_method: lambda { |theme| I18n.t("themes.#{theme}", default: theme) }, wrapper: :with_label, include_blank: false
++      = f.input :flavour_and_skin, collection: Themes.instance.flavours_and_skins, group_label_method: lambda { |(flavour, _)| I18n.t("flavours.#{flavour}.name", default: flavour) }, wrapper: :with_label, include_blank: false, as: :grouped_select, label_method: :last, value_method: lambda { |value| value.join('/') }, group_method: :last
+     .fields-row__column.fields-row__column-6.fields-group
+       = f.input :registrations_mode, collection: %w(open approved none), wrapper: :with_label, label: t('admin.settings.registrations_mode.title'), include_blank: false, label_method: lambda { |mode| I18n.t("admin.settings.registrations_mode.modes.#{mode}") }
  
    .fields-row
      .fields-row__column.fields-row__column-6.fields-group
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
Simple merge
diff --cc db/schema.rb
Simple merge