You're looking at it

Homepage: https://roundabout-host.com

Important information: Google announced that, from September 2026, Android devices will require ALL apps to be signed by Google, effectively leading to an iOS situation. Value your right to a computer that does what you want; do not tolerate this monopolistic practice! Contact me if you don't understand why it is bad. Click to learn more.

 repo-log.html

View raw Download
text/html • 4.76 kiB
HTML document, ASCII text
        
            
1
{% extends "repo.html" %}
2
{% set active_page = "log" %}
3
4
{% block title %}
5
{% trans username=username, repository=repository %}History of {{ username }}/{{ repository }}{% endtrans %}
6
{% endblock %}
7
{% block content %}
8
<x-vbox>
9
<x-frame style="--width: 896px;" class="flexible-space">
10
<x-vbox>
11
<select id="branch-selection" style="flex: 0 1 auto;">
12
<option value="ref-{{ current }}" selected>{% if "tag:" in current %}{% trans %}tag:{% endtrans %}{% endif %}{{ current | replace("~", "/") | replace("tag:", " ") }}</option>
13
{% for branch in branches %}
14
{% if branch[0] != current | replace("~", "/") | replace("tag:", " ") %}
15
<option value="ref-{% if branch[1] == 'tag' %}tag:{% endif %}{{ branch[0] | replace('/', '~') }}">{% if branch[1] == "tag" %}{% trans %}tag:{% endtrans %} {% endif %}{{ branch[0] }}</option>
16
{% endif %}
17
{% endfor %}
18
</select>
19
<script>
20
branchSelect = document.getElementById("branch-selection");
21
22
branchSelect.addEventListener("change", function() {
23
if(branchSelect.value == "new") {
24
document.getElementById("new-branch").showModal();
25
} else {
26
const PREFIX = "ref-";
27
if(branchSelect.value.startsWith(PREFIX)) {
28
branch = branchSelect.value.slice(PREFIX.length);
29
}
30
var http = new XMLHttpRequest();
31
http.open("HEAD", "/{{ username }}/{{ repository }}/log/" + branch + "/{{ subpath }}", false);
32
http.send();
33
if(http.status == 404) {
34
location.href = "/{{ username }}/{{ repository }}/log/" + branch;
35
} else {
36
location.href = "/{{ username }}/{{ repository }}/log/" + branch + "/{{ subpath }}";
37
}
38
}
39
});
40
41
path = document.getElementById("repo-path-bar");
42
43
path.addEventListener("change", function() {
44
location.href = "/{{ username }}/{{ repository }}/log/{{ current }}" + path.value;
45
});
46
</script>
47
{% for commit in commits %}
48
<article class="card card-horizontal commit-card">
49
<figure class="branch-icon">
50
<a href="/{{ commit.owner_name }}">
51
{% if "@" not in commit.owner_name %}
52
<img src="/info/{{ commit.owner_name }}/avatar" style="width: 48px; height: 48px;" alt="">
53
{% else %}
54
{# Load a placeholder for foreign users #}
55
<iconify-icon icon="mdi:ufo-outline" style="width: 48px; height: 48px; font-size: 48px;"></iconify-icon>
56
{% endif %}
57
</a>
58
</figure>
59
<section class="card-main flexible-space">
60
<h3><a href="/{{ username }}/{{ repository }}/commit/{{ commit.sha }}">{{ commit.message | split("\n") | first }}</a></h3>
61
<p>
62
{% trans owner_name=commit.owner_name, profile_url=owner_name | profile_url %}by <a href="{{ profile_url }}">{{ owner_name }}</a>,{% endtrans %}
63
{{ commit.author_date|strftime("%A, %e %B %Y, %H:%M:%S") }}
64
</p>
65
<p>
66
{% trans pusher_name=commit.pusher_name, profile_url=pusher_name | profile_url %}pushed by <a href="/{{ pusher_name }}">{{ pusher_name }}</a>,{% endtrans %}
67
{{ commit.receive_date|strftime("%A, %e %B %Y, %H:%M:%S") }}
68
</p>
69
<code class="commit-sha">{{ commit.sha }}</code>
70
</section>
71
<section>
72
<x-buttonbox style="align-items: center; height: 100%;">
73
<a class="button" href="/{{ username }}/{{ repository }}/tree/~{{ commit.sha }}">{% trans %}View tree{% endtrans %}</a>
74
</x-buttonbox>
75
</section>
76
</article>
77
{% endfor %}
78
{% include "pagination.html" %}
79
</x-vbox>
80
</x-frame>
81
</x-vbox>
82
{% endblock %}