/
show_entries.tt
157 lines (148 loc) · 3.82 KB
/
show_entries.tt
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
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
<head>
<meta name="generator" content="HTML Tidy for Linux/x86 (vers 25 March 2009), see www.w3.org">
<title>Koha Dashboard</title>
<script src="jquery.min.js" type="text/javascript">
</script>
<link rel="stylesheet" href="http://koha-community.org/wp-content/themes/cordobo-green-park-2/style.css" type="text/css" media="all">
<style type="text/css">
#example_4 ul li {
padding-bottom:10px;
}
#content {
padding:15px 20px 15px 10px;
}
#jenkins {margin-left: 10px;}
</style>
<script type="text/javascript">
function loadbugs(){
$.get('http://dashboard.koha-community.org/bug_status'
,function(data){
$('#bugs').html(data);
}
)
};
function randombug(){
$.get('http://dashboard.koha-community.org/randombug'
,function(data){
$('#random').html(data);
}
)
setTimeout(randombug, 10000);
};
function needsignoff(){
$.get('http://dashboard.koha-community.org/needsignoff'
,function(data){
$('#needsignoff').html(data);
}
)
setTimeout(needsignoff, 100000);
};
function jenkins(){
$.getJSON('http://jenkins.koha-community.org/api/json?jsonp='+"?&callback=?",
function(data){
$('#jenkins').html('<ul>');
var jobs = data.jobs;
for(var i=0;i<jobs.length;i++){
var name = jobs[i].name;
var colour = jobs[i].color;
var status;
if (colour === 'yellow') {
status = 'Unstable';
}
else {
if (colour === 'blue'){
status = 'Stable';
}
else {
status = 'Broken';
}
}
$('#jenkins').append('<li>'+name+' - '+status+'</li>');
}
$('#jenkins').append('</ul>');
}
)
};
$(document).ready(function(){
loadbugs();
randombug();
needsignoff();
jenkins();
});
</script>
</head>
<body id="home">
<div id="header" class="clearfix">
<div id="branding">
<h1 id="logo"><a href="/" title="Koha Library Software Community">Dashboard</a></h1>
<div class="description"></div>
</div>
<div id="nav" class="clearfix">
<div id="nav-search"></div>
<ul id="menu">
<li class="page-item-home current_page_item"><a href="http://koha-community.org/">Home</a></li>
<li class="page-item-home"><a href="http://wiki.koha-community.org/">Wiki</a></li>
<li class="page-item-home"><a href="http://bugs.koha-community.org/">Bugzilla</a></li>
<li class="page-item-home"><a href="http://jenkins.koha-community.org/">Jenkins</a></li>
</ul>
<div id="submenu-bg"></div>
</div>
</div>
<div id="main" class="clearfix">
<div id="container">
<div id="content">
<h3>Last 5 sign offs</h3>
<span id="example_4">
<ul><% FOREACH entry IN entries %>
<li><% entry.0 %> - <% entry.2 %><br>
<a href="http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=<% entry.1 %>"><% entry.1 %></a> - <% entry.3 %></li>
<% END %>
</ul>
</span>
<h3>Needs Signoff</h3>
<b>5 Oldest bugs </b>
<div id="needsignoff"></div>
<h3>New features recently pushed</h3>
<ul>
<% FOREACH enhancement IN enhancments %>
<li><a href="http://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=<% enhancement.0 %>"><% enhancement.0%></a> - <% enhancement.1 %> - <% enhancement.2 %></li>
<% END %>
</ul>
<h3> New Developers </h3>
<ul>
<% FOREACH dev IN devs %>
<li><% dev.dev %></li>
<% END %>
</ul>
<h3>Jenkins Status</h3>
<div id="jenkins"></div>
</div>
</div>
<div id="sidebar">
<h3>Bug activity </h3>
<% daybefore.day %> -
<% daybefore.count %> changes <br/>
<% yesterday.day %> -
<% yesterday.count %> changes <br />
<% today.day %> -
<% today.count %> changes
<h3>Bug statuses</h3>
<div id="bugs"></div>
<h3>Random bug</h3>
<div id="random"></div>
<h3>Monthly Scoreboard - July</h3>
<ul class="sb-list clearfix"><% FOREACH stat IN stats %>
<li><% stat.0 %>- <% stat.1 %></li>
<% END %></ul>
<h3>Important Dates</h3>
<ul>
<% FOREACH date IN dates %>
<li><% date.date %> - <% date.desc %></li>
<% END %>
</ul>
</div>
</div>
</body>
</html>