From 6dc058742330502d3beb1bde46109ae949331186 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 3 Jul 2022 21:11:35 +0200 Subject: [PATCH] Move mute action views to new locations --- app/views/settings/{_muted.haml => mutes/index.haml} | 5 ++++- app/views/tabs/_settings.haml | 2 +- app/views/user/edit_mute.haml | 4 ---- 3 files changed, 5 insertions(+), 6 deletions(-) rename app/views/settings/{_muted.haml => mutes/index.haml} (90%) delete mode 100644 app/views/user/edit_mute.haml diff --git a/app/views/settings/_muted.haml b/app/views/settings/mutes/index.haml similarity index 90% rename from app/views/settings/_muted.haml rename to app/views/settings/mutes/index.haml index b27c0846..078e9d97 100644 --- a/app/views/settings/_muted.haml +++ b/app/views/settings/mutes/index.haml @@ -21,4 +21,7 @@ .input-group %input.form-control{ disabled: true } .input-group-append - %button.btn.btn-danger{ type: "button" }= t(".actions.remove") \ No newline at end of file + %button.btn.btn-danger{ type: "button" }= t(".actions.remove") + +- provide(:title, generate_title(t(".title"))) +- parent_layout "user/settings" diff --git a/app/views/tabs/_settings.haml b/app/views/tabs/_settings.haml index d7617beb..80ccafaa 100644 --- a/app/views/tabs/_settings.haml +++ b/app/views/tabs/_settings.haml @@ -5,7 +5,7 @@ = list_group_item t(".privacy"), settings_privacy_path = list_group_item t(".security"), settings_two_factor_authentication_otp_authentication_path = list_group_item t(".sharing"), services_path - = list_group_item t(".mutes"), edit_user_mute_rules_path + = list_group_item t(".mutes"), settings_muted_path = list_group_item t(".blocks"), edit_user_blocks_path = list_group_item t(".theme"), settings_theme_path = list_group_item t(".data"), user_data_path diff --git a/app/views/user/edit_mute.haml b/app/views/user/edit_mute.haml deleted file mode 100644 index 93504acd..00000000 --- a/app/views/user/edit_mute.haml +++ /dev/null @@ -1,4 +0,0 @@ -= render "settings/muted" - -- provide(:title, generate_title(t(".title"))) -- parent_layout "user/settings"