diff --git a/modules/jenkins_master/files/breadcrumb.png b/modules/jenkins_master/files/breadcrumb.png new file mode 100644 index 0000000000..755bcd6041 Binary files /dev/null and b/modules/jenkins_master/files/breadcrumb.png differ diff --git a/modules/jenkins_master/files/openstack-page-bkg.jpg b/modules/jenkins_master/files/openstack-page-bkg.jpg new file mode 100644 index 0000000000..f788c41c26 Binary files /dev/null and b/modules/jenkins_master/files/openstack-page-bkg.jpg differ diff --git a/modules/jenkins_master/files/openstack.css b/modules/jenkins_master/files/openstack.css new file mode 100644 index 0000000000..9b875dd9f3 --- /dev/null +++ b/modules/jenkins_master/files/openstack.css @@ -0,0 +1,22 @@ +body {color: #535353 !important; background: url("/plugin/simple-theme-plugin/openstack-page-bkg.jpg") no-repeat scroll 0 0 white !important; position: static} +a,a:visited {color: #264D69 !important; text-decoration: none !important;} +a:hover {color: #000 !important; text-decoration: underline !important} +#breadcrumbs LI A {background:url('/plugin/simple-theme-plugin/breadcrumb.png') no-repeat right center !important} + +#header {margin-top: 5px} +#header tr:first-child {height: 60px} +#heading_text {font-size: 26px; padding-left: 10px; color: #CF2F19} +#top-panel a:hover {text-decoration: none !important} +#top-panel {background: none;} +#top-panel img:first-child {display: none;} +.pane tr:nth-child(even) {background: #EEF3F5; color: #353535} +.pane tr:nth-child(odd) {background: #FFF; color: #353535} +.pane td {border: 1px solid #C5E2EA !important} +div.top-sticker-inner {background: none;} +div[id*='title-dashboard_portlet'] {background-color: #EEEEEE !important; border: 1px solid #D8D8D8 !important} +#statistics th {background-color: #EEEEEE !important; border: 1px solid #D8D8D8 !important} +#viewList td.inactive {border-top: 0; border-right: 0; border-left: 0; border-bottom: 1px solid #C5E2EA;} +#viewList td.inactive a {color: #353535 !important} +#viewList td.inactive:hover {background: none !important} +#viewList td.active {border-top: 0; border-right: 0; border-left: 0; border-bottom: 3px solid #CF2F19; padding-bottom: 0px !important; color: #CF2F19; background: none;} +#viewList td.filler {border: 0} diff --git a/modules/jenkins_master/files/openstack.js b/modules/jenkins_master/files/openstack.js new file mode 100644 index 0000000000..3d5888773a --- /dev/null +++ b/modules/jenkins_master/files/openstack.js @@ -0,0 +1,22 @@ +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://jenkins-dev.openstack.org/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); diff --git a/modules/jenkins_master/files/title.png b/modules/jenkins_master/files/title.png new file mode 100644 index 0000000000..146faec5cf Binary files /dev/null and b/modules/jenkins_master/files/title.png differ diff --git a/modules/jenkins_master/manifests/init.pp b/modules/jenkins_master/manifests/init.pp index c32b1ded14..91e2a25867 100644 --- a/modules/jenkins_master/manifests/init.pp +++ b/modules/jenkins_master/manifests/init.pp @@ -134,4 +134,39 @@ class jenkins_master { command => "apache2ctl graceful", } + file { "/var/lib/jenkins/plugins/simple-theme-plugin": + ensure => directory, + owner => 'jenkins', + group => 'nogroup' + } + + file { "/var/lib/jenkins/plugins/simple-theme-plugin/breadcrumb.png": + ensure => present, + source => "puppet:///modules/jenkins_master/breadcrumb.png", + require => File["/var/lib/jenkins/plugins/simple-theme-plugin"] + } + + file { "/var/lib/jenkins/plugins/simple-theme-plugin/openstack.css": + ensure => present, + source => "puppet:///modules/jenkins_master/openstack.css", + require => File["/var/lib/jenkins/plugins/simple-theme-plugin"] + } + + file { "/var/lib/jenkins/plugins/simple-theme-plugin/openstack.js": + ensure => present, + source => "puppet:///modules/jenkins_master/openstack.js", + require => File["/var/lib/jenkins/plugins/simple-theme-plugin"] + } + + file { "/var/lib/jenkins/plugins/simple-theme-plugin/openstack-page-bkg.jpg": + ensure => present, + source => "puppet:///modules/jenkins_master/openstack-page-bkg.jpg", + require => File["/var/lib/jenkins/plugins/simple-theme-plugin"] + } + + file { "/var/lib/jenkins/plugins/simple-theme-plugin/title.png": + ensure => present, + source => "puppet:///modules/jenkins_master/title.png", + require => File["/var/lib/jenkins/plugins/simple-theme-plugin"] + } }