roundabout,
created on Wednesday, 3 April 2024, 08:16:40 (1712132200),
received on Wednesday, 31 July 2024, 06:54:44 (1722408884)
Author identity: vlad <vlad.muntoiu@gmail.com>
77289659fd76c33db333d01f450709c003169238
static/style.css
@@ -422,13 +422,16 @@ header {
padding: 0; margin: 0; width: 100%; padding-left: 1ch;} .code-view > :is(code, ins, del, x-codeline):first-child::before {padding-top: 1em;.code-view > .line-number:first-child, .code-view > .line-number:first-child + :is(code, ins, del, x-codeline) { padding-top: 1ch;} .code-view > :is(code, ins, del, x-codeline):last-child::before {padding-bottom: 1em;.code-view > :is(code, ins, del, x-codeline):last-child { padding-bottom: 1ch;} .ln::before {
@@ -444,7 +447,7 @@ header {
left: 0; } .linenumber {.line-number {display: inline-block; width: 8ch; box-sizing: content-box;
templates/repository/repo-commit.html
@@ -14,27 +14,26 @@
{% for line in diff[file] %} {% if line.startswith("@@") %} {% if vars.hunk_started %} </pre> <!-- Close the previous pre block if this isn't the first hunk --></pre> <!-- close the previous pre block if this isn't the first hunk -->{% endif %} {% set vars.hunk_started = true %} {% set diff_location = line|parse_diff_location %} {% set vars.original_line = diff_location[0][0] %} {% set vars.modified_line = diff_location[1][0] %} <h3 class="diff-position">{{ line }}</h3> <!-- Intentionally not displaying hunk headers directly --><pre class="code-view"> <!-- Start a new pre block for hunk content --><pre class="code-view">{% elif vars.hunk_started %} {% if line.startswith("+") %} <div class="linenumber">{{ vars.modified_line }} +</div><span class="line-number">{{ vars.modified_line }} +</span><ins>{{ line[1:] }}</ins> {% set vars.modified_line = vars.modified_line + 1 %} {% elif line.startswith("-") %} <div class="linenumber">{{ vars.original_line }} -</div><span class="line-number">{{ vars.original_line }} -</span><del>{{ line[1:] }}</del> {% set vars.original_line = vars.original_line + 1 %} {% else %} {% if line %} <div class="linenumber">{{ vars.modified_line }} </div><span class="line-number">{{ vars.modified_line }} </span><x-codeline>{{ line[1:] }}</x-codeline> {% endif %} {% if not line.startswith("@@") %}
@@ -45,7 +44,7 @@
{% endif %} {% endfor %} {% if vars.hunk_started %} </pre> <!-- Ensure the last pre block is closed --></pre> <!-- close the last hunk -->{% endif %} {% endfor %} </x-frame>