better header/footer template, add syntax highlighting
This commit is contained in:
@@ -1 +1,5 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
The page you are seeking does not exist.
|
||||
{% endblock content %}
|
||||
|
||||
@@ -0,0 +1,17 @@
|
||||
<html>
|
||||
<head>
|
||||
{% block html_head -%}
|
||||
<title>{{site_name}}</title>
|
||||
{% block html_head_extra -%}
|
||||
{% endblock html_head_extra -%}
|
||||
{% endblock html_head -%}
|
||||
</head>
|
||||
|
||||
<body style="font-family: monospace;">
|
||||
{% block header -%}{% include "header.html" -%}{% endblock header -%}
|
||||
|
||||
{% block content %}{% endblock content %}
|
||||
|
||||
{% block footer -%}{% include "footer.html" -%}{% endblock footer -%}
|
||||
</body>
|
||||
</html>
|
||||
@@ -1,3 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
branch: {{branch.ref_name}}<br/>
|
||||
hash: {{branch.full_hash}} ({{branch.short_hash}})<br/>
|
||||
author: {{branch.author.name}}<br/>
|
||||
@@ -5,3 +8,4 @@ committer: {{branch.committer.name}}<br/>
|
||||
date: {{ts_to_date(ts=branch.ts_utc, tz=branch.ts_offset)}}<br/>
|
||||
summary: {{branch.summary}}<br/>
|
||||
<pre>{{branch.message}}</pre>
|
||||
{% endblock content %}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<strong>
|
||||
commit: {{commit.full_hash}}<br/>
|
||||
author: {{commit.author.name}}<br/>
|
||||
@@ -25,3 +28,4 @@
|
||||
</pre>
|
||||
{% endfor -%}
|
||||
{% endfor -%}
|
||||
{% endblock content %}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<table class="files">
|
||||
<tr>
|
||||
<th>File</th>
|
||||
@@ -15,3 +18,4 @@
|
||||
<td class="file-size">{{file.size}}</td>
|
||||
</tr>
|
||||
{% endfor -%}
|
||||
{% endblock content %}
|
||||
|
||||
+18
-1
@@ -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 %}
|
||||
|
||||
@@ -1,2 +1,2 @@
|
||||
</body>
|
||||
</html>
|
||||
<hr/>
|
||||
Generated by Itsy-Gitsy on {{ts_to_git_timestamp(ts=site_generated_ts, tz=site_generated_offset)}}<br/>
|
||||
|
||||
@@ -1,9 +1,3 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>{{site_name}}</title>
|
||||
</head>
|
||||
<body style="font-family: monospace;">
|
||||
Site: {{site_name}}<br/>
|
||||
Generated: {{ts_to_git_timestamp(ts=site_generated_ts, tz=site_generated_offset)}}<br/>
|
||||
Extra settings: {{extra.global_user_defined_vars}}<br/>
|
||||
<hr/>
|
||||
Site: {{site_name}}<br/>
|
||||
Extra settings: {{extra.global_user_defined_vars}}<br/>
|
||||
<hr/>
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
{% for repo in repos | sort(attribute="name") -%}
|
||||
<a href="{{repo.name}}/summary.html">{{ repo.name }}</a> ({{repo.metadata.website}}) [{{repo.metadata.attributes | get(key="some_extra_thing", default="")}}] ({{ts_to_date(ts=repo.history[0].ts_utc, tz=repo.history[0].ts_offset)}})<br/>
|
||||
{% endfor -%}
|
||||
{% endblock content %}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
<table class="commits">
|
||||
<tr>
|
||||
<th>Commit ID</th>
|
||||
@@ -77,3 +80,4 @@
|
||||
</tr>
|
||||
{% endfor -%}
|
||||
</table>
|
||||
{% endblock content %}
|
||||
|
||||
@@ -1,3 +1,6 @@
|
||||
{% extends "base.html" %}
|
||||
|
||||
{% block content %}
|
||||
branch: {{tag.ref_name}}<br/>
|
||||
hash: {{tag.full_hash}} ({{tag.short_hash}})<br/>
|
||||
author: {{tag.author.name}}<br/>
|
||||
@@ -9,3 +12,4 @@ summary: {{tag.summary}}<br/>
|
||||
commit: {%- if commit -%}<a href="../commit/{{commit.full_hash}}.html">{{commit.full_hash}}</a>
|
||||
<pre>{{commit.message}}</pre>
|
||||
{%-else-%}{{tag.tagged_id}}{%-endif-%}<br/>
|
||||
{% endblock content %}
|
||||
|
||||
Reference in New Issue
Block a user