From 35d23765e27b716abbcd696933af038bc1c97b15 Mon Sep 17 00:00:00 2001 From: badhezi Date: Wed, 14 May 2025 14:53:38 +0300 Subject: [PATCH] add download links to raw diff and patch in diff box options dropdown --- templates/repo/diff/options_dropdown.tmpl | 3 +++ 1 file changed, 3 insertions(+) diff --git a/templates/repo/diff/options_dropdown.tmpl b/templates/repo/diff/options_dropdown.tmpl index 8d08e7ad46..a8a6c2ac10 100644 --- a/templates/repo/diff/options_dropdown.tmpl +++ b/templates/repo/diff/options_dropdown.tmpl @@ -10,6 +10,9 @@ {{else if .Commit.ID.String}} {{ctx.Locale.Tr "repo.diff.download_patch"}} {{ctx.Locale.Tr "repo.diff.download_diff"}} + {{else if $.PageIsCompareDiff }} + {{ctx.Locale.Tr "repo.diff.download_patch"}} + {{ctx.Locale.Tr "repo.diff.download_diff"}} {{end}} {{ctx.Locale.Tr "repo.pulls.expand_files"}} {{ctx.Locale.Tr "repo.pulls.collapse_files"}}