-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add four-layer Elapsed Time (ET) report View (#9)
* Elapsed Time Support. * Elapsed Support * Make changes to match Jared and Daniel's * Stable Elapsed Time View. * Add the view to show the sum of elapsed time of all jobs, for each repo. * Enabled the "Job Elapsed Time List" page for each repo * Make JobET view full function. * Job ET per build view is complete * Use public URL instead of debugging one, so it'll be accessible by others. * Use @Url.Action instead of a hardcoded URI (#3) Url.Action(...) is a built-in MVC helper function that can build up a URI regardless of where the website is running. This allows the code to work regardless of where the webpage is deployed ( localhost , jdash-et , jdash , etc). * 1. Add support to make bootstrap table columns sortable. 2. Make "Job ET per build" table sortable, so managers can choose to sort by either "Build Number", and "Elapsed Time". * Add "ElapsedTime" in the main layout as the entrance of Elapsed Time Report. * Add report on average ET per job and average ET per build (of a job). * Changes to address Jared's comments.
- Loading branch information
1 parent
f5af5f2
commit 5f1dcaa
Showing
17 changed files
with
1,045 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,110 @@ | ||
/** | ||
* adding sorting ability to HTML tables with Bootstrap styling | ||
* @summary HTML tables sorting ability | ||
* @version 2.0.0 | ||
* @requires tinysort, moment.js, jQuery | ||
* @license MIT | ||
* @author Matus Brlit (drvic10k) | ||
* @copyright Matus Brlit (drvic10k), bootstrap-sortable contributors | ||
*/ | ||
|
||
table.sortable span.sign { | ||
display: block; | ||
position: absolute; | ||
top: 50%; | ||
right: 5px; | ||
font-size: 12px; | ||
margin-top: -10px; | ||
color: #bfbfc1; | ||
} | ||
|
||
table.sortable th:after { | ||
display: block; | ||
position: absolute; | ||
top: 50%; | ||
right: 5px; | ||
font-size: 12px; | ||
margin-top: -10px; | ||
color: #bfbfc1; | ||
} | ||
|
||
table.sortable th.arrow:after { | ||
content: ''; | ||
} | ||
|
||
table.sortable span.arrow, span.reversed, th.arrow.down:after, th.reversedarrow.down:after, th.arrow.up:after, th.reversedarrow.up:after { | ||
border-style: solid; | ||
border-width: 5px; | ||
font-size: 0; | ||
border-color: #ccc transparent transparent transparent; | ||
line-height: 0; | ||
height: 0; | ||
width: 0; | ||
margin-top: -2px; | ||
} | ||
|
||
table.sortable span.arrow.up, th.arrow.up:after { | ||
border-color: transparent transparent #ccc transparent; | ||
margin-top: -7px; | ||
} | ||
|
||
table.sortable span.reversed, th.reversedarrow.down:after { | ||
border-color: transparent transparent #ccc transparent; | ||
margin-top: -7px; | ||
} | ||
|
||
table.sortable span.reversed.up, th.reversedarrow.up:after { | ||
border-color: #ccc transparent transparent transparent; | ||
margin-top: -2px; | ||
} | ||
|
||
table.sortable span.az:before, th.az.down:after { | ||
content: "a .. z"; | ||
} | ||
|
||
table.sortable span.az.up:before, th.az.up:after { | ||
content: "z .. a"; | ||
} | ||
|
||
table.sortable th.az.nosort:after, th.AZ.nosort:after, th._19.nosort:after, th.month.nosort:after { | ||
content: ".."; | ||
} | ||
|
||
table.sortable span.AZ:before, th.AZ.down:after { | ||
content: "A .. Z"; | ||
} | ||
|
||
table.sortable span.AZ.up:before, th.AZ.up:after { | ||
content: "Z .. A"; | ||
} | ||
|
||
table.sortable span._19:before, th._19.down:after { | ||
content: "1 .. 9"; | ||
} | ||
|
||
table.sortable span._19.up:before, th._19.up:after { | ||
content: "9 .. 1"; | ||
} | ||
|
||
table.sortable span.month:before, th.month.down:after { | ||
content: "jan .. dec"; | ||
} | ||
|
||
table.sortable span.month.up:before, th.month.up:after { | ||
content: "dec .. jan"; | ||
} | ||
|
||
table.sortable>thead th:not([data-defaultsort=disabled]) { | ||
cursor: pointer; | ||
position: relative; | ||
top: 0; | ||
left: 0; | ||
} | ||
|
||
table.sortable>thead th:hover:not([data-defaultsort=disabled]) { | ||
background: #efefef; | ||
} | ||
|
||
table.sortable>thead th div.mozilla { | ||
position: relative; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.