From d6500449da2276fe69f4e182a7b831b1ca469506 Mon Sep 17 00:00:00 2001 From: Jonathan Kolyer Date: Thu, 17 Dec 2015 20:32:37 +0000 Subject: [PATCH] VRFS-3784 added layout for jamtracks app viewing of corp pages --- web/app/controllers/corps_controller.rb | 8 +++--- web/app/views/layouts/jtx.html.erb | 35 +++++++++++++++++++++++++ 2 files changed, 39 insertions(+), 4 deletions(-) create mode 100644 web/app/views/layouts/jtx.html.erb diff --git a/web/app/controllers/corps_controller.rb b/web/app/controllers/corps_controller.rb index 2ac1e93ca..a7fa80b4a 100644 --- a/web/app/controllers/corps_controller.rb +++ b/web/app/controllers/corps_controller.rb @@ -3,7 +3,7 @@ class CorpsController < ApplicationController layout "corporate" def about - + render(layout: 'jtx') and return if request.params[:jtx] end def news @@ -51,11 +51,11 @@ class CorpsController < ApplicationController end def privacy - + render(layout: 'jtx') and return if request.params[:jtx] end def terms - + render(layout: 'jtx') and return if request.params[:jtx] end def help @@ -69,4 +69,4 @@ class CorpsController < ApplicationController def premium_accounts_path end -end \ No newline at end of file +end diff --git a/web/app/views/layouts/jtx.html.erb b/web/app/views/layouts/jtx.html.erb new file mode 100644 index 000000000..8e5040c50 --- /dev/null +++ b/web/app/views/layouts/jtx.html.erb @@ -0,0 +1,35 @@ + + + + <%= full_title(yield(:title)) %> + + <%= csrf_meta_tags %> + + + <%= yield %> + +