Commit 62afee96 authored by Chris Cormack's avatar Chris Cormack

Adding time counter

parent d627515c
......@@ -58,8 +58,14 @@ function kudos(){
totals = totals + val.signoffs;
items.push( "<tr><td align=\"left\">" + key + "</td><td align=\"right\">" + val.count + "</td><td align=\"right\">" + val.signoffs + "</td></tr>" );
});
var timep = 6 * totalp;
var times = 4 * totals;
var days = (timep + times) / 8;
$('#kudos').html("<table cellpadding=2><tr><th align=\"left\">Organisation</th><th>Patches</th><th>Sign offs</th></tr>" + items.join( "" )
+ "<tr><td align=\"left\">Totals</td><td align=\"right\">" + totalp + "</td><td align=\"right\">" + totals + "</td></tr></table>");
+ "<tr><td align=\"left\">Totals</td><td align=\"right\">" + totalp + "</td><td align=\"right\">" + totals +
"</td></tr><tr><td>Time in hours</td><td align=\"right\">" + timep + "</td><td align=\"right\">" + times +
"</td></tr></table><br />Person days spent: " + days);
})
};
......@@ -215,7 +221,7 @@ $(document).ready(function(){
<div class="row-fluid">
<div class="span3">
<h3>Signoffs - February</h3><% totals = 0%>
<h3>Signoffs - March</h3><% totals = 0%>
<ul>
<% FOREACH stat IN stats %>
......@@ -228,7 +234,7 @@ $(document).ready(function(){
</div><% totals = 0%>
<div class="span3">
<h3>Passed QA - February</h3>
<h3>Passed QA - March</h3>
<ul>
<% FOREACH stat IN qa %><% totals = totals + stat.1 %>
......@@ -240,7 +246,7 @@ $(document).ready(function(){
</div>
<div class="span3">
<h3>Failed QA - February</h3><% totals = 0%>
<h3>Failed QA - March</h3><% totals = 0%>
<ul>
<% FOREACH stat IN failed %><% totals = totals + stat.1 %>
......@@ -252,7 +258,7 @@ $(document).ready(function(){
</div>
<div class="span3">
<h3>Pushed - February</h3><% totals = 0%>
<h3>Pushed - March</h3><% totals = 0%>
<ul>
<% FOREACH stat IN pushed %><% totals = totals + stat.1 %>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment