aboutsummaryrefslogtreecommitdiffstats
path: root/beweb/beweb/templates/bugs.kid
diff options
context:
space:
mode:
authorAaron Bentley <abentley@panoramicfeedback.com>2005-12-15 16:02:37 -0500
committerAaron Bentley <abentley@panoramicfeedback.com>2005-12-15 16:02:37 -0500
commite0e29d35bb901fd3a6b0be1289c3b5afac130be4 (patch)
treeb762202dcf7865502ee50c4c942882b0321314eb /beweb/beweb/templates/bugs.kid
parent00db1231de6d38609289287be2c00f924a116e15 (diff)
downloadbugseverywhere-e0e29d35bb901fd3a6b0be1289c3b5afac130be4.tar.gz
Switched to restresource for resolving URLs
Diffstat (limited to 'beweb/beweb/templates/bugs.kid')
-rw-r--r--beweb/beweb/templates/bugs.kid9
1 files changed, 5 insertions, 4 deletions
diff --git a/beweb/beweb/templates/bugs.kid b/beweb/beweb/templates/bugs.kid
index c5014c8..b8b2ff7 100644
--- a/beweb/beweb/templates/bugs.kid
+++ b/beweb/beweb/templates/bugs.kid
@@ -1,6 +1,7 @@
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<?python
from libbe.cmdutil import unique_name
+from beweb.controllers import bug_url, project_url, bug_list_url
def row_class(bug):
if bug.status == "closed":
return "closed"
@@ -19,12 +20,12 @@ def row_class(bug):
<h1>Bug list for ${project_name}</h1>
<table>
<tr><td>ID</td><td>Status</td><td>Severity</td><td>Assigned To</td><td>Summary</td></tr>
-<div py:for="bug in bugs" py:strip="True"><tr class="${row_class(bug)}" py:if="bug.status != 'closed' or show_closed"><td><a href="${'/%s/%s/' % (project_id, bug.uuid)}">${unique_name(bug, bugs[:])}</a></td><td>${bug.status}</td><td>${bug.severity}</td><td>${bug.assigned}</td><td>${bug.summary}</td></tr>
+<div py:for="bug in bugs" py:strip="True"><tr class="${row_class(bug)}" py:if="bug.status != 'closed' or show_closed"><td><a href="${bug_url(project_id, bug.uuid)}">${unique_name(bug, bugs[:])}</a></td><td>${bug.status}</td><td>${bug.severity}</td><td>${bug.assigned}</td><td>${bug.summary}</td></tr>
</div>
</table>
-<a href="/">Project list</a>
-<a href="${'/%s/?show_closed=%s' % (project_id, str(not show_closed))}">Toggle closed</a>
-<form action="/$project_id/new/" method="post">
+<a href="${project_url()}">Project list</a>
+<a href="${bug_list_url(project_id, not show_closed)}">Toggle closed</a>
+<form action="${bug_list_url(project_id)}" method="post">
<input type="submit" name="action" value="New bug"/>
</form>
</body>