Compare commits

...

2 Commits

Author SHA1 Message Date
0daf300060
templates: added a tickets template
still need to replace the file list with a list of issues in the
repository, add discussions, etc.
2025-08-24 23:37:56 -04:00
27d82a2df5
templates: rename nav block to breadcrumbs 2025-08-24 23:31:45 -04:00
3 changed files with 46 additions and 5 deletions

View File

@ -93,9 +93,9 @@
<span>
viewing
<span class=linkedPath>
{% block nav %}
{% block breadcrumbs %}
<a href="/">{{ owner }}</a>/<a href="/">{{ repo }}</a>
{% endblock nav %}
{% endblock breadcrumbs %}
</span>
</span>
<ul class=buttonList>

View File

@ -2,10 +2,9 @@
{% block page %}code{% endblock page %}
{% block nav %}
{% block breadcrumbs %}
<a href="/">{{ owner }}</a>/<a href="/">{{ repo }}</a>/<a href="/">{{ branch }}</a>
{% endblock nav %}
{% endblock breadcrumbs %}
{% block content %}
<div id=contentWrap>

View File

@ -0,0 +1,42 @@
{% extends "base.html" %}
{% block page %}tickets{% endblock page %}
{% block content %}
<div id=contentWrap>
<aside>
<div class=sidebarLabel>
tickets
<div class=tabList style="display: inline-flex">
<span>open</span>
<a href="/">closed</a>
</div>
</div>
<table class=files border=1>
<tbody>
{% block entries_list %}
{% for entry in entries %}
<tr>
<td><a class={{ entry.class }} href="/">{{ 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>
<article class=preview>
<h1>Ticket title</h1>
{{ readme_content }}
</article>
</main>
{% endblock readme %}
</div>
{% endblock content %}