From 943746aaca39929c244832a9ac9f8b2b44b15dc6 Mon Sep 17 00:00:00 2001 From: Lukas Stancik Date: Sun, 27 Apr 2025 15:47:22 +0000 Subject: [PATCH] Fix templates markup to prevent nesting of commit files diff blocks Commit detail page improperly closes `.commit-diff` tags inside for-loop which results in diff blocks being nested within each other. This is best visible at large commits with lots of files and lots of changes - with increasing "indentation" from the left side as one scrolls down the long page. --- templates/default_dark/commit.html | 2 +- templates/default_light/commit.html | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/default_dark/commit.html b/templates/default_dark/commit.html index 44eb4d3..a6498d9 100644 --- a/templates/default_dark/commit.html +++ b/templates/default_dark/commit.html @@ -31,9 +31,9 @@ index {{file.oldid | truncate(length=7,end="")}}..{{file.newid | truncate(length {%- endfor -%} {% endfor -%} +
{% endfor -%} {% endif -%} - {% endblock content %} diff --git a/templates/default_light/commit.html b/templates/default_light/commit.html index 44eb4d3..a6498d9 100644 --- a/templates/default_light/commit.html +++ b/templates/default_light/commit.html @@ -31,9 +31,9 @@ index {{file.oldid | truncate(length=7,end="")}}..{{file.newid | truncate(length {%- endfor -%} {% endfor -%} +
{% endfor -%} {% endif -%} - {% endblock content %}