Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Refactoring of the extraction of build data from the info page in Hud…
…son. The data is stored in `Build` dicts and reused in the summary page. Somewhat primitive still but works.
- Loading branch information
Showing
3 changed files
with
152 additions
and
86 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,23 @@ | ||
dt.build-successful a { background-image: url(success.gif) !important } | ||
dt.build-successful-alt a { background-image: url(success-alt.gif) !important } | ||
dt.build-failed a { background-image: url(failed.gif) !important } | ||
dt.build-aborted a { background-image: url(aborted.gif) !important } | ||
dt.build-unstable a { background-image: url(unstable.gif) !important } | ||
dt.build-inprogress a { background-image: url(inprogress.gif) !important } | ||
.build-successful a { background-image: url(success.gif) !important } | ||
.build-successful-alt a { background-image: url(success-alt.gif) !important } | ||
.build-failed a { background-image: url(failed.gif) !important } | ||
.build-aborted a { background-image: url(aborted.gif) !important } | ||
.build-unstable a { background-image: url(unstable.gif) !important } | ||
.build-inprogress a { background-image: url(inprogress.gif) !important } | ||
|
||
ul.builds { | ||
list-style: none; | ||
} | ||
ul.builds li { | ||
display: inline; | ||
} | ||
ul.builds li { | ||
line-height: 20px; | ||
margin-right: 2px; | ||
/* border: 1px solid blue; */ | ||
} | ||
ul.builds li a { | ||
display: inline; | ||
background-repeat: no-repeat; | ||
padding: 0 14px 0 0; | ||
} |
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 |
---|---|---|
@@ -1 +1,30 @@ | ||
<html><body>Nothing to see yet ;-)</body></html> | ||
<!DOCTYPE html | ||
PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" | ||
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> | ||
<html xmlns="http://www.w3.org/1999/xhtml" | ||
xmlns:py="http://genshi.edgewall.org/" | ||
xmlns:xi="http://www.w3.org/2001/XInclude" | ||
xmlns:i18n="http://genshi.edgewall.org/i18n"> | ||
<xi:include href="layout.html" /> | ||
<head> | ||
<title>Hudson Build Summary</title> | ||
</head> | ||
<body> | ||
<div id="content" class="timeline"> | ||
<h1>Hudson Build Summary</h1> | ||
<py:for each="project, builds in groupby(builds, key=lambda b: b.module)"> | ||
<h2>Recent builds for: ${project}</h2> | ||
<ul class="builds"> | ||
<py:for each="b in builds"> | ||
<li class="${b.kind}"> | ||
<a href="${b.url}" title="${format_datetime(b.started)}"></a> | ||
</li> | ||
</py:for> | ||
</ul> | ||
</py:for> | ||
</div> | ||
<div id="help" i18n:msg=""> | ||
<strong>Note:</strong> Most recent builds are on the left side. | ||
</div> | ||
</body> | ||
</html> |