default-layout-wrapper.hamlet 4.88 KB
Newer Older
David L. L. Thomas's avatar
David L. L. Thomas committed
1 2 3 4 5 6
$newline never
\<!doctype html>
\<!--[if lt IE 7]> <html class="no-js ie6 oldie" lang="en"> <![endif]-->
\<!--[if IE 7]>    <html class="no-js ie7 oldie" lang="en"> <![endif]-->
\<!--[if IE 8]>    <html class="no-js ie8 oldie" lang="en"> <![endif]-->
\<!--[if gt IE 8]><!-->
7
<html .no-js lang="en"> <!--<![endif]-->
David L. L. Thomas's avatar
David L. L. Thomas committed
8
    <head>
9
        <link rel="shortcut icon" href=@{FaviconR}>
David L. L. Thomas's avatar
David L. L. Thomas committed
10 11 12 13
        <meta charset="UTF-8">

        <script>
            /*
14 15
            @licstart  The following is the entire license notice for the
            JavaScript code in this page.
David L. L. Thomas's avatar
David L. L. Thomas committed
16

17 18
            Copyrights on the code are held by the respective authors,
            see git commit history where not otherwise specified.
David L. L. Thomas's avatar
David L. L. Thomas committed
19 20

            The JavaScript code in this page is free software: you can
21 22
            redistribute it and/or modify it under the terms of the GNU Affero
            General Public License (AGPL) as published by the Free Software
David L. L. Thomas's avatar
David L. L. Thomas committed
23 24 25
            Foundation, either version 3 of the License, or (at your option)
            any later version.  The code is distributed WITHOUT ANY WARRANTY;
            without even the implied warranty of MERCHANTABILITY or FITNESS
26
            FOR A PARTICULAR PURPOSE.  See the GNU AGPL for more details.
David L. L. Thomas's avatar
David L. L. Thomas committed
27

28
            As additional permission under GNU AGPL version 3 section 7, you
David L. L. Thomas's avatar
David L. L. Thomas committed
29
            may distribute non-source (e.g., minimized or compacted) forms of
30
            that code without the copy of the GNU AGPL normally required by
David L. L. Thomas's avatar
David L. L. Thomas committed
31 32 33 34
            section 4, provided you include this license notice and a URL
            through which recipients can access the Corresponding Source.


35 36
            @licend  The above is the entire license notice for the JavaScript
            code in this page.
David L. L. Thomas's avatar
David L. L. Thomas committed
37 38 39 40 41 42 43 44 45 46 47
            */

        <title>#{pageTitle pc}
        <meta name="description" content="">
        <meta name="author" content="">

        <meta name="viewport" content="width=device-width,initial-scale=1">

        ^{pageHead pc}

        \<!--[if lt IE 9]>
48 49
        \<script src="http://html5shiv.googlecode.com/svn/trunk/html5.js">
        \</script>
David L. L. Thomas's avatar
David L. L. Thomas committed
50 51 52 53
        \<![endif]-->

        <script src=@{StaticR js_modernizr_js}>
        <script>
54 55
          document.documentElement.className
            = document.documentElement.className.replace(/\bno-js\b/,'js');
David L. L. Thomas's avatar
David L. L. Thomas committed
56 57 58 59 60 61 62 63

          function fixup_logo() {
              var head = document.getElementById("head");
              var logo = document.createElement("img");

              logo.id = "logo";

              if(Modernizr.svg) {
Joe Thomas's avatar
Joe Thomas committed
64
                  logo.src = "@{StaticR img_snowdriftcoop_svg}";
David L. L. Thomas's avatar
David L. L. Thomas committed
65
              } else {
Joe Thomas's avatar
Joe Thomas committed
66
                  logo.src = "@{StaticR img_snowdriftcoop_png}";
David L. L. Thomas's avatar
David L. L. Thomas committed
67 68 69 70 71
              }

              head.replaceChild(logo, head.firstChild);
          }
    <body>
Joe Thomas's avatar
Joe Thomas committed
72
        ^{pageBody pc}
73
        <div .container>
David L. L. Thomas's avatar
David L. L. Thomas committed
74 75
            <footer>
                <div .row>
76
                    <div .col-md-4>
77 78 79 80
                        Aside from
                        <a href=@{TrademarksR}> trademarks
                        , writings and images here #
                        are free to use and share under #
81
                        <a rel="license" title="Creative Commons Attribution Share-Alike 4.0 International" href="https://creativecommons.org/licenses/by-sa/4.0">
David L. L. Thomas's avatar
David L. L. Thomas committed
82
                            CC&nbsp;BY-SA
David L. L. Thomas's avatar
David L. L. Thomas committed
83

84
                    <div .col-md-4>
85 86 87
                        This site's #
                        <a href=#{extraSourceRepo $ appExtra $ settings master}>
                            source code
wolftune's avatar
wolftune committed
88
                        \ is free under the terms of the #
89
                        <a rel="license" title="Affero GPL v3 or later" href="https://www.gnu.org/licenses/agpl">
wolftune's avatar
wolftune committed
90
                            GNU&nbsp;AGPLv3+
91
                    <div .col-md-4>
92 93 94
                        All JavaScript on this site is #
                        <a href=@{JsLicenseR} rel="jslicense">
                            freely-licensed
David L. L. Thomas's avatar
David L. L. Thomas committed
95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111

        $maybe analytics <- extraAnalytics $ appExtra $ settings master
            <script>
              if(!window.location.href.match(/localhost/)){
                window._gaq = [['_setAccount','#{analytics}'],['_trackPageview'],['_trackPageLoadTime']];
                (function() {
                \  var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
                \  ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
                \  var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
                })();
              }
        \<!-- Prompt IE 6 users to install Chrome Frame. Remove this if you want to support IE 6.  chromium.org/developers/how-tos/chrome-frame-getting-started -->
        \<!--[if lt IE 7 ]>
            <script src="//ajax.googleapis.com/ajax/libs/chrome-frame/1.0.3/CFInstall.min.js">
            <script>
                window.attachEvent('onload',function(){CFInstall.check({mode:'overlay'})})
        \<![endif]-->