From e75f748ec826edc2ece6bc48b876361e7c5ba258 Mon Sep 17 00:00:00 2001 From: Splines <37160523+Splines@users.noreply.github.com> Date: Fri, 21 Apr 2023 23:12:22 +0200 Subject: [PATCH] Avoid confusion with "Request data" button (#470) * Left-align data request button * Add back to home button to profile view --- app/views/profile/_data.html.erb | 4 ++-- app/views/profile/edit.html.erb | 7 +++++++ config/locales/de.yml | 1 + config/locales/en.yml | 1 + 4 files changed, 11 insertions(+), 2 deletions(-) diff --git a/app/views/profile/_data.html.erb b/app/views/profile/_data.html.erb index 29893fff6..e898e74f0 100644 --- a/app/views/profile/_data.html.erb +++ b/app/views/profile/_data.html.erb @@ -1,7 +1,7 @@ -
+
<%= t('profile.data_explanation') %>
-
+
<%= link_to t('profile.data_request'), request_data_path, class: 'btn btn-sm btn-primary', diff --git a/app/views/profile/edit.html.erb b/app/views/profile/edit.html.erb index d37a961d0..50efaff34 100644 --- a/app/views/profile/edit.html.erb +++ b/app/views/profile/edit.html.erb @@ -137,3 +137,10 @@ <%= render partial: 'shared/generic_modal', locals: { sort: 'deleteAccount', title: t('profile.delete_account') } %> + +
+ <%= link_to :root, class: "btn btn-sm btn-primary" do %> + + <%= t('back_to_home') %> + <% end %> +
\ No newline at end of file diff --git a/config/locales/de.yml b/config/locales/de.yml index 9f6959fd4..bddf9a740 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -2103,6 +2103,7 @@ de: details: 'Details' none: 'keine' back: 'Zurück' + back_to_home: 'Zurück zur Startseite' today: 'heute' yesterday: 'gestern' chapter: 'Kapitel %{number}. %{title}' diff --git a/config/locales/en.yml b/config/locales/en.yml index b514032d5..7f11b8c01 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -1977,6 +1977,7 @@ en: details: 'Details' none: 'none' back: 'Back' + back_to_home: 'Back to home' today: 'today' yesterday: 'yesterday' chapter: 'Chapter %{number}. %{title}'