Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also compare across forks.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also compare across forks.
base fork: JoelJ/PipelineDashboard
base: dfa05d3e77
...
head fork: JoelJ/PipelineDashboard
compare: d665aabdaa
  • 5 commits
  • 6 files changed
  • 0 commit comments
  • 1 contributor
View
101 src/main/resources/com/attask/jenkins/dashboard/PipelineDashboard/main.jelly
@@ -10,101 +10,10 @@
}
</j:if>
-
- #commitTooltip {
- border: 1px solid #AAA;
- border-radius: 3px;
- background-color: #EFEFEF;
- max-width: 400px;
- padding: 5px;
- position: absolute;
- zIndex: 200;
- }
-
- #commitTooltip .header {
- font-size: 15px;
- text-align: center;
- }
-
- a.sortheader {
- text-decoration: none;
- color: black;
- }
-
- .lastSuccessfulRow {
- background-color: #CFC;
- border-bottom: 3px double #BBB !important;
- }
-
- .lastSuccessfulRow:hover {
- background-color: #BEB !important;
- border-bottom: 3px double #BBB !important;
- }
-
- img#multipleCommitters {
- float: left;
- padding-top: 6px;
- width: 16px;
- height: 16px;
- }
-
- .build .status {
- float: left;
- margin-top: 3px;
- margin-right: 5px;
- }
-
- .build>span {
- float: left;
- }
-
- .build>span>a {
- display: block;
- }
-
- .hide-default-hidden td.hidden, .hide-default-hidden th.hidden {
- display: none;
- }
-
- .lastSuccessHeader {
- font-weight: bold;
- text-decoration: underline;
- font-size: smaller;
- }
-
-
-<!--
- .build a {
- text-decoration: none;
- }
-
- .build a span {
- position: relative;
- left: -16px;
- color: black;
- font-weight: bolder;
- text-decoration: none;
- top: 1px;
- }-->
</style>
- <script>
- Event.observe(window, 'load', function() {
- $('showHidden').observe('click', function(event) {
- event.preventDefault();
-
- if($('PipelineDashboard').toggleClassName('hide-default-hidden').hasClassName('hide-default-hidden')) {
- event.target.innerHTML = "Show Hidden";
- } else {
- event.target.innerHTML = "Hide Hidden";
- }
-
-
- return false;
- });
- });
- </script>
-
+ <link rel="stylesheet" type="text/css" href="${rootURL}/plugin/PipelineDashboard/main.css"/>
+ <script type="text/javascript" src="${rootURL}/plugin/PipelineDashboard/main.js"></script>
<j:if test="${it.clickForCommitDetails}">
<script type="text/javascript" src="${rootURL}/plugin/PipelineDashboard/magicPopup.js"></script>
</j:if>
@@ -118,7 +27,10 @@
<st:include page="viewTabs.jelly" it="${it.owner.viewsTabBar}"/>
<div id="PipelineDashboard" class="hide-default-hidden">
- <a id="showHidden" href="#">Show Hidden</a>
+ <div class="controls">
+ <a id="showHidden" href="#showAllColumns"><img src="${rootURL}/plugin/PipelineDashboard/showAll.png"/></a>
+ <a id="fullScreen" href="#fullScreen"><img src="${rootURL}/plugin/PipelineDashboard/fullScreen.png"/></a>
+ </div>
<div class="embedded top">${it.topEmbedded}</div>
<table id="projectstatus" class="pane bigtable">
<tr style="border-top: 0px;">
@@ -136,6 +48,7 @@
<j:if test="${it.showLastSuccessfulBuild and table.lastSuccessfulRow != null}">
<tr id="row-${table.lastSuccessfulRow.getName()}" class="lastSuccessfulRow ${table.lastSuccessfulRow.isHighlighted() ? 'highlighted' : ''}">
<td class="custom">
+ <div class="lastSuccessHeader">Last Successful Row</div>
<j:if test="${table.lastSuccessfulRow.getHasMultiple()}">
<img id="multipleCommitters" src="${rootURL}/plugin/PipelineDashboard/multiple_committers.png" />
</j:if>
View
3  src/main/webapp/autoRefresh.js
@@ -23,6 +23,9 @@ function update() {
if(window.initMagicPopup) {
window.initMagicPopup();
}
+ if(window.initMain) {
+ window.initMain();
+ }
},
onError: function(transport) {
console.log(transport);
View
BIN  src/main/webapp/fullScreen.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
View
78 src/main/webapp/main.css
@@ -0,0 +1,78 @@
+#PipelineDashboard {
+ background-color: white;
+ width: 100%;
+ height: 100%;
+}
+
+#PipelineDashboard .controls {
+ float: right;
+ padding: 3px;
+ /*padding-top: 3px;*/
+ /*padding-right: 3px;*/
+}
+
+#PipelineDashboard .controls img {
+ width: 16px;
+ height: 16px;
+}
+
+#commitTooltip {
+ border: 1px solid #AAA;
+ border-radius: 3px;
+ background-color: #EFEFEF;
+ max-width: 400px;
+ padding: 5px;
+ position: absolute;
+ zIndex: 200;
+}
+
+#commitTooltip .header {
+ font-size: 15px;
+ text-align: center;
+}
+
+a.sortheader {
+ text-decoration: none;
+ color: black;
+}
+
+.lastSuccessfulRow {
+ background-color: #CFC;
+ border-bottom: 3px double #BBB !important;
+}
+
+.lastSuccessfulRow:hover {
+ background-color: #BEB !important;
+ border-bottom: 3px double #BBB !important;
+}
+
+img#multipleCommitters {
+ float: left;
+ padding-top: 6px;
+ width: 16px;
+ height: 16px;
+}
+
+.build .status {
+ float: left;
+ margin-top: 3px;
+ margin-right: 5px;
+}
+
+.build>span {
+ float: left;
+}
+
+.build>span>a {
+ display: block;
+}
+
+.hide-default-hidden td.hidden, .hide-default-hidden th.hidden {
+ display: none;
+}
+
+.lastSuccessHeader {
+ font-weight: bold;
+ text-decoration: underline;
+ font-size: smaller;
+}
View
32 src/main/webapp/main.js
@@ -0,0 +1,32 @@
+Event.observe(window, 'load', initMain);
+
+function initMain() {
+ initHide();
+ initFullscreen();
+}
+
+function initHide() {
+
+ $('showHidden').observe('click', function(event) {
+ event.preventDefault();
+ $('PipelineDashboard').toggleClassName('hide-default-hidden');
+ return false;
+ });
+}
+
+function initFullscreen() {
+ $('fullScreen').observe('click', function(event) {
+ event.preventDefault();
+
+ var div = $('PipelineDashboard');
+ if(div.webkitRequestFullScreen) {
+ div.webkitRequestFullScreen(Element.ALLOW_KEYBOARD_INPUT);
+ }
+ if(div.mozRequestFullScreen) {
+ div.mozRequestFullScreen();
+ }
+
+
+ return false;
+ });
+}
View
BIN  src/main/webapp/showAll.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

No commit comments for this range

Something went wrong with that request. Please try again.