forgejo-federation/web_src/js
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
..
code Fix and restyle menu on code line (#15913) 2021-05-18 23:16:02 -04:00
components Heatmap days clickable (#13935) 2021-02-20 17:08:58 -05:00
features Fix heatmap activity (#15252) 2021-06-25 12:59:25 -04:00
markup Fixed setting of wrong position (#16148) 2021-06-14 22:42:58 +02:00
standalone docs: swagger show models by default (#14880) 2021-03-07 22:19:14 +01:00
easymde.js Switch from SimpleMDE to EasyMDE (#13333) 2020-11-10 14:16:30 -05:00
index.js Link to previous blames in file blame page (#16259) 2021-06-28 01:13:20 +02:00
jquery.js Upgrade jQuery to 3.5.0, remove jQuery-Migrate, fix deprecations (#11055) 2020-04-18 18:46:29 -04:00
publicpath.js Unregister non-matching serviceworkers (#15834) 2021-05-12 20:36:53 +02:00
serviceworker.js Fix serviceworker output file and misc improvements (#11562) 2020-05-24 08:36:40 +01:00
svg.js Fix and restyle menu on code line (#15913) 2021-05-18 23:16:02 -04:00
utils.js Unregister non-matching serviceworkers (#15834) 2021-05-12 20:36:53 +02:00
utils.test.js Unregister non-matching serviceworkers (#15834) 2021-05-12 20:36:53 +02:00