Mercurial > bitten > bitten-test
changeset 251:d66359b298d4
Better layout of error message on build results page.
author | cmlenz |
---|---|
date | Tue, 04 Oct 2005 23:10:24 +0000 |
parents | 0271a2b1fc23 |
children | 36a687797120 |
files | bitten/trac_ext/htdocs/bitten.css bitten/trac_ext/templates/bitten_build.cs |
diffstat | 2 files changed, 15 insertions(+), 6 deletions(-) [+] |
line wrap: on
line diff
--- a/bitten/trac_ext/htdocs/bitten.css +++ b/bitten/trac_ext/htdocs/bitten.css @@ -91,8 +91,18 @@ #content.build #overview .slave { margin-top: 1em; } #content.build #overview .time { margin-top: 1em; } -#content.build .tabs { list-style: none; float: left; width: 100%; margin: 0; - padding: 0; } +#content.build div.errors { background: #d99; border: 1px solid #966; + color: #933; float: right; margin: 1em; +} +#content.build div.errors h3 { background: #966; color: #fff; margin: 0; + padding: 0 .3em; +} +#content.build div.errors ul { list-style-image: url(failure.png); margin: 0; + padding: .5em 1.75em; +} + +#content.build .tabs { clear: right; list-style: none; float: left; width: 100%; + margin: 0; padding: 0; } #content.build .tabs li { cursor: pointer; float: left; } #content.build .tabs li a { background: #b9b9b9; color: #666; display: block; margin: 2px 2px 0; padding: 3px 2em 0; }
--- a/bitten/trac_ext/templates/bitten_build.cs +++ b/bitten/trac_ext/templates/bitten_build.cs @@ -50,15 +50,14 @@ /if ?><?cs each:step = build.steps ?> <h2 class="step" id="step_<?cs var:step.name ?>"><?cs var:step.name ?> (<?cs - var:step.duration ?>)</h2> - <p><?cs var:step.description ?></p><?cs + var:step.duration ?>)</h2><?cs if:len(step.errors) ?> <div class="errors"> - <h3>Errors:</h3><ul class="errors"><?cs + <h3>Errors</h3><ul><?cs each:error = step.errors ?><li><?cs var:error ?></li><?cs /each ?></ul> </div><?cs - /if ?> + /if ?><p><?cs var:step.description ?></p> <div id="<?cs var:step.name ?>_tabs"> <div class="tab"><h3>Log</h3><div class="log"><?cs each:item = step.log ?><code class="<?cs var:item.level ?>"><?cs