summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWill Woods <wwoods@redhat.com>2009-09-11 17:32:05 -0400
committerWill Woods <wwoods@redhat.com>2009-09-11 17:32:05 -0400
commit5c8522280a9d2be0b0ec0e41bb81428da505892d (patch)
tree4eafc79c2f4c2d59c99fe61f6468f23a29bd5675
parent21375a464661294dffcbb37096609e473951b7a1 (diff)
downloadisrawhidebroken-5c8522280a9d2be0b0ec0e41bb81428da505892d.tar.gz
israwhidebroken-5c8522280a9d2be0b0ec0e41bb81428da505892d.tar.xz
israwhidebroken-5c8522280a9d2be0b0ec0e41bb81428da505892d.zip
Show test names, with links to URIs, and edit/delete links
-rw-r--r--israwhidebroken/controllers.py6
-rw-r--r--israwhidebroken/templates/index.html10
2 files changed, 11 insertions, 5 deletions
diff --git a/israwhidebroken/controllers.py b/israwhidebroken/controllers.py
index 01b0497..8873f77 100644
--- a/israwhidebroken/controllers.py
+++ b/israwhidebroken/controllers.py
@@ -1,6 +1,6 @@
import turbogears as tg
from turbogears import controllers, expose, flash
-# from israwhidebroken import model
+from israwhidebroken import model
from turbogears import identity, redirect
from cherrypy import request, response
# from israwhidebroken import json
@@ -12,7 +12,9 @@ class Root(controllers.RootController):
def index(self):
# TODO: find most recent tree(s)
return dict(in_qa='qa' in identity.current.groups,
- admin='qa-admin' in identity.current.groups)
+ admin='qa-admin' in identity.current.groups,
+ tests=model.Test.select(),
+ treeid=0) # fake treeid
@expose(template="israwhidebroken.templates.login")
def login(self, forward_url=None, *args, **kw):
diff --git a/israwhidebroken/templates/index.html b/israwhidebroken/templates/index.html
index df78833..facc4db 100644
--- a/israwhidebroken/templates/index.html
+++ b/israwhidebroken/templates/index.html
@@ -12,8 +12,12 @@
</head>
<body>
- <div>RESULTS GO HERE</div>
- <div py:if="in_qa"><a href="#edit">edit link</a></div>
- <div py:if="admin"><a href="#admin">admin link</a></div>
+ <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>
+ <div py:if="admin"><a href="#admin">delete this tree</a></div>
</body>
</html>