Skip to content

Commit

Permalink
Avoid confusion with "Request data" button (#470)
Browse files Browse the repository at this point in the history
* Left-align data request button

* Add back to home button to profile view
  • Loading branch information
Splines authored Apr 21, 2023
1 parent ecd878f commit e75f748
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/profile/_data.html.erb
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<div class="col-12 mb-3">
<div class="mb-3">
<%= t('profile.data_explanation') %>
</div>
<div class="col-12 text-center">
<div>
<%= link_to t('profile.data_request'),
request_data_path,
class: 'btn btn-sm btn-primary',
Expand Down
7 changes: 7 additions & 0 deletions app/views/profile/edit.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,10 @@
<%= render partial: 'shared/generic_modal',
locals: { sort: 'deleteAccount',
title: t('profile.delete_account') } %>

<div>
<%= link_to :root, class: "btn btn-sm btn-primary" do %>
<span class="bi bi-arrow-left">
<%= t('back_to_home') %>
<% end %>
</div>
1 change: 1 addition & 0 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
Expand Down
1 change: 1 addition & 0 deletions config/locales/en.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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}'
Expand Down

0 comments on commit e75f748

Please sign in to comment.