Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #2244 from kzantow/JENKINS-33535-show-jenkins-vers…
…ion-on-installer

[JENKINS-33535] show Jenkins version on setup wizard
  • Loading branch information
daniel-beck committed Apr 8, 2016
2 parents 49350da + f6822a2 commit 49b407c
Show file tree
Hide file tree
Showing 5 changed files with 18 additions and 2 deletions.
Expand Up @@ -5,6 +5,7 @@ installWizard_welcomePanel_recommendedActionTitle=Install suggested plugins
installWizard_welcomePanel_recommendedActionDetails=Install plugins the Jenkins community finds most useful.
installWizard_welcomePanel_customizeActionTitle=Select plugins to install
installWizard_welcomePanel_customizeActionDetails=Select and install plugins most suitable for your needs.
installWizard_jenkinsVersionTitle=Jenkins
installWizard_offline_title=Offline
installWizard_offline_message=This Jenkins instance appears to be offline. \
<p style="font-size:18px; margin-top: 6%"> \
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/lib/layout/html.jelly
Expand Up @@ -166,7 +166,7 @@ ${h.initPageVariables(context)}
</j:if>

</head>
<body id="jenkins" class="yui-skin-sam jenkins-${h.version}" data-version="jenkins-${h.version}" data-model-type="${it.class.name}">
<body id="jenkins" class="yui-skin-sam jenkins-${h.version}" data-version="${h.version}" data-model-type="${it.class.name}">
<div id="main-panel" style="margin-left: 0;">
<j:set var="mode" value="main-panel" />
<d:invokeBody />
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/resources/lib/layout/layout.jelly
Expand Up @@ -165,7 +165,7 @@ ${h.initPageVariables(context)}
<script src="${resURL}/jsbundles/page-init.js" type="text/javascript"/>

</head>
<body id="jenkins" class="yui-skin-sam jenkins-${h.version} ${attrs.cssclass}" data-version="jenkins-${h.version}" data-model-type="${it.class.name}">
<body id="jenkins" class="yui-skin-sam jenkins-${h.version} ${attrs.cssclass}" data-version="${h.version}" data-model-type="${it.class.name}">
<!-- for accessibility, skip the entire navigation bar and etc and go straight to the head of the content -->
<a href="#skip2content" class="skiplink">Skip to content</a>

Expand Down
9 changes: 9 additions & 0 deletions war/src/main/js/pluginSetupWizardGui.js
Expand Up @@ -212,6 +212,15 @@ var createPluginSetupWizard = function(appendTarget) {
'<button type="button" class="close" aria-label="Close"><span aria-hidden="true">&times;</span></button>');
}

// add Jenkins version
if(translations.installWizard_jenkinsVersionTitle) { // wait until translations available
var $modalFooter = $container.find('.modal-footer');
if($modalFooter.length == 0) {
$modalFooter = $('<div class="modal-footer"></div>').appendTo($container);
}
$modalFooter.prepend('<div class="jenkins-version">'+translations.installWizard_jenkinsVersionTitle+' '+$('body').attr('data-version')+'</div>');
}

if(oncomplete) {
oncomplete();
}
Expand Down
6 changes: 6 additions & 0 deletions war/src/main/less/pluginSetupWizard.less
Expand Up @@ -75,6 +75,12 @@
box-sizing: border-box;
padding: 4.2em 0 4.8em 0;
}

.jenkins-version {
float: left;
margin: .7em .5em;
opacity: 0.7; // matches the info text
}

.container.error-container {
padding: 4em 3em;
Expand Down

0 comments on commit 49b407c

Please sign in to comment.