From b03378d36d5e9e0ebb3f53aa4c196ad102167cdf Mon Sep 17 00:00:00 2001 From: Emin Kocan Date: Wed, 3 Jul 2024 13:19:23 +0200 Subject: [PATCH] Move continue auth/start mapping button to appear fixed in footer Pin 'Continue Auth/Start Mapping' button to bottom of page for improved user navigation and simplified OAuth process. --- app/views/layouts/_content.html.erb | 7 +++++++ app/views/site/welcome.html.erb | 20 ++++++++++++-------- 2 files changed, 19 insertions(+), 8 deletions(-) diff --git a/app/views/layouts/_content.html.erb b/app/views/layouts/_content.html.erb index d6f825832..635b3f492 100644 --- a/app/views/layouts/_content.html.erb +++ b/app/views/layouts/_content.html.erb @@ -17,5 +17,12 @@ <%= yield %> + <% if content_for? :footer %> + + <% end %> <% end %> diff --git a/app/views/site/welcome.html.erb b/app/views/site/welcome.html.erb index b874e1324..6dabde763 100644 --- a/app/views/site/welcome.html.erb +++ b/app/views/site/welcome.html.erb @@ -53,15 +53,19 @@ <%= render "any_questions" %> -
-<% if params[:oauth_return_url] %> - <%= t ".continue_authorization" %> -<% else %> - <%= link_to t(".start_mapping"), edit_path(:editor => params[:editor], :anchor => map_hash(params)), :class => "btn btn-primary start-mapping" %> -<% end %> -
-

<%= t "site.add_a_note.title" %>

<%= render "add_a_note" %>
+ +<% content_for :footer_outer_class, "sticky-bottom" %> +<% content_for :footer_class, "mx-auto" %> +<% content_for :footer do %> +
+ <% if params[:oauth_return_url] %> + <%= t ".continue_authorization" %> + <% else %> + <%= link_to t(".start_mapping"), edit_path(:editor => params[:editor], :anchor => map_hash(params)), :class => "btn btn-primary start-mapping" %> + <% end %> +
+<% end %> -- 2.39.5