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.
Why this refactor The goal is to move most files from `models` package to `models.xxx` package. Many models depend on avatar model, so just move this first. And the existing logic is not clear, there are too many function like `AvatarLink`, `RelAvatarLink`, `SizedRelAvatarLink`, `SizedAvatarLink`, `MakeFinalAvatarURL`, `HashedAvatarLink`, etc. This refactor make everything clear: * user.AvatarLink() * user.AvatarLinkWithSize(size) * avatars.GenerateEmailAvatarFastLink(email, size) * avatars.GenerateEmailAvatarFinalLink(email, size) And many duplicated code are deleted in route handler, the handler and the model share the same avatar logic now. |
3 years ago | |
---|---|---|
.. | ||
activity.go | 3 years ago | |
attachment.go | 3 years ago | |
blame.go | 3 years ago | |
branch.go | 3 years ago | |
commit.go | 3 years ago | |
compare.go | 3 years ago | |
download.go | 3 years ago | |
editor.go | 3 years ago | |
editor_test.go | 3 years ago | |
http.go | 3 years ago | |
http_test.go | 3 years ago | |
issue.go | 3 years ago | |
issue_dependency.go | 3 years ago | |
issue_label.go | 3 years ago | |
issue_label_test.go | 3 years ago | |
issue_lock.go | 3 years ago | |
issue_stopwatch.go | 3 years ago | |
issue_test.go | 3 years ago | |
issue_timetrack.go | 3 years ago | |
issue_watch.go | 3 years ago | |
lfs.go | 3 years ago | |
main_test.go | 3 years ago | |
middlewares.go | 3 years ago | |
migrate.go | 3 years ago | |
milestone.go | 3 years ago | |
projects.go | 3 years ago | |
projects_test.go | 3 years ago | |
pull.go | 3 years ago | |
pull_review.go | 3 years ago | |
release.go | 3 years ago | |
release_test.go | 3 years ago | |
repo.go | 3 years ago | |
search.go | 3 years ago | |
setting.go | 3 years ago | |
setting_protected_branch.go | 3 years ago | |
settings_test.go | 3 years ago | |
tag.go | 3 years ago | |
topic.go | 3 years ago | |
view.go | 3 years ago | |
webhook.go | 3 years ago | |
wiki.go | 3 years ago | |
wiki_test.go | 3 years ago |