<!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]-->
        <!--<link href='http://fonts.googleapis.com/css?family=Raleway:100,200,300,400,500,600,700' rel='stylesheet' type='text/css'>-->
        <%= stylesheet_link_tag    "client/ie", media: "all" %>
        <%= stylesheet_link_tag    "client/jamkazam", media: "all" %>
        <%= stylesheet_link_tag    "client/faders", media: "all" %>
        <%= stylesheet_link_tag    "client/content", media: "all" %>
        <%= stylesheet_link_tag    "client/header", media: "all" %>
        <%= stylesheet_link_tag    "client/footer", media: "all" %>
        <%= stylesheet_link_tag    "client/screen_common", media: "all" %>
        <%= stylesheet_link_tag    "client/notify", media: "all" %>
        <%= stylesheet_link_tag    "client/dialog", media: "all" %>
        <%= stylesheet_link_tag    "client/sidebar", media: "all" %>
        <%= stylesheet_link_tag    "client/home", media: "all" %>
        <%= stylesheet_link_tag    "client/findSession", media: "all" %>
        <%= stylesheet_link_tag    "client/session", media: "all" %>
        <%= stylesheet_link_tag    "client/search", media: "all" %>
        <%= stylesheet_link_tag    "client/ftue", media: "all" %>
        <%= stylesheet_link_tag    "client/createSession", media: "all" %>
        <meta name="description" content="<%= meta_description(yield(:description)) %>">
        <%= include_gon %>
        <%= csrf_meta_tags %>
        <%= render "shared/ad_sense" %>
    </head>
    <body>
        <%=  javascript_include_tag "application" %>
        <%= render 'layouts/header' %>
        <div class="container">
            <% flash.each do |key, value| %>
                <div class="alert alert-<%= key %>"><%= value %></div>
            <% end %>
        </div>
        <%= yield %>

        <script type="text/javascript">
            $(function () {
                JK = JK || {};

                JK.root_url = "<%= root_url %>"

                <% if current_user %>
                JK.currentUserId = '<%= current_user.id %>';
                JK.currentUserAvatarUrl = JK.resolveAvatarUrl('<%= current_user.photo_url %>');
                JK.currentUserName = '<%= current_user.name %>';
                <% else %>
                JK.currentUserId = null;
                JK.currentUserAvatarUrl = null;
                JK.currentUserName = null;
                <% end %>

                JK.getGenreList().done(function(genres) {
                  JK.genres = genres;
                });
            })
        </script>

        <%= render "shared/ga" %>
    </body>
</html>
