0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-11-25 04:35:00 +01:00
gitea/routers
Norwin 9c6aeb47f7
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>
2021-06-28 01:13:20 +02:00
..
api/v1 Refactor Webhook + Add X-Hub-Signature (#16176) 2021-06-27 20:21:09 +01:00
common Rework repository archive (#14723) 2021-06-23 17:12:38 -04:00
install Add --quiet and --verbose to gitea web to control initial logging (#16260) 2021-06-26 20:56:58 -04:00
private Add tag protection (#15629) 2021-06-25 16:28:55 +02:00
utils Clarify the suffices and prefixes of setting.AppSubURL and setting.AppURL (#12999) 2021-02-19 22:36:43 +01:00
web Link to previous blames in file blame page (#16259) 2021-06-28 01:13:20 +02:00
init.go Add --quiet and --verbose to gitea web to control initial logging (#16260) 2021-06-26 20:56:58 -04:00