wayver's git archive


a simple self-hosted git server
git clone https://git.wayver.dev/bile

templates/index.html@f4279bc2ca927f6f651a20c5f0e7b5ebf76cc3a4

raw
Date Commit Message Author Files + -
2026-02-26 12:41 simple gitweb project listing-like implementation wayverd 5 56 40
...

1{% extends "base.html" %}
2
3{% macro render_section(section) %}
4  {% if section.name.is_some() %}
5    <h2>{{ section.name.as_deref().unwrap_or("") }}</h2>
6  {% endif %}
7  {% for repo in section.repos %}
8    <table class="repo">
9      <tbody>
10        <tr>
11          <td class="repo-link"><a href="{{repo|repo_name|urlencode_strict}}">{{repo|repo_name}}</a></td>
12          <td class="repo-last-updated">last updated {{repo|last_modified|format_datetime("%Y-%m-%d")}}</td>
13        </tr>
14        <tr>
15          <td class="repo-description" colspan="2">{{repo|description}}</td>
16        </tr>
17      </tbody>
18    </table>
19  {% endfor %}
20{% endmacro %}
21
22{% block content %}
23  <div>
24    {% for section in sections %}
25      {{ render_section(section=section) }}
26    {% endfor %}
27  </div>
28{% endblock %}