From ea6af13da8949edf582de98d4ed73a09124d1985 Mon Sep 17 00:00:00 2001 From: zPlus Date: Tue, 9 Aug 2022 17:59:48 +0200 Subject: [PATCH] Replace diffstat links with anchors. Remove direct link from diffstat to blob, and instead replace it with anchors to diffs on the same page. --- templates/repository/commit.html | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/templates/repository/commit.html b/templates/repository/commit.html index 9cd61dd..cada978 100644 --- a/templates/repository/commit.html +++ b/templates/repository/commit.html @@ -72,7 +72,7 @@ {{ patch.delta.new_file.mode|filemode }} - {{ patch.delta.new_file.path }} + {{ patch.delta.new_file.path }} {{ patch.line_stats[1] + patch.line_stats[2] }} @@ -158,7 +158,7 @@ {% for patch in diff %} -
+
{# The following status values are defined in the git_delta_t enum # in libgit2. See https://github.com/libgit2/libgit2/blob/main/include/git2/diff.h