By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 repo-commit.html

View raw Download
text/plain • 1.01 kiB
ASCII text
        
            
1
{% extends "default.html" %}
2
3
{% set active_page = "log" %}
4
5
{% block title %}
6
{% trans basename=basename, username=username, repository=repository %}{{ basename }} in {{ username }}/{{ repository }}{% endtrans %}
7
{% endblock %}
8
{% block content %}
9
<x-vbox>
10
<x-frame style="--width: 896px;" class="flexible-space">
11
{% for file in diff %}
12
<h2>{{ file }}</h2>
13
{% set vars = namespace(i=0) %}
14
{% for line in diff[file] %}
15
{% if line.startswith("@@") %}
16
{% break %}
17
{% endif %}
18
{% set vars.i = vars.i+1 %}
19
{% endfor %}
20
<h4 class="diff-position">{{ diff[file][vars.i] }}</h4>
21
{% set vars.i = vars.i+1 %}
22
<pre class="interrupt-top">{% for line in diff[file][vars.i:] %}
23
{% if line[0] == "+" %}<ins>{{ line }}</ins>{% elif line[0] == "-" %}<del>{{ line }}</del>{% else %}{{ line }}{% endif %}{% endfor %}</pre>
24
{% endfor %}
25
</x-frame>
26
</x-vbox>
27
{% endblock %}
28