diff options
author | Norwin <noerw@users.noreply.github.com> | 2021-06-28 01:13:20 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-28 01:13:20 +0200 |
commit | 9c6aeb47f7979a434bf30408992c06118c142771 (patch) | |
tree | 0aed39da360583610dee02a2d96a7a43b022d45d /options/locale | |
parent | 59c58553baa5597f5c2156b47fd2e47e46aa58ac (diff) | |
download | gitea-9c6aeb47f7979a434bf30408992c06118c142771.tar.gz gitea-9c6aeb47f7979a434bf30408992c06118c142771.zip |
Link to previous blames in file blame page (#16259)
Adds a link to each blame hunk, to view the blame of an earlier version of the file, similar to GitHub. Also refactors the blame render from fmtstring based to template based.
* Fix blame bottom line and add blame prior button
* Jump to previous parent commit from the commit.
* Fix previous commit link
* Fix previous blame link
* Fix the given file not exist in the previous commit.
* Fix blameRow struct not export
* fix theming issues, rename template var
* remove unused LastCommit fetch
* fix location of blame-hunk divider
* rewrite previous commit checks
* remove duplicate commit lookup
its already resolved and stored in ctx.Repo.Commit!
* split out blamePart processing into function
Co-authored-by: rogerluo410 <rogerluo410@gmail.com>
Diffstat (limited to 'options/locale')
-rw-r--r-- | options/locale/locale_en-US.ini | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/options/locale/locale_en-US.ini b/options/locale/locale_en-US.ini index e0ece8f9f0..dcdfa611ec 100644 --- a/options/locale/locale_en-US.ini +++ b/options/locale/locale_en-US.ini @@ -809,6 +809,7 @@ delete_preexisting_label = Delete delete_preexisting = Delete pre-existing files delete_preexisting_content = Delete files in %s delete_preexisting_success = Deleted unadopted files in %s +blame_prior = View blame prior to this change transfer.accept = Accept Transfer transfer.accept_desc = Transfer to "%s" |