https://dev.kronoz.win/r/rgit.git
1{% import "macros/link.html" as link %}
2{% extends "repo/base.html" %}
3
4{% block head %}
5 <link rel="stylesheet" type="text/css" href="/highlight-{{ crate::HIGHLIGHT_CSS_HASH.get().unwrap() }}.css" />
6 <link rel="stylesheet" type="text/css" href="/highlight-dark-{{ crate::DARK_HIGHLIGHT_CSS_HASH.get().unwrap() }}.css" />
7{%- endblock %}
8
9{% block commit_nav_class %}active{% endblock %}
10
11{% block content %}
12<div class="table-responsive">
13<table class="commit-info">
14 <tbody>
15 <tr>
16 <th>author</th>
17 <td>{{ commit.get().author().name() }} <{{ commit.get().author().email() }}></td>
18 <td>{{ commit.get().author().time() }}</td>
19 </tr>
20 <tr>
21 <th>committer</th>
22 <td>{{ commit.get().committer().name() }} <{{ commit.get().committer().email() }}></td>
23 <td>{{ commit.get().committer().time() }}</td>
24 </tr>
25 <tr>
26 <th>commit</th>
27 <td colspan="2"><pre><a href="/{{ repo.display() }}/commit?id={{ commit.get().oid() }}{% call link::maybe_branch_suffix(branch) %}" class="no-style">{{ commit.get().oid() }}</a> <a href="/{{ repo.display() }}/patch?id={{ commit.get().oid() }}">[patch]</a></pre></td>
28 </tr>
29 <tr>
30 <th>tree</th>
31 <td colspan="2"><pre><a href="/{{ repo.display() }}/tree?id={{ commit.get().tree() }}{% call link::maybe_branch_suffix(branch) %}" class="no-style">{{ commit.get().tree() }}</a></pre></td>
32 </tr>
33 {%- for parent in commit.get().parents() %}
34 <tr>
35 <th>parent</th>
36 <td colspan="2"><pre><a href="/{{ repo.display() }}/commit?id={{ parent }}{% call link::maybe_branch_suffix(branch) %}" class="no-style">{{ parent }}</a></pre></td>
37 </tr>
38 {%- endfor %}
39 <tr>
40 <th>download</th>
41 <td colspan="2"><pre><a href="/{{ repo.display() }}/snapshot?{% if let Some(id) = id %}id={{ id }}{% else %}h={{ dl_branch }}{% endif %}">{{ id.as_deref().unwrap_or(dl_branch.as_ref()) }}.tar.gz</a></pre></td>
42 </tr>
43 </tbody>
44</table>
45</div>
46
47<h2>{{ commit.get().summary() }}</h2>
48<pre>{{ commit.get().body() }}</pre>
49
50<h3>Diff</h3>
51<pre class="diff">{{ commit.diff_stats|safe }}
52{{ commit.diff|safe }}</pre>
53{% endblock %}