VRFS-3784 added layout for jamtracks app viewing of corp pages

This commit is contained in:
Jonathan Kolyer 2015-12-17 20:32:37 +00:00
parent 8c7c345859
commit d6500449da
2 changed files with 39 additions and 4 deletions

View File

@ -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
end

View File

@ -0,0 +1,35 @@
<!DOCTYPE html>
<html>
<head>
<title><%= full_title(yield(:title)) %></title>
<style>
body {
color: #999;
}
a {
color: #fc0;
cursor: pointer;
text-decoration: none;
}
h1 {
font-weight: 200;
font-size: 32px;
margin-bottom: 10px;
color: #fff;
}
.term {
font-weight: bold;
text-decoration: underline;
}
h2 {
font-weight: 300;
font-size: 20px;
color: #fff;
}
</style>
<%= csrf_meta_tags %>
</head>
<body bgcolor='#262626' style="font-family:Arial, Helvetica, sans-serif; a.color=#fc0">
<%= yield %>
</body>
</html>