gitscope
← rgit / 0.1.4 / templates/repo/commit.html
https://dev.kronoz.win/r/rgit.git
templates/repo/commit.html · HTML
Blame Raw
 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.author().name() }} &lt;{{ commit.author().email() }}&gt;</td>
18        <td>{{ commit.author().time() }}</td>
19    </tr>
20    <tr>
21        <th>committer</th>
22        <td>{{ commit.committer().name() }} &lt;{{ commit.committer().email() }}&gt;</td>
23        <td>{{ commit.committer().time() }}</td>
24    </tr>
25    <tr>
26        <th>commit</th>
27        <td colspan="2"><pre><a href="/{{ repo.display() }}/commit?id={{ commit.oid() }}{% call link::maybe_branch_suffix(branch) %}" class="no-style">{{ commit.oid() }}</a> <a href="/{{ repo.display() }}/patch?id={{ commit.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.tree() }}{% call link::maybe_branch_suffix(branch) %}" class="no-style">{{ commit.tree() }}</a></pre></td>
32    </tr>
33    {%- for parent in commit.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.summary() }}</h2>
48<pre>{{ commit.body() }}</pre>
49
50<h3>Diff</h3>
51<pre class="diff">{{ commit.diff_stats|safe }}
52{{ commit.diff|safe }}</pre>
53{% endblock %}