def task_detail(job_id=None, task_name=None): """ Show a detailed description of a specific task. """ jobs = get_jobs() job = [job for job in jobs if str(job['job_id']) == job_id][0] return render_template( 'task_detail.html', job=job, task_name=task_name, task=[task for task in job['tasks'] if task['name'] == task_name][0])
def task_detail(job_id=None, task_name=None): """ Show a detailed description of a specific task. """ jobs = get_jobs() job = [job for job in jobs if str(job['job_id']) == job_id][0] return render_template('task_detail.html', job=job, task_name=task_name, task=[task for task in job['tasks'] if task['name'] == task_name][0])
def job_detail(job_id=None): """ Show a detailed description of a Job's status. """ jobs = [job for job in get_jobs() if str(job['job_id']) == job_id] if not jobs: abort(404) return render_template('job_detail.html', job=jobs[0])
def jobs(): """ Show information on all known Jobs. """ return render_template('jobs.html', jobs=get_jobs())
def job_detail(job_id=None): """ Show a detailed description of a Job's status. """ jobs = get_jobs() job = [job for job in jobs if str(job['job_id']) == job_id][0] return render_template('job_detail.html', job=job)
def task_detail(job_id=None, task_name=None): """ Show a detailed description of a specific task. """ jobs = get_jobs() job = [job for job in jobs if str(job["job_id"]) == job_id][0] return render_template("task_detail.html", job=job, task_name=task_name)
def job_detail(job_id=None): """ Show a detailed description of a Job's status. """ jobs = get_jobs() job = [job for job in jobs if str(job["job_id"]) == job_id][0] return render_template("job_detail.html", job=job)