Last active
December 10, 2017 15:02
-
-
Save cedricwalter/6021647 to your computer and use it in GitHub Desktop.
Optimized Radiator for Teamcity 8 and up All credits to http://saveandexit.com/diy-build-radiator-for-teamcity/
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!DOCTYPE html> | |
<html> | |
<head> | |
<script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> | |
<script type="text/javascript"> | |
$(document).ready(function() { | |
$("td.buildConfigurationName IMG[src *= 'success.png']") | |
.parents("table") | |
.addClass("buildSuccess"); | |
$("td.buildConfigurationName IMG[src *= 'error.png']") | |
.parents("table") | |
.addClass("buildFailure"); | |
$("td.buildConfigurationName IMG[src *= 'buildGray.png']") | |
.parents("table") | |
.addClass("buildUnknown"); | |
$("DIV.teamCityDateTime").each( | |
function(index) { | |
var spanStr = $(this).find("SPAN.date").attr("title"); | |
$(this).replaceWith("<span class='buildDate'>Last built: " + spanStr + "</span>"); | |
} | |
); | |
}); | |
</script> | |
<!-- <link rel="stylesheet" type="text/css" href="bootstrap.min.css"> | |
<link rel="stylesheet" type="text/css" href="general.css"> --> | |
<style type="text/css"> | |
body { | |
background-color: #000; | |
font-family: Tahoma; | |
color: #FFF; | |
} | |
a { | |
text-decoration: none; | |
color: #FFF; | |
} | |
hr { | |
color: #FFF; | |
width: 100%;; | |
} | |
table.tcTable { | |
-moz-border-radius: 20px; | |
-webkit-border-radius: 20px; | |
-khtml-border-radius: 20px; | |
border-radius: 20px; | |
border: 4px solid #1c4c16; | |
padding: 8px; | |
margin: 15px; | |
float: left; | |
width: 31%; | |
} | |
#content { | |
width: 90%; | |
margin-left: auto; | |
margin-right: auto; | |
} | |
div.projectName a.buildTypeName { | |
text-shadow: 1px 1px 2px #000; | |
font-weight: bold; | |
font-size: 1.5em; | |
text-transform: uppercase; | |
} | |
td.buildConfigurationName a.buildTypeName, | |
.buildDate { | |
font-weight: normal; | |
font-size: 0.9em; | |
color: #bbb; | |
} | |
td.buildConfigurationName img, | |
td.buildResults, | |
div.teamCityBuildNumber { | |
display:none; | |
} | |
.buildSuccess {background: #407A39;} | |
.buildFailure {background: #AF0E01;} | |
.buildUnknown {background: #747474;} | |
</style> | |
<title></title> | |
</head> | |
<body> | |
<script type="text/javascript" src="http://xxxxx:8111/externalStatus.html?js=1"></script> | |
</body> | |
</html> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The build status detection doesn't work with TeamCity 10.0.4, and text shadow is so 2015. Here's an updated version: