From 4d31addd0c9321b19080d001f29750790f9b04b7 Mon Sep 17 00:00:00 2001 From: Andreas Nedbal Date: Sun, 26 Jun 2022 19:46:32 +0200 Subject: [PATCH] Use proper route definitions in templates --- app/views/tabs/_settings.haml | 2 +- app/views/user/_actions.haml | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app/views/tabs/_settings.haml b/app/views/tabs/_settings.haml index ec690698..30c6777a 100644 --- a/app/views/tabs/_settings.haml +++ b/app/views/tabs/_settings.haml @@ -1,7 +1,7 @@ .card .list-group = list_group_item t(".account"), edit_user_registration_path - = list_group_item t(".profile"), edit_user_profile_path + = list_group_item t(".profile"), settings_profile_path = list_group_item t(".privacy"), edit_user_privacy_path = list_group_item t(".security"), edit_user_security_path = list_group_item t(".sharing"), services_path diff --git a/app/views/user/_actions.haml b/app/views/user/_actions.haml index c1e3c437..0a102ded 100644 --- a/app/views/user/_actions.haml +++ b/app/views/user/_actions.haml @@ -1,7 +1,7 @@ .profile__actions - type ||= :nil - if user_signed_in? && user == current_user - %a.btn.btn-dark.btn-block{ href: edit_user_profile_path } Edit profile + %a.btn.btn-dark.btn-block{ href: settings_profile_path } Edit profile - elsif user_signed_in? - if current_user.following? user %button.btn.btn-primary.btn-block{ type: :button, name: 'user-action', data: { action: :unfollow, type: type, target: user.screen_name } }