index : gitrs
A lightweight web interface for browsing Git repositories, implemented in Rust
about summary refs log tree commit diff
gitrs / templates / repositorys.html
-rw-r--r-- blob 0646bf838e963aee63a89082e2d6cede0b0e5268 1570 bytes (plain)
1
{% extends "base.html" %}
2
3
{% block title %}y2w8 Repos{% endblock %}
4
5
{% block header %}
6
  {{ macros::header() }}
7
{% endblock %}
8
9
{% block tabs %}
10
<tr>
11
  <td>
12
    <a href="/" class="active">index</a>
13
    <a href="/about">about</a>
14
  </td>
15
  <td class="form">
16
    <form method="get" action="/">
17
      <input type="search" name="v" size="10" value="">
18
      <input type="submit" value="search">
19
    </form>
20
  </td>
21
</tr>
22
{% endblock %}
23
24
{% block content %}
25
<table>
26
    <thead>
27
        <tr>
28
          <th>Name</th>
29
          <th>Description</th>
30
          <th>Owner</th>
31
          <th>Idle</th>
32
          <th>Links</th>
33
        </tr>
34
    </thead>
35
    <tbody>
36
        {% for repo in repos %}
37
        <tr>
38
            <td><a href="/{{ repo.name }}/">{{ repo.name }}</a></td>
39
            <td><a href="/{{ repo.name }}/">{{ repo.description }}</a></td>
40
            <td>{% if let Some(owner) = repo.owner %}{{ owner }}{% endif %}</td>
41
            <td>
42
              {% let gix_repo = repo.gix() %}
43
              {% if let Some(last_commit) = repo.last_commit(gix_repo)? %}
44
                {% let time = last_commit.time.format_relative() %}
45
                <span class="{{ time.1 }}" title="{{ last_commit.time.format() }}">{{ time.0 }}</span>
46
              {% else %}
47
                <span class="stale">Unknown</span>
48
              {% endif %}
49
50
            </td>
51
            <td><a href="/{{ repo.name }}/">summary</a><a href="/{{ repo.name }}/log/">log</a><a href="/{{ repo.name }}/tree/">tree</a></td>
52
        </tr>
53
        {% endfor %}
54
    </tbody>
55
</table>
56
{% endblock %}