better header/footer template, add syntax highlighting

This commit is contained in:
Trevor Bentley
2023-01-11 02:39:24 +01:00
parent 4e436a268d
commit d5428f97b7
15 changed files with 438 additions and 51 deletions
+18 -1
View File
@@ -1,3 +1,20 @@
{% extends "base.html" %}
{% block html_head_extra %}
<link rel="stylesheet" type="text/css" href="syntax.css" />
{% endblock html_head_extra %}
{% block content %}
{{file.path}} ({{file.name}}) [{{file.id}}]<br/>
-------
-------<br/>
{% if file.contents_safe -%}
{% if file.contents_preformatted -%}
<pre>{{file.contents | safe }}</pre>
{%- else -%}
{{file.contents | safe }}
{%- endif -%}
{%- else -%}
<pre style="margin: 0">{{file.contents}}</pre>
{%- endif -%}
{% endblock content %}