templates/layouts/main.html.ep
author Vincent Tondellier <tonton+hg@team1664.org>
Sun, 14 Feb 2016 20:15:25 +0100
changeset 94 c5fcb00c7261
parent 82 f15cbfb7a8e5
permissions -rw-r--r--
Use LEFT JOIN to use PostgreSQL join removal when possible

<!DOCTYPE html>
<html>
  <head>
    <title><%= title %></title>
    <!--[if lt IE 9]>
      <script src="http://html5shim.googlecode.com/svn/trunk/html5.js"></script>
    <![endif]-->

    % if ( $self->app->mode eq 'development'){
    %= stylesheet '/assets/css/bootstrap.css'
    %} else {
    %= stylesheet '/assets/css/bootstrap.min.css'
    %}
    %= stylesheet '/mojo/prettify/prettify-mojo-dark.css'
    %= stylesheet '/assets/css/application.css'
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
  </head>

  <body>
    %= include("layouts/_navbar")
    <div class="container-fluid">
      <%= content_for 'hero_unit' %>

      <%= content %>
    </div>
    % if ( $self->app->mode eq 'development'){
    %= javascript '/assets/js/jquery.js'
    %= javascript '/assets/js/bootstrap.js'
    %} else {
    %= javascript '/assets/js/jquery.min.js'
    %= javascript '/assets/js/bootstrap.min.js'
    %}
    %= javascript '/assets/prettify/prettify.js'
    %= javascript '/assets/js/application.js'
  </body>
</html>