summaryrefslogtreecommitdiffstats
path: root/models/user.go
Commit message (Collapse)AuthorAgeFilesLines
* Add support for federated avatars (#3320)Sandro Santilli2016-08-071-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add support for federated avatars Fixes #3105 Removes avatar fetching duplication code Adds an "Enable Federated Avatar" checkbox in user settings (defaults to unchecked) Moves avatar settings all in the same form, making local and remote avatars mutually exclusive Renames UploadAvatarForm to AvatarForm as it's not anymore only for uploading * Run gofmt on all modified files * Move Avatar form in its own page * Add go-libravatar dependency to vendor/ dir Hopefully helps with accepting the contribution. See also #3214 * Revert "Add go-libravatar dependency to vendor/ dir" This reverts commit a8cb93ae640bbb90f7d25012fc257bda9fae9b82. * Make federated avatar setting a global configuration Removes the per-user setting * Move avatar handling back to base tool, disable federated avatar in offline mode * Format, handle error * Properly set fallback host * Use unsupported github.com mirror for importing go-libravatar * Remove comment showing life exists outside of github.com ... pity, but contribution would not be accepted otherwise * Use Combo for Get and Post methods over /avatar * FEDERATED_AVATAR -> ENABLE_FEDERATED_AVATAR * Fix persistance of federated avatar lookup checkbox at install time * Federated Avatars -> Enable Federated Avatars * Use len(string) == 0 instead of string == "" * Move import line where it belong See https://github.com/Unknwon/go-code-convention/blob/master/en-US/import_packages.md Pity the import url is still the unofficial one, but oh well... * Save a line (and waste much more expensive time) * Remove redundant parens * Remove an empty line * Remove empty lines * Reorder lines to make diff smaller * Remove another newline Unknwon review got me start a fight against newlines * Move DISABLE_GRAVATAR and ENABLE_FEDERATED_AVATAR after OFFLINE_MODE On re-reading the diff I figured what Unknwon meant here: https://github.com/gogits/gogs/pull/3320/files#r73741106 * Remove newlines that weren't there before my intervention
* #3393 fix missing sub-url prefix in relative avatar linkUnknwon2016-08-071-3/+6
|
* #3348 always use relative avatar link in the templateUnknwon2016-08-051-2/+2
|
* #3281 fix x.Iterate returns nothing inside session scope with SQLite3Unknwon2016-07-261-8/+15
|
* #1384 add pagination for repositoriesUnknwon2016-07-241-3/+8
|
* Refactor User.Id to User.IDUnknwon2016-07-241-43/+43
|
* Use struct for UI settingsUnknwon2016-07-241-3/+3
|
* Remove redundant Unix timestamp method callUnknwon2016-07-231-2/+2
| | | | Unix() already uses UTC as timezone
* #2903 use different reversed words and patterns for repository and userUnknwon2016-07-231-2/+37
|
* avatar: make custom and generated avatars equal (#3301)Dennis Chen2016-07-211-3/+2
| | | | | | Sets all avatars to use PNG image format. Keeps avatars consistent at 290x290px resolution. Signed-off-by: Dennis Chen <barracks510@gmail.com>
* #2937 able to prohibit user loginUnknwon2016-07-161-0/+1
|
* models/user_mail: refactor EmailAddressUnknwon2016-07-161-170/+4
|
* Return avatar link as absolute url (#3235)Sandro Santilli2016-07-161-2/+2
| | | | | Fixes relative urls coming from api/v1 See https://github.com/drone/drone/issues/1701
* Use a gopher as default avatar (rather than the gravatar logo) (#3208)Sandro Santilli2016-06-271-1/+1
| | | | | | | | | | | | Also changes the avatar from a jpeg to a png, to allow for transparent background. The indexed png is also smaller in size. Note that at the moment the default avatar is only used when the user requested a custom avatar and the custom avatar file is not found (should never happen). In the future the default avatar could be used as a default return when by-mail avatar lookups fail too (both gravatar and libravatar support passing a default)
* #2814 LOWER() column value within searchUnknwon2016-03-161-2/+2
|
* Remove email from user searchOdin Ugedal2016-03-151-1/+0
|
* Make user search look in username, name and emailOdin Ugedal2016-03-151-1/+5
| | | | | | Make user search function look in username (lower_name), full name (full_name) and primary email (email). This will benefit searching after user in "explore", admin panel and when adding new collaborators.
* #13 fix postgres aggregateUnknwon2016-03-111-4/+3
|
* #13 finish user and repository searchUnknwon2016-03-111-11/+40
| | | | Both are possible on explore and admin panel
* #2302 Replace time.Time with Unix Timestamp (int64)Unknwon2016-03-091-6/+17
|
* Minor fixes for #2766Unknwon2016-03-061-3/+2
|
* Added: Ability to delete org avatar.Tamás Molnár2016-03-061-0/+13
|
* #1146 finish new access rights for collaboratorsUnknwon2016-03-051-10/+6
|
* #1157 some avatar setting changesUnknwon2016-03-051-11/+4
| | | | - Allow to delete current avatar
* #1597 support pull requests in same repositoryUnknwon2016-03-041-7/+10
|
* Make markdown as an independent moduleUnknwon2016-02-201-2/+3
|
* Remove cache avatar support and add its testsUnknwon2016-02-141-4/+2
|
* #2558 delete local wiki copy when rename repo and userUnknwon2016-02-051-2/+10
|
* Fix random avatar does not work on WindowsUnknwon2016-02-021-2/+1
| | | | path.Dir can't handle Windows case, must use filepath.Dir
* Minor fix for #2494Unknwon2016-01-281-3/+3
| | | | - Change tooltip size from mini to tiny in profile page
* Change user name in Pull RequestsMartin Hartkorn2016-01-271-0/+5
|
* #2287 Truncate repository name if too longUnknwon2016-01-111-6/+1
|
* Add default for NumFollowing field (fixes #2261)Angus Gibson2015-12-221-1/+1
| | | | | We set the default value for the non-NULL field NumFollowing of the User model to 0, which stops an error when the ORM tries to sync.
* #1692 APIs: Users FollowersUnknwon2015-12-211-72/+73
| | | | | - User profile un/follow - List user's followers/following
* #1692 add organization APIsUnknwon2015-12-171-2/+2
|
* #1692 add user email APIsUnknwon2015-12-151-10/+36
|
* rename import pathUnknwon2015-12-151-1/+1
|
* #2155 The owner has reached maximum creation limit of 0 repositoriesUnknwon2015-12-111-2/+3
|
* #1938 #1374 disable password change for non-local usersUnknwon2015-12-101-0/+5
|
* fix bool check for repo max limit and fix hang when push repo with tons of ↵Unknwon2015-12-101-0/+3
| | | | commits
* fix user repo limit default valueUnknwon2015-12-101-1/+1
|
* #1301 "read-only" usersUnknwon2015-12-101-4/+4
|
* #1575 Limit repo creationUnknwon2015-12-101-0/+22
|
* move out git module and #1573 send push hookUnknwon2015-12-091-4/+3
|
* finish wikiUnknwon2015-11-301-1/+1
|
* wiki: finish newUnknwon2015-11-271-4/+6
|
* #1944 Drop /org/ URL path prefix in organization home pageUnknwon2015-11-241-3/+0
|
* some fix to #2026Unknwon2015-11-231-0/+1
|
* UI: long organization name in create repository owner listUnknwon2015-11-181-0/+9
|
* fix #1960Unknwon2015-11-161-1/+1
|