2017-10-02 06:39:17 -04:00
|
|
|
$doctype 5
|
2017-10-02 07:33:32 -04:00
|
|
|
<html lang="en">
|
2017-10-02 03:07:09 -04:00
|
|
|
<head>
|
2017-10-02 07:33:32 -04:00
|
|
|
<meta charset="utf-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
2017-10-02 03:07:09 -04:00
|
|
|
|
|
|
|
<title>#{pageTitle pc}
|
|
|
|
<meta name="description" content="">
|
|
|
|
<meta name="author" content="">
|
2017-10-02 08:50:09 -04:00
|
|
|
$maybe route <- mcurrentRoute
|
|
|
|
<link rel="canonical" href=@{route}>
|
2017-10-02 03:07:09 -04:00
|
|
|
|
2017-10-02 07:33:32 -04:00
|
|
|
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/css/bootstrap.min.css" integrity="sha384-/Y6pD6FV/Vv2HJnA6t+vslU6fwYXjCFtcEpHbNJ0lyAFsXTsjBbfaDjzALeQsN6M" crossorigin="anonymous">
|
2017-10-02 21:03:25 -04:00
|
|
|
<script src="https://use.fontawesome.com/4fbab4ae27.js">
|
|
|
|
|
2017-10-02 03:07:09 -04:00
|
|
|
^{pageHead pc}
|
|
|
|
|
|
|
|
<script>
|
|
|
|
/* The `defaultCsrfMiddleware` Middleware added in Foundation.hs adds a CSRF token to the request cookies. */
|
|
|
|
/* AJAX requests should add that token to a header to be validated by the server. */
|
|
|
|
/* See the CSRF documentation in the Yesod.Core.Handler module of the yesod-core package for details. */
|
|
|
|
var csrfHeaderName = "#{TE.decodeUtf8 $ CI.foldedCase defaultCsrfHeaderName}";
|
|
|
|
|
|
|
|
var csrfCookieName = "#{TE.decodeUtf8 defaultCsrfCookieName}";
|
|
|
|
var csrfToken = Cookies.get(csrfCookieName);
|
|
|
|
|
|
|
|
|
|
|
|
if (csrfToken) {
|
|
|
|
\ $.ajaxPrefilter(function( options, originalOptions, jqXHR ) {
|
|
|
|
\ if (!options.crossDomain) {
|
|
|
|
\ jqXHR.setRequestHeader(csrfHeaderName, csrfToken);
|
|
|
|
\ }
|
|
|
|
\ });
|
|
|
|
}
|
|
|
|
|
|
|
|
<body>
|
|
|
|
^{pageBody pc}
|
|
|
|
|
2017-10-02 07:33:32 -04:00
|
|
|
<script src="https://code.jquery.com/jquery-3.2.1.slim.min.js" integrity="sha384-KJ3o2DKtIkvYIK3UENzmM7KCkRr/rE9/Qpg6aAZGJwFDMVNA/GpGFF93hXpG5KkN" crossorigin="anonymous">
|
|
|
|
<script src="https://cdnjs.cloudflare.com/ajax/libs/popper.js/1.11.0/umd/popper.min.js" integrity="sha384-b/U6ypiBEHpOf/4+1nzFpr53nxSS+GLCkfwBdFNTxtclqqenISfwAzpKaMNFNmj4" crossorigin="anonymous">
|
|
|
|
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-beta/js/bootstrap.min.js" integrity="sha384-h0AbiXch4ZDo7tp9hKZ4TsHbi047NrKGLO3SEJAg45jXxnGIfYzk4Si90RDIqNm1" crossorigin="anonymous">
|
2017-10-02 03:07:09 -04:00
|
|
|
$maybe analytics <- appAnalytics $ appSettings master
|
|
|
|
<script>
|
|
|
|
if(!window.location.href.match(/localhost/)){
|
|
|
|
(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', '#{analytics}', 'auto');
|
|
|
|
ga('send', 'pageview');
|
|
|
|
}
|