system-config/modules/gerrit/files/GerritSiteHeader.html
Andrew Hutchings 08be53181b Add Openstack look to gerrit
* Adds stylesheet, header and images to make gerrit look more like an Openstack thing
* Adds Javascript hack that the CSS detects so we don't ruin the style of the patch pages
* Adds both openstack and stackforge logo
* Also adds stackforge logo to stackforge Jenkins

Change-Id: Ic541443fb706ab119a9d47f474bcad2bf8e9907e
2012-03-21 15:35:47 +00:00

27 lines
842 B
HTML

<div>
<h1 style="color: #CF2F19"><img src="static/title.png" style="vertical-align:middle;" /> Code Review</h1>
<script type="text/javascript">
function getHash() {
var hash = window.location.hash;
return hash.substring(1); // remove #
}
window.onload = function() {
var hash_arr= getHash().split(",");
if (hash_arr[0] == 'patch') {
var elem = document.getElementById("gerrit_body");
elem.className = elem.className + ' patch';
}
};
window.onhashchange = function() {
var hash_arr= getHash().split(",");
var elem = document.getElementById("gerrit_body");
if (hash_arr[0] == 'patch') {
elem.className = elem.className + ' patch';
} else {
elem.className = elem.className.replace(' patch', '');
}
};
</script>
</div>