@html.route('/jobs', methods=['GET'])
@html.route('/<project_name>/jobs', methods=['GET'])
def renderprojectjob(project_name=None):
    if project_name:
        proj = Project.query.filter_by(name=project_name).first()
        if (not proj):
            return render_template('error.html')
        jobs = proj.jobs
    else:
        jobs = Job.query.all()
    return render_template('jobs.html', jobs=jobs)
@html.route('/jobs', methods=['GET'])
@html.route('/<project_name>/jobs', methods=['GET'])
def renderprojectjob(project_name=None):
    if project_name:
        proj = Project.query.filter_by(name=project_name).first()
        if (not proj):
            return render_template('error.html')
        jobs = proj.jobs
    else:
        jobs = Job.query.all()
    return render_template('jobs.html', jobs=jobs)