about summary refs log tree commit diff
path: root/app/views/settings/preferences
diff options
context:
space:
mode:
authorFire Demon <firedemon@creature.cafe>2020-10-11 10:43:47 -0500
committerFire Demon <firedemon@creature.cafe>2020-10-11 10:43:47 -0500
commitca8e77f3dc06bc758c606d316d68ba6a2c1b4a20 (patch)
tree674fd8518e8ab9c3d8892fd4091543526f6688bb /app/views/settings/preferences
parent267bf798fe48ceff8f11e893af4356aa170ae6e1 (diff)
Add post history limiting options
Diffstat (limited to 'app/views/settings/preferences')
-rw-r--r--app/views/settings/preferences/privacy/show.html.haml8
1 files changed, 8 insertions, 0 deletions
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