0
0
mirror of https://github.com/go-gitea/gitea.git synced 2024-11-27 04:24:08 +01:00
gitea/routers/web/repo
wxiaoguang c5c88f2f18
Save and view issue/comment content history (#16909)
* issue content history

* Use timeutil.TimeStampNow() for content history time instead of issue/comment.UpdatedUnix (which are not updated in time)

* i18n for frontend

* refactor

* clean up

* fix refactor

* re-format

* temp refactor

* follow db refactor

* rename IssueContentHistory to ContentHistory, remove empty model tags

* fix html

* use avatar refactor to generate avatar url

* add unit test, keep at most 20 history revisions.

* re-format

* syntax nit

* Add issue content history table

* Update models/migrations/v197.go

Co-authored-by: 6543 <6543@obermui.de>

* fix merge

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
2021-10-10 18:40:03 -04:00
..
activity.go
attachment.go
blame.go
branch.go
commit.go Support direct comparison (git diff a..b) as well merge comparison (a...b) (#16635) 2021-09-27 13:19:34 +01:00
compare.go Prevent NPE on invalid diff (#17197) 2021-09-30 21:31:02 +02:00
download.go
editor_test.go
editor.go
http_test.go
http.go Move twofactor to models/login (#17143) 2021-09-25 15:00:12 +02:00
issue_content_history.go Save and view issue/comment content history (#16909) 2021-10-10 18:40:03 -04:00
issue_dependency.go
issue_label_test.go
issue_label.go Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
issue_lock.go
issue_stopwatch.go
issue_test.go
issue_timetrack.go
issue_watch.go
issue.go Allow adding multiple issues to a project (#17226) 2021-10-08 00:00:02 +02:00
lfs.go
main_test.go
middlewares.go
migrate.go
milestone.go Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
projects_test.go
projects.go Kanban colored boards (#16647) 2021-09-29 22:53:12 +02:00
pull_review.go
pull.go Fix stange behavior of DownloadPullDiffOrPatch in incorect index (#17223) 2021-10-05 16:41:48 +02:00
release_test.go
release.go Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
repo.go
search.go
setting_protected_branch.go Add a simple way to rename branch like gh (#15870) 2021-10-08 19:03:04 +02:00
setting.go Move login related structs and functions to models/login (#17093) 2021-09-24 19:32:56 +08:00
settings_test.go
tag.go
topic.go
view.go Defer Last Commit Info (#16467) 2021-10-08 15:08:22 +02:00
webhook.go
wiki_test.go
wiki.go