<% curpage = 'job' %> <%@ include file="template/main.psp"%> <%@ include file="template/head.psp"%>


<% if not form.has_key('uid') or not form['uid'] or not len(str(form['uid'])): i = 1 %>

Please enter a Job ID.

<% else: uid = str(form['uid']) import socket, xmlrpclib try: (e, msg, job) = server.detail_job(uid) except socket.error, e: msg = str(e) e = -1 except xmlrpclib.Fault, fault: msg = "XMLRPC Fault" e = -1 except Exception, e: msg = str(e) e = -1 if e == -1: if len(config_opts['down_message']) > 0: %>

<%=config_opts['down_message']%>

<% else: %>

The server could not process the request.


Error was:  <%=msg%>

<% else: if job.has_key('version') and job.has_key('release'): title = "%s-%s-%s" % (job['package'], job['version'], job['release']) else: title = job['package'] # endif target_distro = job['target_distro'] target_target = job['target_target'] target_repo = job['target_repo'] target_str = "%s-%s-%s" % (target_distro, target_target, target_repo) %>
<% if job['endtime'] != 0: total_time = (int(job['endtime']) - int(job['starttime'])) / 60 %> <% # endif if job.has_key('log_url') and job['log_url'] and len(job['log_url']): log_url = str(job['log_url']) %> <% # endif if job.has_key('result_msg') and job['result_msg'] and len(job['result_msg']): import urllib result_msg = urllib.unquote(str(job['result_msg'])) if result_msg[-1] != '\n': result_msg += '\n' result_msg = "

"+result_msg.replace("\n", "

")+"

" %> <% # endif %>
<%=str(job['uid'])%>: <%=title%>  (<%=job['status']%>)
Target:<%=target_str%>
Submitter:<%=despam_user(job['username'])%>
Source:<%=str(job['source'])%>
Started:<%=str(time.ctime(job['starttime']))%>
Ended:<%=str(time.ctime(job['endtime']))%> (ran for <%=str(total_time)%> minutes)
Logs:<%=log_url%>
Result:<%=result_msg%>

<% for aj in job['archjobs']: i = 1 %> <% # endfor %>
<%=aj['arch']%>: <%=aj['builder_addr']%> Status:  <%=aj['status']%>/<%=aj['builder_status']%> <% # Only show build times for successful jobs if aj['endtime'] != 0 and aj['builder_status'] == 'done': aj_time = (int(aj['endtime']) - int(aj['starttime'])) / 60 %> Build Time:  <%=aj_time%> minutes <% # endif %>


<% # endif # endif %>
<%@ include file="template/foot.psp"%>