diff options
-rw-r--r-- | israwhidebroken/static/css/layout.css | 17 | ||||
-rw-r--r-- | israwhidebroken/templates/index.html | 12 |
2 files changed, 23 insertions, 6 deletions
diff --git a/israwhidebroken/static/css/layout.css b/israwhidebroken/static/css/layout.css index d5a37ca..76a86fb 100644 --- a/israwhidebroken/static/css/layout.css +++ b/israwhidebroken/static/css/layout.css @@ -32,6 +32,23 @@ a[name] { padding-left: 20px; } +table#results { + margin: auto; + border-spacing: 0; + border-top: 1px solid #000; +} +table#results td { + border-bottom: 1px solid #000; + background-color: #ddd; + padding: 10px 10px; +} +table#results td.pass { + background-color: #9f9; +} +table#results td.fail { + background-color: #f99; +} + #fedora-header { background-color: #fff; height: 62px; diff --git a/israwhidebroken/templates/index.html b/israwhidebroken/templates/index.html index facc4db..ca9bca8 100644 --- a/israwhidebroken/templates/index.html +++ b/israwhidebroken/templates/index.html @@ -12,12 +12,12 @@ </head> <body> - <ol> - <li py:for="test in tests"> - <a href="${test.uri}">${test.name}</a>: NONE - <a py:if="in_qa" href="#in_qa">change result</a> - </li> - </ol> + <table id="results"> + <tr py:for="test in tests" py:with="result='noresult'"> <!--! pass, fail --> + <td class="${result}"><a href="${test.uri}">${test.name}</a></td> + <td class="${result}">${result}<a py:if="in_qa" href="#in_qa">change result</a></td> + </tr> + </table> <div py:if="admin"><a href="#admin">delete this tree</a></div> </body> </html> |