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.
Sergey Dryabzhinsky 3fd18838aa Repository avatars (#6986)
* Repository avatars

- first variant of code from old work for gogs
- add migration 87
- add new option in app.ini
- add en-US locale string
- add new class in repository.less

* Add changed index.css, remove unused template name

* Update en-us doc about configuration options

* Add comments to new functions, add new option to docker app.ini

* Add comment for lint

* Remove variable, not needed

* Fix formatting

* Update swagger api template

* Check if avatar exists

* Fix avatar link/path checks

* Typo

* TEXT column can't have a default value

* Fixes:

- remove old avatar file on upload
- use ID in name of avatar file - users may upload same files
- add simple tests

* Fix fmt check

* Generate PNG instead of "static" GIF

* More informative comment

* Fix error message

* Update avatar upload checks:

- add file size check
- add new option
- update config docs
- add new string to en-us locale

* Fixes:

- use FileHEader field for check file size
- add new test - upload big image

* Fix formatting

* Update comments

* Update log message

* Removed wrong style - not needed

* Use Sync2 to migrate

* Update repos list view

- bigger avatar
- fix html blocks alignment

* A little adjust avatar size

* Use small icons for explore/repo list

* Use new cool avatar preparation func by @lafriks

* Missing changes for new function

* Remove unused import, move imports

* Missed new option definition in app.ini

Add file size check in user/profile avatar upload

* Use smaller field length for Avatar

* Use session to update repo DB data, update DeleteAvatar - use session too

* Fix err variable definition

* As suggested @lafriks - return as soon as possible, code readability
5 years ago
..
branch Number of commits ahead/behind in branch overview (#6695) 5 years ago
diff Revert "Bugfix: Align comment label and actions to the right (#7024)" (#7055) 5 years ago
editor Fixes 4762 - Content API for Creating, Updating, Deleting Files (#6314) 5 years ago
issue Fix input size for dependency select (#6913) 5 years ago
pulls Add more title attributes on shortened names (#6647) 5 years ago
release Properly escape release attachment URL (#6512) 5 years ago
settings Repository avatars (#6986) 5 years ago
wiki Improve issue autolinks (#6273) 5 years ago
activity.tmpl Improve localization of git activity stats (#6848) 5 years ago
blame.tmpl Add option to blame files (#5721) 5 years ago
branch_dropdown.tmpl Escape branch name in dropdown menu (#3691) 6 years ago
commit_status.tmpl Add `noreferrer` to rel='noopener` for <a> tags (#4328) 6 years ago
commits.tmpl Responsive view (#2750) 7 years ago
commits_table.tmpl Don't post process commit summary in templates (#6842) 5 years ago
create.tmpl Add more title attributes on shortened names (#6647) 5 years ago
empty.tmpl Feature: Archive repos (#5009) 6 years ago
forks.tmpl #3348 always use relative avatar link in the template 8 years ago
graph.tmpl Fix issue link rendering in commit messages (#2897) 7 years ago
header.tmpl Repository avatars (#6986) 5 years ago
home.tmpl Add option to blame files (#5721) 5 years ago
migrate.tmpl Improve migrations to support migrating milestones/labels/issues/comments/pullrequests (#6290) 5 years ago
search.tmpl Don't warn users about *every* dirty form (#3707) 6 years ago
sub_menu.tmpl Add ui class to sub_menu to fix style in arc-green (#6477) 5 years ago
user_cards.tmpl Unifies pagination template usage (#6531) (#6533) 5 years ago
view_file.tmpl Order file actions equal to GitHub (#6706) 5 years ago
view_list.tmpl Refactor table width to have more info shown in file list (#6867) 5 years ago
watchers.tmpl #1692 APIs: Users Followers 9 years ago