Details
-
Type:
Bug
-
Status: Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: 1.2.0
-
Fix Version/s: 2.0.1
-
Component/s: app.jobbrowser
-
Labels:None
Description
Jobbrowser don't work job kill from detai page.
I worked when I made modifications as follows.
----------
Index: apps/jobbrowser/src/jobbrowser/templates/job.mako
===================================================================
— apps/jobbrowser/src/jobbrowser/templates/job.mako (revision 2258)
+++ apps/jobbrowser/src/jobbrowser/templates/job.mako (working copy)
@@ -17,6 +17,7 @@
<%!
from jobbrowser.views import format_counter_name
from filebrowser.views import location_to_url
+ from django.template.defaultfilters import urlencode
import os
import re
%>
@@ -106,7 +107,7 @@
<dl>
<dt>Kill Job:</dt>
<dd>
- <a href="${url('jobbrowser.views.kill_job', jobid=job.jobId)}" class="frame_tip jt_kill confirm_unencode_and_post" title="Kill this job">kill</a>
+ <a href="${url('jobbrowser.views.kill_job', jobid=job.jobId)}?next=${request.get_full_path()|urlencode}" class="frame_tip jt_kill confirm_unencode_and_post" title="Kill this job">kill</a>
</dd>
</dl>
% endif