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 69be51c527fcb1c01792ea2fdec8b209a362960b 1682 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 class="sort-asc" aria-sort="ascending">Idle</th>
32
          <th>Links</th>
33
        </tr>
34
    </thead>
35
    <tbody>
36
        {% for entry in repos %}
37
        <tr>
38
            <td><a href="/{{ entry.repo.name }}/">{{ entry.repo.name }}</a></td>
39
            <td><a href="/{{ entry.repo.name }}/">{{ entry.repo.description }}</a></td>
40
            <td>{% if let Some(owner) = entry.repo.owner %}{{ owner }}{% endif %}</td>
41
            {% if let Some(last_time) = entry.last_time %}
42
              {% let time = last_time.format_relative() %}
43
              <td data-sort="-{{ last_time.seconds() }}">
44
                <span class="{{ time.1 }}" title="{{ last_time.format() }}">{{ time.0 }}</span>
45
              </td>
46
            {% else %}
47
              <td data-sort="999999999999">
48
                <span class="stale">Unknown</span>
49
              </td>
50
            {% endif %}
51
            <td><a href="/{{ entry.repo.name }}/">summary</a><a href="/{{ entry.repo.name }}/log/">log</a><a href="/{{ entry.repo.name }}/tree/">tree</a></td>
52
        </tr>
53
        {% endfor %}
54
    </tbody>
55
</table>
56
{% endblock %}