You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
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>
4 years ago
..
api/v1 Refactor Webhook + Add X-Hub-Signature (#16176) 4 years ago
common Rework repository archive (#14723) 4 years ago
install Add --quiet and --verbose to gitea web to control initial logging (#16260) 4 years ago
private Add tag protection (#15629) 4 years ago
utils Clarify the suffices and prefixes of setting.AppSubURL and setting.AppURL (#12999) 4 years ago
web Link to previous blames in file blame page (#16259) 4 years ago
init.go Add --quiet and --verbose to gitea web to control initial logging (#16260) 4 years ago