66 lines
1.9 KiB
HTML
66 lines
1.9 KiB
HTML
{% extends "base.html" %}
|
|
|
|
{#
|
|
Copyright (c) 2022 Sasha Koshka <sashakoshka@tebibyte.media>
|
|
Copyright (c) 2023,2025 Emma Tebibyte <emma@tebibyte.media>
|
|
SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
This file is part of Mintee.
|
|
|
|
Mintee is free software: you can redistribute it and/or modify it under the
|
|
terms of the GNU Affero General Public License as published by the Free
|
|
Software Foundation, either version 3 of the License, or (at your option)
|
|
any later version.
|
|
|
|
Mintee is distributed in the hope that it will be useful, but WITHOUT ANY
|
|
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
|
|
FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for
|
|
more details.
|
|
|
|
You should have received a copy of the GNU Affero General Public License
|
|
along with Mintee. If not, see https://www.gnu.org/licenses/.
|
|
#}
|
|
|
|
{% block page %}code{% endblock page %}
|
|
|
|
{% block breadcrumbs %}
|
|
<a href="/~{{ owner }}">{{ owner }}</a>/<a href="/~{{ owner }}/{{ repo }}">{{ repo }}</a>/<a href="/">{{ branch }}</a>
|
|
{% endblock breadcrumbs %}
|
|
|
|
{% block content %}
|
|
<div id=contentWrap>
|
|
<aside>
|
|
<p class=sidebarLabel>
|
|
{% for part in directory | split(pat="/") -%}
|
|
<a href="/">{{ part }}/</a>
|
|
{%- endfor %}
|
|
</p>
|
|
<table class=files border=1>
|
|
<tbody>
|
|
{% block entries_list %}
|
|
{% for entry in entries %}
|
|
<tr>
|
|
<td><a class={{ entry.class }} href="./{{ entry.path }}">{{ entry.path }}</a></td>
|
|
<td><a class=commit href="./?commit={{ entry.last_commit }}">
|
|
{{ entry.last_commit_message }}
|
|
</a></td>
|
|
<td><time datetime="{{ entry.last_commit_time }}">
|
|
{{ entry.last_commit_time | date(format="%Y-%m-%d %H:%M")}}
|
|
</time></td>
|
|
</tr>
|
|
{% endfor %}
|
|
{% endblock entries %}
|
|
</tbody>
|
|
</table>
|
|
</aside>
|
|
{% block readme %}
|
|
<main>
|
|
<p class=previewLabel>README.md</p>
|
|
<article class=preview>
|
|
{{ readme_content }}
|
|
</article>
|
|
</main>
|
|
{% endblock readme %}
|
|
</div>
|
|
{% endblock content %}
|