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.
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>
3 years ago
..
activity.go Refactor routers directory (#15800) 3 years ago
attachment.go Add repo_id for attachment (#16958) 3 years ago
blame.go Replace `list.List` with slices (#16311) 3 years ago
branch.go Fix branch pagination error (#16805) 3 years ago
commit.go Support direct comparison (git diff a..b) as well merge comparison (a...b) (#16635) 3 years ago
compare.go Prevent NPE on invalid diff (#17197) 3 years ago
download.go Download lfs in git and web workflow from minio/s3 directly (#16731) 3 years ago
editor.go refactor: move from io/ioutil to io and os package (#17109) 3 years ago
editor_test.go Move db related basic functions to models/db (#17075) 3 years ago
http.go Move twofactor to models/login (#17143) 3 years ago
http_test.go Fix http path bug (#16117) 3 years ago
issue.go Allow adding multiple issues to a project (#17226) 3 years ago
issue_content_history.go Save and view issue/comment content history (#16909) 3 years ago
issue_dependency.go Rename context.Query to context.Form (#16562) 3 years ago
issue_label.go Move login related structs and functions to models/login (#17093) 3 years ago
issue_label_test.go Move db related basic functions to models/db (#17075) 3 years ago
issue_lock.go Refactor routers directory (#15800) 3 years ago
issue_stopwatch.go Refactor routers directory (#15800) 3 years ago
issue_test.go Refactor routers directory (#15800) 3 years ago
issue_timetrack.go Refactor routers directory (#15800) 3 years ago
issue_watch.go Refactor routers directory (#15800) 3 years ago
lfs.go refactor: move from io/ioutil to io and os package (#17109) 3 years ago
main_test.go Move db related basic functions to models/db (#17075) 3 years ago
middlewares.go Rename ctx.Form() to ctx.FormString() and move code into own file (#16571) 3 years ago
migrate.go Make mirror feature more configurable (#16957) 3 years ago
milestone.go Move login related structs and functions to models/login (#17093) 3 years ago
projects.go Kanban colored boards (#16647) 3 years ago
projects_test.go Move db related basic functions to models/db (#17075) 3 years ago
pull.go Fix stange behavior of DownloadPullDiffOrPatch in incorect index (#17223) 3 years ago
pull_review.go Rename ctx.Form() to ctx.FormString() and move code into own file (#16571) 3 years ago
release.go Move login related structs and functions to models/login (#17093) 3 years ago
release_test.go Move db related basic functions to models/db (#17075) 3 years ago
repo.go DBContext is just a Context (#17100) 3 years ago
search.go Related refactors to ctx.FormX functions (#16567) 3 years ago
setting.go Move login related structs and functions to models/login (#17093) 3 years ago
setting_protected_branch.go Add a simple way to rename branch like gh (#15870) 3 years ago
settings_test.go refactor: move from io/ioutil to io and os package (#17109) 3 years ago
tag.go Rename context.Query to context.Form (#16562) 3 years ago
topic.go Related refactors to ctx.FormX functions (#16567) 3 years ago
view.go Defer Last Commit Info (#16467) 3 years ago
webhook.go [API] generalize list header (#16551) 3 years ago
wiki.go refactor: move from io/ioutil to io and os package (#17109) 3 years ago
wiki_test.go refactor: move from io/ioutil to io and os package (#17109) 3 years ago