forked from cms-sw/cms-sw.github.io
-
Notifications
You must be signed in to change notification settings - Fork 0
/
relvalLogDetail.html
116 lines (84 loc) · 3.56 KB
/
relvalLogDetail.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
<!doctype html>
<html>
<head>
<meta charset="utf-8" />
<title>Relval Details</title>
<link href="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/css/bootstrap.min.css" rel="stylesheet">
</head>
<body>
<script>var EXIT_CODES_MAP={}</script>
<script type='text/javascript' src="js/jquery-2.1.1.min.js"></script>
<script type='text/javascript' src="https://netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
<script type='text/javascript' src="js/renderRelvalsDetails.js"></script>
<div class="container">
<div class="row">
<div class="col-md-10" id="header"></div>
</div>
<div class="row">
<div class="col-md-10" id="results"></div>
</div>
<script>
$(document).ready(function () {
var hash = document.location.hash.replace( /^#/, '' );
if ( hash == '' ){
console.log( ' no hash' )
var header = getNoHashHeader()
$("#header").append( '<br>' )
$("#header").append( header )
return
}
console.log( 'hash: ')
console.log( hash )
console.log( document.location.toString() )
var parts = hash.split( ';' )
ARCH = parts[ 0 ]
var releaseQueue = parts[ 1 ].substring( 0 , parts[ 1 ].lastIndexOf( "_" ) )
var ibDate = parts[ 1 ].substring( parts[ 1 ].lastIndexOf( "_" ) + 1 , parts[ 1 ].length )
IB = parts[ 1 ]
console.log( 'I am asked for the followng arch' )
console.log( ARCH )
console.log( 'For the follwing IB' )
console.log( IB )
ORIGINAL_ARCH = parts[ 0 ]
$.ajaxSetup({async: false});
$.getJSON("exitcodes.json", function(json){
EXIT_CODES_MAP=json;
});
$.ajaxSetup({async: true});
// I will check which other architectures are available for this IB
readAvailableArchs = function( allAvailableArchs ){
console.log( 'Archs with complete results:' )
var availArchs = allAvailableArchs[ IB ]
var availArchsIncomplete = allAvailableArchs[ IB + '_INCOMPLETE' ]
console.log( availArchs )
console.log( 'Archs with incomplete results' )
console.log( availArchsIncomplete )
if ( availArchs == null && availArchsIncomplete == null ){
var header = getNotFoundIBHeader( IB )
$("#header").append( '<br>' )
$("#header").append( header )
}else{
availArchs = ORIGINAL_ARCH
var archsList = availArchs != null ? availArchs.split( ',' ):[]
var incompleteArchsList = availArchsIncomplete != null ? availArchsIncomplete.split( ',' ):[]
if ( listContainsString( ORIGINAL_ARCH, incompleteArchsList ) ){
var header = getIncompleteArchHeader( ORIGINAL_ARCH )
$("#header").append( header )
}else if ( !listContainsString( ORIGINAL_ARCH, archsList ) ){
var header = getNotFoundArchHeader( ORIGINAL_ARCH )
$("#header").append( header )
}
var header = getHeader( ARCH, IB )
$("#header").append( header )
var navTabs = getNavTabs( archsList, incompleteArchsList, IB )
$("#results").append( navTabs )
var tabPanes = $( '<div>' ).attr( 'class' , 'tab-content' )
$("#results").append( tabPanes )
fillTabPanes( tabPanes, archsList, incompleteArchsList, IB )
}
}
$.getJSON( 'data/RelvalsAvailableResults.json' , readAvailableArchs )
})
</script>
</body>
</html>