From 86e9abeb159360bcd0ab76b1990ab9a7694e307b Mon Sep 17 00:00:00 2001 From: Eelco Dolstra Date: Mon, 14 Oct 2013 17:43:31 +0200 Subject: [PATCH] Use c.req.captures --- src/root/jobset.tt | 6 +++--- src/root/project.tt | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/root/jobset.tt b/src/root/jobset.tt index 5b5652fd..1d29ba4b 100644 --- a/src/root/jobset.tt +++ b/src/root/jobset.tt @@ -49,9 +49,9 @@ @@ -181,7 +181,7 @@ function(c) { if (!c) return; redirectJSON({ - url: "[% c.uri_for(c.controller('Jobset').action_for('jobset'), [project.name, jobset.name]) %]", + url: "[% c.uri_for(c.controller('Jobset').action_for('jobset'), c.req.captures) %]", type: 'DELETE' }); }); diff --git a/src/root/project.tt b/src/root/project.tt index 2398f53d..d88474dd 100644 --- a/src/root/project.tt +++ b/src/root/project.tt @@ -9,10 +9,10 @@ [% END %]