@@ -151,15 +151,15 @@
- <%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.0/includes/global/footer-global-1.html"))).result %> + <%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.1/includes/global/footer-global-1.html"))).result %> <%= erb :'template_partials/footer' %> - <%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.0/includes/global/footer-global-2.html"))).result %> + <%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.1/includes/global/footer-global-2.html"))).result %>
<% end %> -<%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.0/includes/global/noscript.html"))).result %> -<%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.0/includes/global/js-body.html"))).result.gsub('$DEP_VERSION$', template_dep_version) %> +<%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.1/includes/global/noscript.html"))).result %> +<%= ERB.new(File.read(File.expand_path("#{ROOT}/public/wdn/templates_5.1/includes/global/js-body-local.html"))).result.gsub('$DEP_VERSION$', template_dep_version) %> -- GitLab From 89fab0042831c6900d08939372db45dfffc6fd7a Mon Sep 17 00:00:00 2001 From: Jeff Sturek Date: Mon, 23 Mar 2020 13:55:31 -0500 Subject: [PATCH 2/3] Do not rename fixed.erb --- app.rb | 8 ++++---- views/{local.erb => fixed.erb} | 0 2 files changed, 4 insertions(+), 4 deletions(-) rename views/{local.erb => fixed.erb} (100%) diff --git a/app.rb b/app.rb index 542ea04..9518473 100644 --- a/app.rb +++ b/app.rb @@ -141,13 +141,13 @@ end not_found do @breadcrumbs << {:text => 'Not Found'} - erb 'That page was not found.', :layout => :local + erb 'That page was not found.', :layout => :fixed end error do @breadcrumbs << {:text => 'Error'} flash(:danger, 'Sorry! There was an error.', "We apologize. A really bad error occurred and it didn't work. We're fixing this as we speak.") - erb 'In the meantime, you can go back to the homepage.', :layout => :local + erb 'In the meantime, you can go back to the homepage.', :layout => :fixed end get '/' do @@ -175,7 +175,7 @@ get '/' do where('end_time >= ?', Time.now.midnight).count + 4) / 5 end - erb :home, :layout => :local, :locals => { + erb :home, :layout => :fixed, :locals => { spaces: spaces, resources: app_wide_resources, reservations: reservations, @@ -185,7 +185,7 @@ end get '/kiosk-logout/' do session.clear - erb :kiosk_logout, :layout => :local, :locals => { + erb :kiosk_logout, :layout => :fixed, :locals => { url_redirect: params[:url_redirect], kiosk_mode: 'true' } diff --git a/views/local.erb b/views/fixed.erb similarity index 100% rename from views/local.erb rename to views/fixed.erb -- GitLab From 3d66bfb0e9b77b4a3133dad6ee9c3cafdfb0f74d Mon Sep 17 00:00:00 2001 From: Jeff Sturek Date: Thu, 26 Mar 2020 16:39:00 -0500 Subject: [PATCH 3/3] Remove commented code --- app.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.rb b/app.rb index 9518473..c2602c7 100644 --- a/app.rb +++ b/app.rb @@ -44,7 +44,7 @@ def flash(type, header, message) end before do - #session['init'] = true + session['init'] = true # site defaults @inline_body_script_content = '' -- GitLab