Parent [>]
1{% extends "base.html" %}
2
3{% block title %}repos{% endblock %}
4{% block og_title %}repos{% endblock %}
5{% block og_description %}git repository browser{% endblock %}
6
7{% block breadcrumbs %}
8<ul>
9  <li><a href="{{ crate::base_url() }}/">{{ crate::hostname() }}</a></li>
10</ul>
11{% endblock %}
12
13{% block content %}
14{% if repos.is_empty() %}
15<p>No repositories found.</p>
16{% else %}
17<div class="repo-list">
18  {% for repo in repos %}
19  <a href="{{ crate::base_url() }}/{{ repo.name }}" class="repo-card">
20    <span class="repo-name">{{ repo.name }}</span>
21    {% if let Some(desc) = &repo.description %}
22    <span class="repo-desc">{{ desc }}</span>
23    {% endif %}
24    <span class="repo-meta"><span>{{ repo.commit_count }} {{ repo.commit_count|pluralize("commit", "commits") }}</span>{% if let Some(date) = &repo.last_commit %}<span>{{ date }}</span>{% endif %}</span>
25  </a>
26  {% endfor %}
27</div>
28{% endif %}
29{% endblock %}