movign imgs
ben/archives/pipeline/head This commit looks good Details

main
Benedikt Kristinsson 12 months ago
parent 6a5db19d49
commit 6ba4f9cc04

@ -104,6 +104,7 @@ class AsyncServer:
return json_response(error, status=error["status"])
else:
error["base_url"] = "https://www.sudo.is/"
error["static_url"] = "https://static.sudo.is/"
return render_template(
"error.html.j2",
request=request,
@ -186,6 +187,7 @@ class AsyncServer:
return {
"version": _version,
"domain": domain,
"static_url": "https://static.sudo.is/",
"base_url": "https://www.sudo.is/", # for jinja base.html.j2
"username": request["auth"]["user"],
"ps1_path": ps1_path,

@ -62,9 +62,9 @@
<tr>
<td>
{% if item.is_dir -%}
<img src="{{ base_url }}img/22px-folder.svg" class="listicon">
<img src="{{ static_url }}img/22px-folder.svg" class="listicon">
{% else %}
<img src="{{ base_url }}img/text-x-generic.svg" class="listicon">
<img src="{{ static_url }}img/text-x-generic.svg" class="listicon">
{% endif %}
</td>
<td>

Loading…
Cancel
Save