rafaels88/pinfluence

View on GitHub
apps/web/templates/application.html.erb

Summary

Maintainability
Test Coverage
<!DOCTYPE html>
<html>
  <head>
    <title>World's Influence in a map | Pinfluence</title>
    <meta charset="utf-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0">
    <meta name="description" content="All influences of the world in a map">

    <%= favicon %>
    <link rel="canonical" href="http://pinfluence.org/" />

    <meta property="og:site_name" content="Pinfluence" />
    <meta property="og:type" content="website" />
    <meta property="og:image" content="http://pinfluence.org/assets/logo.png" />
    <meta property="og:title" content="Pinfluence" />
    <meta property="og:description" content="All influences of the world in a map" />
    <meta property="og:url" content="http://pinfluence.org" />

    <meta name="twitter:card" content="summary_large_image" />
    <meta name="twitter:image" content="http://pinfluence.org/assets/logo.png" />
    <meta name="twitter:title" content="Pinfluence" />
    <meta name="twitter:description" content="All influences of the world in a map" />
    <meta name="twitter:url" content="http://pinfluence.org" />

    <link href="https://fonts.googleapis.com/css?family=Arvo" rel="stylesheet">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.6/semantic.min.css" type="text/css" charset="utf-8">
    <%= stylesheet 'application' %>
  </head>
  <body>
    <%= yield %>

    <%= gmaps_tag %>

    <%= javascript 'jquery.min' %>
    <!-- Dates slider -->
    <%= javascript 'nouislider.min', 'wNumb' %>
    <!-- Marker smooth sliding -->
    <%= javascript 'jquery.easing.1.3.min', 'markerAnimate', 'SlidingMarker.min' %>
    <script type="text/javascript" charset="utf-8" src="https://cdnjs.cloudflare.com/ajax/libs/semantic-ui/2.2.6/semantic.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.18.1/moment.min.js"></script>
    <script type="text/javascript" charset="utf-8" src="https://cdnjs.cloudflare.com/ajax/libs/moment-range/3.0.3/moment-range.min.js"></script>
    <script>window['moment-range'].extendMoment(moment);</script>
    <%= javascript 'graphql.min', 'jquery.typewatch' %>
    <%= javascript 'date_helpers', 'search_service', 'api_service', 'map_service', 'slider_service' %>
    <%= javascript 'form', 'app' %>

    <% if production? %>
    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','https://www.google-analytics.com/analytics.js','ga');

      ga('create', 'UA-80493877-1', 'auto');
      ga('send', 'pageview');
    </script>
    <% end %>
  </body>
</html>