diff --git a/run.py b/run.py index bc02c62..435ff90 100644 --- a/run.py +++ b/run.py @@ -389,13 +389,13 @@ async def job(request, job_id): if job.count == 0: raise NotFound() - return {"job": job[0]} + return {"job": job[0], 'relative_path_to_root': '../../'} @app.route('/') @jinja.template('index.html') async def index(request): - return {} + return {'relative_path_to_root': ''} def main(path_to_analyseCI, ssl=False, keyfile_path="/etc/yunohost/certs/ci-apps.yunohost.org/key.pem", certfile_path="/etc/yunohost/certs/ci-apps.yunohost.org/crt.pem"): diff --git a/templates/base.html b/templates/base.html index 9fedd86..f9b359f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -7,8 +7,8 @@ - - + + <% block content %><% endblock %>