From 29c920d06c367d38aa4059a5ee0224a692d40cc9 Mon Sep 17 00:00:00 2001 From: natdeanlewissoftwire Date: Mon, 4 Dec 2023 15:26:18 +0000 Subject: [PATCH] feat: add back links --- app/views/organisations/data_sharing_agreement.html.erb | 4 ++++ app/views/users/show.html.erb | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/app/views/organisations/data_sharing_agreement.html.erb b/app/views/organisations/data_sharing_agreement.html.erb index ea752ce7b..5e2791760 100644 --- a/app/views/organisations/data_sharing_agreement.html.erb +++ b/app/views/organisations/data_sharing_agreement.html.erb @@ -1,5 +1,9 @@ <%= content_for :title, "Data sharing agreement" %> +<% content_for :before_content do %> + <%= govuk_back_link(href: :back) %> +<% end %> +

diff --git a/app/views/users/show.html.erb b/app/views/users/show.html.erb index 82fd950bc..b4b4db85d 100644 --- a/app/views/users/show.html.erb +++ b/app/views/users/show.html.erb @@ -1,5 +1,9 @@ <% content_for :title, current_user == @user ? "Your account" : "#{@user.name.presence || @user.email}’s account" %> +<% content_for :before_content do %> + <%= govuk_back_link(href: :back) %> +<% end %> +