diff options
-rw-r--r-- | israwhidebroken/controllers.py | 6 | ||||
-rw-r--r-- | israwhidebroken/templates/index.html | 10 |
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> |