File: base.html

package info (click to toggle)
mirrorbits 0.6.1-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 984 kB
  • sloc: sh: 675; makefile: 93
file content (140 lines) | stat: -rw-r--r-- 5,615 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
{{define "base"}}
<html>
    <head>
        <title>{{template "title" .}}</title>
        <meta http-equiv="content-type" content="text/html;charset=utf-8" />
{{if not .LocalJSPath}}
        <link href='//fonts.googleapis.com/css?family=Lato:400,900' rel='stylesheet' type='text/css'>
        <link href="//maxcdn.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
{{else}}
        <style type="text/css">
            /* Generated with https://google-webfonts-helper.herokuapp.com */
            /* lato-regular - latin */
            @font-face {
              font-family: 'Lato';
              font-style: normal;
              font-weight: 400;
              src: url('{{.LocalJSPath}}/fonts/lato-v14-latin-regular.eot'); /* IE9 Compat Modes */
              src: local('Lato Regular'), local('Lato-Regular'),
                   url('{{.LocalJSPath}}/fonts/lato-v14-latin-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
                   url('{{.LocalJSPath}}/fonts/lato-v14-latin-regular.woff2') format('woff2'), /* Super Modern Browsers */
                   url('{{.LocalJSPath}}/fonts/lato-v14-latin-regular.woff') format('woff'), /* Modern Browsers */
                   url('{{.LocalJSPath}}/fonts/lato-v14-latin-regular.ttf') format('truetype'), /* Safari, Android, iOS */
                   url('{{.LocalJSPath}}/fonts/lato-v14-latin-regular.svg#Lato') format('svg'); /* Legacy iOS */
            }

            /* lato-900 - latin */
            @font-face {
              font-family: 'Lato';
              font-style: normal;
              font-weight: 900;
              src: url('{{.LocalJSPath}}/fonts/lato-v14-latin-900.eot'); /* IE9 Compat Modes */
              src: local('Lato Black'), local('Lato-Black'),
                   url('{{.LocalJSPath}}/fonts/lato-v14-latin-900.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
                   url('{{.LocalJSPath}}/fonts/lato-v14-latin-900.woff2') format('woff2'), /* Super Modern Browsers */
                   url('{{.LocalJSPath}}/fonts/lato-v14-latin-900.woff') format('woff'), /* Modern Browsers */
                   url('{{.LocalJSPath}}/fonts/lato-v14-latin-900.ttf') format('truetype'), /* Safari, Android, iOS */
                   url('{{.LocalJSPath}}/fonts/lato-v14-latin-900.svg#Lato') format('svg'); /* Legacy iOS */
            }
        </style>
        <link href="{{.LocalJSPath}}/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">
{{end}}
        <style type="text/css">
            body {
                margin: 0px;
                background: #fff;
            }
            #wrapper {
                min-height:100%;
                position:relative;
            }
            #header {
                position: fixed;
                height: 50px;
                width: 100%;
                top: 0px;
                background: #2980b9;
                border-bottom:1px solid #dedede;
                margin: 0px auto;
                padding-left: 10px;
                font-family: 'Lato', sans-serif;
                font-weight: 900;
                display: table;
                z-index: 10000;
            }
            #content {
                margin: 60px 1em 1em 1em;
                font-family: 'Lato', sans-serif;
                font-weight: 400;
                padding-bottom: 20px;
            }
            #footer {
                text-align: center;
                vertical-align: bottom;
                height: 20px;
                bottom: 0;
                font-family: Arial, Helvetica, sans-serif;
                font-size: 0.8em;
            }
            .title {
                text-shadow: 1px 2px 2px #2980b9, 0 0 0 #000, 1px 2px 2px #2980b9;
                color: rgba(255, 255, 255, 0.8);
                font-size: 30px;
                display: table-cell;
                vertical-align: middle;
                white-space: nowrap;
                width: 1px;
            }
            a.title {
                color: inherit;
            }
            .headline {
                color: #eee;
                font-size: 20px;
                display: table-cell;
                vertical-align: middle;
                text-align: center;
            }
            .alt tr:nth-child(even) {
                background-color: #F4F4F4;
            }
            .alt tr:nth-child(odd) {
                background-color: #FAFAFA;
            }
            a:link {
                color: #4078C0;
                text-decoration: none;
            }
            a:visited {
                color: #4078C0;
                text-decoration: none;
            }
            a:hover {
                color: #4078C0;
                text-decoration: underline;
            }
            a:active {
                color: #4078C0;
                text-decoration: underline;
            }
        </style>
{{template "head" .}}
    </head>
    <body>
        <div id="wrapper">
            <div id="header">
                <div class="title">
                    <a href="https://github.com/etix/mirrorbits" target="_blank" style="text-decoration: none; color: inherit;">Mirrorbits <i class="fa fa-globe" style="vertical-align: middle;" aria-hidden="true"></i></a>
                </div>
                <div class="headline">{{template "headline" .}}</div>
            </div>
            <div id="content">
{{template "body" .}}
            </div>
            <div id="footer">
                Mirrorbits {{version}} running on {{hostname}}
            </div>
        </div>
    </body>
</html>
{{end}}