From ca8e77f3dc06bc758c606d316d68ba6a2c1b4a20 Mon Sep 17 00:00:00 2001 From: Fire Demon Date: Sun, 11 Oct 2020 10:43:47 -0500 Subject: Add post history limiting options --- app/views/settings/preferences/privacy/show.html.haml | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'app/views/settings') diff --git a/app/views/settings/preferences/privacy/show.html.haml b/app/views/settings/preferences/privacy/show.html.haml index 5be1ce92d..8f7199665 100644 --- a/app/views/settings/preferences/privacy/show.html.haml +++ b/app/views/settings/preferences/privacy/show.html.haml @@ -9,6 +9,14 @@ %h4= t 'preferences.privacy' + .fields-row + .fields-group.fields-row__column.fields-row__column-6 + = f.input :setting_max_history_public, collection: Status::HISTORY_VALUES, wrapper: :with_label, label_method: lambda { |m| I18n.t("history.#{m}") }, required: false, include_blank: false + + .fields-group.fields-row__column.fields-row__column-6 + = f.input :setting_max_history_private, collection: Status::HISTORY_VALUES, wrapper: :with_label, label_method: lambda { |m| I18n.t("history.#{m}") }, required: false, include_blank: false + + .fields-group = f.input :setting_default_privacy, collection: Status.selectable_visibilities, wrapper: :with_label, include_blank: false, label_method: lambda { |visibility| safe_join([I18n.t("statuses.visibilities.#{visibility}"), I18n.t("statuses.visibilities.#{visibility}_long")], ' - ') }, required: false, hint: false -- cgit