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.
forgejo/templates/repo/issue/view_content
wxiaoguang f0ba87fda8
Avatar refactor, move avatar code from `models` to `models.avatars`, remove duplicated code (#17123)
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
..
add_reaction.tmpl Align dropdown right (#14406) 4 years ago
attachments.tmpl Enforce tab indentation in templates (#15289) 3 years ago
comments.tmpl Avatar refactor, move avatar code from `models` to `models.avatars`, remove duplicated code (#17123) 3 years ago
comments_delete_time.tmpl Update JS dependencies (#15033) 3 years ago
context_menu.tmpl Fixed issue where creating a reference of an issue would create a tag with the full name instead of the username if this is the default in the .ini file (#17074) 3 years ago
pull.tmpl Switch migration icon to svg (#15954) 3 years ago
reactions.tmpl Support unicode emojis and remove emojify.js (#11032) 4 years ago
reference_issue_dialog.tmpl Comment - Reference in new issue (#14366) 4 years ago
sidebar.tmpl Switch migration icon to svg (#15954) 3 years ago