08be53181b
* 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
23 lines
805 B
Plaintext
23 lines
805 B
Plaintext
function makeDoubleDelegate(function1, function2) {
|
|
return function() {
|
|
if (function1)
|
|
function1();
|
|
if (function2)
|
|
function2();
|
|
}
|
|
}
|
|
|
|
function chgeLogo() {
|
|
var imgs=document.getElementsByTagName("img");
|
|
var imgTag = document.createElement("img");
|
|
imgTag.setAttribute("src","https://<%= site %>/plugin/simple-theme-plugin/title.png");
|
|
imgTag.setAttribute("style", "vertical-align: middle;padding-left: 0.75em;");
|
|
imgs[0].parentNode.appendChild(imgTag);
|
|
var spanTag = document.createElement("span");
|
|
spanTag.id="heading_text";
|
|
spanTag.innerHTML="Jenkins CI";
|
|
imgs[0].parentNode.appendChild(spanTag);
|
|
}
|
|
|
|
window.onload = makeDoubleDelegate(window.onload, chgeLogo);
|