-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathdownloads.html
259 lines (199 loc) · 11.6 KB
/
downloads.html
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
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
---
layout: default
---
<div class="service">
{% include wrap.html %}
<div class="container">
<div class="row">
<div class="container">
<section>
{{ content }}
<div class="col-md-6">
<h1 class="apel-version">APEL</h1>
<h3>SL7</h3>
<a id="sl7-client-download" class="btn btn-theme" href="https://github.com/apel/apel/releases/latest">Client</a>
<a id="sl7-server-download" class="btn btn-theme" href="https://github.com/apel/apel/releases/latest">Server</a>
<a id="sl7-lib-download" class="btn btn-theme" href="https://github.com/apel/apel/releases/latest">Lib</a>
<a id="sl7-parsers-download" class="btn btn-theme" href="https://github.com/apel/apel/releases/latest">Parsers</a>
<!-- AEPL - EL8 - Python3.6 -->
<h3>EL8</h3>
<a id="el8-client-download" class="btn btn-theme" href="https://github.com/apel/apel/releases/latest">Client</a>
<a id="el8-server-download" class="btn btn-theme" href="https://github.com/apel/apel/releases/latest">Server</a>
<a id="el8-lib-download" class="btn btn-theme" href="https://github.com/apel/apel/releases/latest">Lib</a>
<a id="el8-parsers-download" class="btn btn-theme" href="https://github.com/apel/apel/releases/latest">Parsers</a>
<!-- AEPL - EL9 - Python3.9 -->
<h3>EL9</h3>
<a id="el9-client-download" class="btn btn-theme" href="https://github.com/apel/apel/releases/latest">Client</a>
<a id="el9-server-download" class="btn btn-theme" href="https://github.com/apel/apel/releases/latest">Server</a>
<a id="el9-lib-download" class="btn btn-theme" href="https://github.com/apel/apel/releases/latest">Lib</a>
<a id="el9-parsers-download" class="btn btn-theme" href="https://github.com/apel/apel/releases/latest">Parsers</a>
</div>
<div class="col-md-6 col-md-push-1">
<h1 class="apelssm-version">APEL SSM</h1>
<h3>SL7</h3>
<a id="ssm-sl7-client-download" class="btn btn-theme" href="https://github.com/apel/ssm/releases/latest">Client</a>
<!-- SSM - EL8 - Python3.6 -->
<h3>EL8</h3>
<a id="ssm-el8-client-download" class="btn btn-theme" href="https://github.com/apel/ssm/releases/latest">Client</a>
<!-- SSM - EL9 - Python3.9 -->
<h3>EL9</h3>
<a id="ssm-el9-client-download" class="btn btn-theme" href="https://github.com/apel/ssm/releases/latest">Client</a>
</div>
</section>
<!-- Get Latest Release -->
<script type="text/javascript">
$(document).ready(function () {
GetApelLatestReleaseInfo();
GetApelSSMLatestReleaseInfo();
});
function GetApelLatestReleaseInfo() {
$.getJSON("https://api.github.com/repos/apel/apel/releases")
// Successful JSON request
.success(function (json) {
var found = false;
var objCount = 0;
while (found == false) {
//Find Latest Release
if (json[objCount].prerelease != true) {
var rpms = [];
for (var x = 0; x < 15; x++) {
var data = json[objCount].assets[x].name;
rpms.push(json[objCount].assets[x]);
}
// SL7 Elements
document.getElementById("sl7-client-download").href = rpms[0].browser_download_url;
document.getElementById("sl7-lib-download").href = rpms[3].browser_download_url;
document.getElementById("sl7-parsers-download").href = rpms[6].browser_download_url;
document.getElementById("sl7-server-download").href = rpms[9].browser_download_url;
// EL8 Elements
document.getElementById("el8-client-download").href = rpms[1].browser_download_url;
document.getElementById("el8-lib-download").href = rpms[4].browser_download_url;
document.getElementById("el8-parsers-download").href = rpms[7].browser_download_url;
document.getElementById("el8-server-download").href = rpms[10].browser_download_url;
// EL9 Elements
document.getElementById("el9-client-download").href = rpms[2].browser_download_url;
document.getElementById("el9-lib-download").href = rpms[5].browser_download_url;
document.getElementById("el9-parsers-download").href = rpms[8].browser_download_url;
document.getElementById("el9-server-download").href = rpms[11].browser_download_url;
//Set HREFs to relevant urls
$(".apel-version").text("APEL version " + json[objCount].tag_name);
// exit loop
found = true;
}
objCount++;
}
// Output success
console.log("Request Success");
/*/////////////////////////
// Debug: Use to see all 'latest' releases
///////////////////////////
var objCount = 0;
for (x in json) {
objCount++;
}
var latest = [];
var latCount = 0;
for (var x = 0; x < objCount; x++) {
if (json[x].prerelease != true) {
latest[latCount] = json[x];
latCount++;
}
}
for (var x = 0; x < latCount; x++) {
console.log(json[objCount].tag_name);
console.log(json[objCount].created_at);
console.log(json[objCount].assets);
var rpms = [];
for (var x = 0; x < 10; x++) {
var data = json[objCount].assets[x].name;
if (data.indexOf(type) >= 0) {
rpms.push(json[objCount].assets[x]);
}
}
for (var x = 0; x < 5; x++) {
console.log(rpms[x].name);
}
*/
//////////////////////////////////////
})// Inform of JSON Error
.fail(function (jqxhr, textStatus, error) {
var err = textStatus + ", " + error;
console.log("Request Failed: " + err);
});
}
function GetApelSSMLatestReleaseInfo() {
$.getJSON("https://api.github.com/repos/apel/ssm/releases")
// Successful JSON request
.success(function (json) {
var found = false;
var objCount = 0;
while (found == false) {
//Find Latest Release
if (json[objCount].prerelease != true) {
var rpms = [];
for (var x = 0; x < 4; x++) {
var data = json[objCount].assets[x].name;
rpms.push(json[objCount].assets[x]);
}
// SL7 Elements
document.getElementById("ssm-sl7-client-download").href = rpms[0].browser_download_url;
// EL8 Elements
document.getElementById("ssm-el8-client-download").href = rpms[1].browser_download_url;
// EL9 Elements
document.getElementById("ssm-el9-client-download").href = rpms[2].browser_download_url;
//Set HREFs to relevant urls
$(".apelssm-version").text("SSM version " + json[objCount].tag_name);
// exit loop
found = true;
}
objCount++;
}
// Output success
console.log("Request Success");
/*/////////////////////////
// Debug: Use to see all 'latest' releases
///////////////////////////
var objCount = 0;
for (x in json) {
objCount++;
}
var latest = [];
var latCount = 0;
for (var x = 0; x < objCount; x++) {
if (json[x].prerelease != true) {
latest[latCount] = json[x];
latCount++;
}
}
for (var x = 0; x < latCount; x++) {
console.log(json[objCount].tag_name);
console.log(json[objCount].created_at);
console.log(json[objCount].assets);
var rpms = [];
for (var x = 0; x < 10; x++) {
var data = json[objCount].assets[x].name;
if (data.indexOf(type) >= 0) {
rpms.push(json[objCount].assets[x]);
}
}
for (var x = 0; x < 5; x++) {
console.log(rpms[x].name);
}
*/
//////////////////////////////////////
})// Inform of JSON Error
.fail(function (jqxhr, textStatus, error) {
var err = textStatus + ", " + error;
console.log("Request Failed: " + err);
});
}
</script>
</div>
</div>
</div>
<div class="container mtb">
<div class="row centered">
<a class="btn-block btn-theme btn-lg " href="/">Go Back</a>
</div>
</div>
</div>