Skip to content

Commit

Permalink
Merge branch 'master' into JENKINS-74806
Browse files Browse the repository at this point in the history
  • Loading branch information
shlomomdahan authored Nov 8, 2024
2 parents 36357d1 + f2ceaf6 commit 8262195
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 25 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,5 @@
<j:jelly xmlns:j="jelly:core" xmlns:st="jelly:stapler" xmlns:d="jelly:define" xmlns:l="/lib/layout" xmlns:t="/lib/hudson" xmlns:f="/lib/form" xmlns:i="jelly:fmt">
<st:include page="bpp.jelly" from="${it.getBuildPipelineView()}" />
<link href="${rootURL}/plugin/build-pipeline-plugin/css/main_dashboard.css" type="text/css" rel="stylesheet" />
<script type="text/javascript">
// show/hide build details
jQuery(document).ready(function() {
jQuery(".header").click(function() {
var parent = jQuery(this).parent();
var ba = parent.find(".build-actions");
var bb = parent.find(".build-body");

ba.add(bb).toggle('slow');
});
});
</script>
<st:adjunct includes="au.com.centrumsystems.hudson.plugin.buildpipeline.BuildPipelineView.toggle-build-details" />
</j:jelly>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// show/hide build details
jQuery(document).ready(function() {
jQuery(".header").click(function() {
var parent = jQuery(this).parent();
var ba = parent.find(".build-actions");
var bb = parent.find(".build-body");

ba.add(bb).toggle('slow');
});
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
Handlebars.registerHelper('startScript', function() {
return new Handlebars.SafeString("<script>");
});

Handlebars.registerHelper('endScript', function() {
return new Handlebars.SafeString("</script>");
});
Original file line number Diff line number Diff line change
Expand Up @@ -7,17 +7,5 @@
By default we just include helpers to append script tags to your build card
-->
<![CDATA[
<script type="text/javascript">
Handlebars.registerHelper('startScript', function() {
return new Handlebars.SafeString("<scr" + "ipt>");
});
Handlebars.registerHelper('endScript', function() {
return new Handlebars.SafeString("</scr" + "ipt>");
});
</script>
]]>
<st:adjunct includes="au.com.centrumsystems.hudson.plugin.buildpipeline.extension.BuildCardExtension.build-card-script-helpers"/>
</j:jelly>

0 comments on commit 8262195

Please sign in to comment.