{{ctx.Locale.Tr "repo.diff.git-notes.remove-body"}}
From f5c0570533b0a835a88eb7337da841d071f2de6b Mon Sep 17 00:00:00 2001 From: 0ko <0ko@noreply.codeberg.org> Date: Tue, 19 Nov 2024 10:27:57 +0500 Subject: [PATCH] ui: improve git notes --- options/locale/locale_en-US.ini | 6 +++--- templates/repo/commit_page.tmpl | 10 ++++++---- web_src/js/features/repo-commit.js | 1 - 3 files changed, 9 insertions(+), 8 deletions(-) diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index 856a835b32..f836d8fb57 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -2622,9 +2622,9 @@ diff.browse_source = Browse source diff.parent = parent diff.commit = commit diff.git-notes = Notes -diff.git-notes.add = Add Note -diff.git-notes.remove-header = Remove Note -diff.git-notes.remove-body = This will remove this Note +diff.git-notes.add = Add note +diff.git-notes.remove-header = Remove note +diff.git-notes.remove-body = This note will be removed. diff.data_not_available = Diff content is not available diff.options_button = Diff options diff.show_diff_stats = Show stats diff --git a/templates/repo/commit_page.tmpl b/templates/repo/commit_page.tmpl index aaec11385d..28b7bfc89c 100644 --- a/templates/repo/commit_page.tmpl +++ b/templates/repo/commit_page.tmpl @@ -128,6 +128,9 @@ +
{{end}} @@ -277,20 +280,20 @@ {{DateUtils.TimeSince .NoteCommit.Author.When}} {{if or ($.Permission.CanWrite $.UnitTypeCode) (not $.Repository.IsArchived) (not .IsDeleted)}}{{ctx.Locale.Tr "repo.diff.git-notes.remove-body"}}
{{ctx.Locale.Tr "repo.diff.git-notes.remove-body"}}