-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsnapshots.tmpl
104 lines (89 loc) · 2.92 KB
/
snapshots.tmpl
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
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>OpenClonk Snapshots</title>
<style>
@import url('//www.openclonk.org/homepage/common.css');
.dl {
overflow: hidden;
margin-bottom: 2px;
}
#Intro {
margin: 0;
margin-bottom: 30px;
width: 820px;
}
#OpenClonkSnapshots {
width: 410px;
margin: 0 20px 0 0;
}
#MapeSnapshots {
width: 410px;
margin: 0 0 0 20px;
}
.snapshots td {
border-top: 1px solid #ddd;
padding: 4px 2px;
}
.snapshots {
width: 340px;
}
</style>
</head>
<body>
{{.Header}}
<div>
<div class="portal_box paperbox" id="Intro">
<div class="pagetitle">Development Snapshots</div>
<img src="/homepage/128nightly.png" width="96" height="96" alt="nightly" style="float: left; margin-right: 30px;"/>
<p>
A development snapshot reflects the current state of the game as it is in the repository. A new snapshot is provided for each change made to the repository.<br/>
If this doesn't run out of the box, please <a href="https://bugs.openclonk.org/">report it</a>! For the Windows snapshots, you might need to install <a href="https://aka.ms/vs/15/release/vc_redist.x64.exe">Microsoft's C runtime</a>.
</p>
</div>
<div class="portal_box" id="OpenClonkSnapshots">
<h2>OpenClonk</h2>
<img src="/homepage/icon.png" width="48" height="48" alt="openclonk" style="float: left; margin-right: 20px;"/>
<table class="snapshots">
<tr><th>Branch</th><th>Download</th></tr>
{{range .Branches}}
<tr>
<td>
<strong>{{.Name}}</strong><br>
<a href="https://ci.appveyor.com/project/openclonk/openclonk"><img src="https://ci.appveyor.com/api/projects/status/nan6ydmxq2p455g5/branch/{{.Name}}?svg=true" alt="AppVeyor build status"></a><br>
<a href="https://travis-ci.org/openclonk/openclonk"><img src="https://travis-ci.org/openclonk/openclonk.svg?branch={{.Name}}" alt="Travis build status"></a>
<div class="date">{{.Date}}</div>
<a href="https://github.com/openclonk/openclonk/commit/{{.Revision}}">{{.Revision}}</a>
</td>
<td>
{{ $base := "https://releases.openclonk.org" }}
{{with .WindowsDL}}
<div class="dl">
<img class="dl_icon" src="/homepage/logo_win64.png" alt="">
<a href="{{$base}}{{.}}">Windows 64 bit</a>
</div>
{{end}}
{{with .LinuxDL}}
<div class="dl">
<img class="dl_icon" src="/homepage/logo_linux64.png" alt="">
<a href="{{$base}}{{.}}">Linux 64 bit</a>
</div>
{{end}}
</td>
</tr>
{{end}}
</table>
</div>
</div>
{{.Botter}}
<script src="https://cdnjs.cloudflare.com/ajax/libs/moment.js/2.22.2/moment.min.js" integrity="sha256-CutOzxCRucUsn6C6TcEYsauvvYilEniTXldPa6/wu0k=" crossorigin="anonymous"></script>
<script>
/* make timestamps nicer */
for (var el of document.querySelectorAll(".date")) {
m = moment(el.textContent).local()
el.innerHTML = `${m.format('YYYY-MM-DD HH:mm')}<br>${m.fromNow()}`
}
</script>
</body>
</html>