jam-cloud/web/app/views/layouts/landing.erb

78 lines
2.5 KiB
Plaintext
Raw Normal View History

<!DOCTYPE html>
<html>
<head>
<title><%= full_title(yield(:title)) %></title>
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="css/ie.css" media="screen, projection"/>
<![endif]-->
2014-02-14 23:41:01 +00:00
<script src="//ajax.googleapis.com/ajax/libs/webfont/1.4.7/webfont.js"></script>
<script>
if(window.WebFont){
WebFont.load({
google: {
families: ['Raleway:100,200,300,400,500,600,700']
},
timeout :5000
});
}
2014-02-14 23:41:01 +00:00
</script>
<!--<link href='http://fonts.googleapis.com/css?family=Raleway:100,200,300,400,500,600,700' rel='stylesheet' type='text/css'>-->
<%= stylesheet_link_tag "landing/landing", media: "all" %>
<% if bugsnag? %>
<!-- THIS NEEDS TO BE IN FRONT OF ANY OTHER JAVASCRIPT INCLUDES ACCORDING TO BUGSNAG -->
<script src="//d2wy8f7a9ursnm.cloudfront.net/bugsnag-1.0.9.min.js" data-apikey="<%= Rails.application.config.bugsnag_key %>"></script>
<% end %>
2013-10-21 22:13:53 +00:00
<%= include_gon(:init => true) %>
<%= csrf_meta_tags %>
<% if content_for?(:social_meta) %>
<%= yield(:social_meta) %>
2014-02-06 16:31:52 +00:00
<% else %>
<%= render "layouts/social_meta" %>
2014-02-06 16:31:52 +00:00
<% end %>
</head>
<body class="jam">
<div id="landing-container">
<%= javascript_include_tag "landing/landing" %>
<div class="logo-message">
<%= link_to root_path do %>
<%= image_tag("header/logo.png", :alt => "JamKazam logo", :size => "247x45") %>
<% end %>
</div>
<br />
<br />
<div id="landing-inner">
<%= yield %>
</div>
</div>
<div id="footer-container">
<%= render "clients/footer" %>
</div>
2014-01-30 21:51:05 +00:00
<script type="text/javascript">
$(function () {
JK = JK || {};
2014-02-07 05:57:31 +00:00
JK.root_url = "<%= root_url %>"
2014-01-30 21:51:05 +00:00
<% if current_user %>
JK.currentUserId = '<%= current_user.id %>';
2014-02-05 06:51:26 +00:00
JK.currentUserAvatarUrl = JK.resolveAvatarUrl('<%= current_user.photo_url %>');
JK.currentUserName = '<%= current_user.name %>';
2014-01-30 21:51:05 +00:00
<% else %>
JK.currentUserId = null;
2014-02-05 06:51:26 +00:00
JK.currentUserAvatarUrl = null;
JK.currentUserName = null;
2014-01-30 21:51:05 +00:00
<% end %>
})
</script>
<%= render "shared/ga" %>
<!-- version info: <%= version %> -->
</body>
</html>