summaryrefslogtreecommitdiffstats
path: root/templates/user
Commit message (Collapse)AuthorAgeFilesLines
* Oauth2 consumer (#679)Willem van Dreumel2017-02-228-97/+185
| | | | | | | | | | | | | | | | | | | | | | | | | * initial stuff for oauth2 login, fails on: * login button on the signIn page to start the OAuth2 flow and a callback for each provider Only GitHub is implemented for now * show login button only when the OAuth2 consumer is configured (and activated) * create macaron group for oauth2 urls * prevent net/http in modules (other then oauth2) * use a new data sessions oauth2 folder for storing the oauth2 session data * add missing 2FA when this is enabled on the user * add password option for OAuth2 user , for use with git over http and login to the GUI * add tip for registering a GitHub OAuth application * at startup of Gitea register all configured providers and also on adding/deleting of new providers * custom handling of errors in oauth2 request init + show better tip * add ExternalLoginUser model and migration script to add it to database * link a external account to an existing account (still need to handle wrong login and signup) and remove if user is removed * remove the linked external account from the user his settings * if user is unknown we allow him to register a new account or link it to some existing account * sign up with button on signin page (als change OAuth2Provider structure so we can store basic stuff about providers) * from gorilla/sessions docs: "Important Note: If you aren't using gorilla/mux, you need to wrap your handlers with context.ClearHandler as or else you will leak memory!" (we're using gorilla/sessions for storing oauth2 sessions) * use updated goth lib that now supports getting the OAuth2 user if the AccessToken is still valid instead of re-authenticating (prevent flooding the OAuth2 provider)
* Fix all the bugs in issues and pulls on dashboard (#943)Lunny Xiao2017-02-171-1/+1
| | | | | | | | * fix all the bugs in issues and pulls on dashboard * small fix and refactor * add method getRepoIDs for IssueList
* Fix assigned issues dashboard (#920)Lunny Xiao2017-02-141-4/+4
| | | | | | | | | | | | | | | | | | | | | | * Fix assigned/created issues in dashboard. (#3560) * Fix assigned/created issues in dashboard. * Use GetUserIssueStats for getting all Dashboard stats. * Use gofmt to format the file properly. * Replace &Issue{} with new(Issue). * Check if user has access to given repository. * Remove unnecessary filtering of issues. * Return 404 error if invalid repository is given. * Use correct number of issues in paginater. * fix issues on dashboard
* feat: support search bar on star tab of user profile. (#917)Bo-Yi Wu2017-02-141-0/+1
| | | | | | | | | | | | | | * feat: support search bar on star tab of user profile. * fix: update testing. * fix: Using loadAttributes * fix: remove empty line. * remove LOWER Signed-off-by: Bo-Yi Wu <appleboy.tw@gmail.com>
* feat: fill in ssh key title automatically. (#863)Bo-Yi Wu2017-02-091-2/+2
|
* Allow rendering alerts in dashboard (#856)Sandro Santilli2017-02-081-0/+1
| | | NOTE: useful when logging in via OpenID and connecting to user
* show tags on dashboard issues (#860)Lunny Xiao2017-02-071-0/+4
|
* social_register_hepler_msg -> social_register_helper_msg (#855)Sandro Santilli2017-02-071-1/+1
| | | | | | * social_register_hepler_msg -> social_register_helper_msg * register_hepler_msg -> register_helper_msg
* feat: support paginater on star tab of user profile. (#845)Bo-Yi Wu2017-02-071-0/+1
|
* feat: Add search bar on user profile page. (#787)Bo-Yi Wu2017-02-041-0/+1
|
* feat: add search repository on dashboard. (#773)Bo-Yi Wu2017-01-301-4/+7
|
* Small UI fixesAndrey Nering2017-01-281-2/+4
|
* Fix color: closed PR was showing as purple instead of redAndrey Nering2017-01-281-4/+8
|
* Fix: Pagenation on dashboard->issues does not work well (#698)Kazuki Sawada2017-01-191-3/+3
|
* Notifications: trying to get a better layout (#660)Andrey Nering2017-01-181-69/+74
| | | | | | | | | | | | | | * i18n button titles * Improvements on notification page layout * Notification count badge fixes * Make table <tr> clickable * Fix octicon aligment * Fix use of AppSubUrl
* Two factor authentication support (#630)Andrew2017-01-165-0/+137
| | | | | | | | | | | | | | | | | | | | | | | | | | * Initial commit for 2FA support Signed-off-by: Andrew <write@imaginarycode.com> * Add vendored files * Add missing depends * A few clean ups * Added improvements, proper encryption * Better encryption key * Simplify "key" generation * Make 2FA enrollment page more robust * Fix typo * Rename twofa/2FA to TwoFactor * UNIQUE INDEX -> UNIQUE
* Notifications: mark as read/unread and pin (#629)Andrey Nering2017-01-121-22/+54
| | | | | | | | | | * Use relative URLs * Notifications - Mark as read/unread * Feature of pinning a notification * On view issue, do not mark as read a pinned notification
* Add Keep email private (see issue #571). (#571)derSuessmann2017-01-082-1/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | - Add site-wide option DEFAULT_KEEP_EMAIL_PRIVATE. - Add the new option to the install and admin/config pages. - Add the new option to app.ini in the service section. - Add the new option to the settings struct. - Add English text strings to i18n. - Add field KeepEmailPrivate to user struct. - Add field KeepEmailPrivate to user form. - Add option to UI. - Add using noreply email address if user has "Keep Email Private". An email address <LowerName>@<NO_REPLY_ADDRESS> is now used in commit messages (and hopefully all other git log relevant places). The change relies on the fact that git commands should use user.NetGitSig(). - Add hiding of email address in UI, if user has set "Keep Email Private". - Add condition to show email address only on explore/users and user pages, if user has not set "Keep Email Private". - Add noreply email in API if set "Keep Email Private". - Add a new service setting NO_REPLY_ADDRESS. The value of this setting is used as the domain part for the user's email address in git log, iff he decides to keep his email address private. If the user decides to keep his email address private and this option is not set 'noreply.example.org' is used, which no MTA should send email to. Add NO_REPLY_ADDRESS to conf/app.ini.
* Merge pull request #539 from andreynering/notifications-step-2Andrey Nering2017-01-051-0/+70
|\ | | | | Notifications - Step 2
| * Add pagination for notificationsAndrey Nering2017-01-031-2/+4
| |
| * Showing index in front of issue titleAndrey Nering2017-01-021-1/+1
| |
| * Notifications - Step 2Andrey Nering2016-12-301-0/+68
| |
* | UI config to toggle whether user email shows up in Explore Users (#336)Thiago Avelino2017-01-011-1/+1
|/ | | | | | | | | | | | | | | | | | * UI config to toggle whether user email shows up in Explore Users * Recommendation made by @tboerger https://github.com/go-gitea/gitea/pull/336/commits/66a1c59fe730eff019ce100673c6800cce7d102d#r94122732 * fixed typo, rename ShowUserEmailInExplore to ShowUserEmail * Fixed typo merged conflict * Hide email in the user profile page if you are active ShowUserEmail ref https://github.com/go-gitea/gitea/pull/336#issuecomment-269843725 * Please replace MustBool() with MustBool(true)
* Tab on user profile to show starred repos (#519)Andrey Nering2016-12-291-10/+15
| | | | | | | | | | | | | | * Tab on user profile to show starred repos * Make golint happy and use transactions on StarRepo function * x -> sess * Use sess.Close() instead of sess.Rollback() * Add copyright * Fix lint
* Added rel="noopener" to target="_blank" hrefs (#327)Bwko2016-12-021-1/+1
| | | | | | * Added rel="noopener" to target="_blank" hrefs * Replaced gogs.io/docs with docs.gitea.io
* Fixes xss, clickjacking & password autocompletionBwko2016-11-294-8/+8
|
* Update link on user’s profile avatar to avatar settings (#287)Matthias Loibl2016-11-281-1/+1
|
* Merge all pagination-templates into 'base/paginate'Kim "BKC" Carlbäcker2016-11-071-1/+1
| | | | to reduce code-duplicity
* Fix template nil errorUnknwon2016-08-141-1/+1
|
* Fix template error [CI SKIP]Unknwon2016-08-141-1/+1
|
* #3320 code cleanupUnknwon2016-08-071-2/+2
|
* Add support for federated avatars (#3320)Sandro Santilli2016-08-073-26/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* #3348 always use relative avatar link in the templateUnknwon2016-08-054-9/+8
|
* #1384 add pagination for repositoriesUnknwon2016-07-242-1/+7
|
* Refactor User.Id to User.IDUnknwon2016-07-244-6/+6
|
* Upgrade octicon to 4.3.0Unknwon2016-07-163-17/+17
|
* #2937 able to prohibit user loginUnknwon2016-07-161-0/+16
|
* Do not assume avatar needs be changed from gravatar.com (#3209)Sandro Santilli2016-06-271-6/+2
| | | | | | | | | | Always send user to settings screen to change avatar. Drops "change_custom_avatar" localized message, keeps "change_avatar" for the generic one. NOTE: only changes the en-US locale, as per https://github.com/gogits/gogs/wiki/Contributing-Code#those-we-do-not-accept NOTE: requires rebuild of bindata.go to fully see effects
* #1597 fix activitity feeds for pull requestsUnknwon2016-03-051-2/+8
|
* #1157 some avatar setting changesUnknwon2016-03-051-2/+2
| | | | - Allow to delete current avatar
* Render emojis in more places.Andrey Nering2016-03-022-8/+8
|
* #1821 add actions for close and reopen issuesUnknwon2016-02-221-0/+8
|
* fix #2454Unknwon2016-02-141-1/+1
|
* Use icon repo-forked instead of repo-lock for private, forked reposFlorian Kaiser2016-01-311-1/+1
|
* #2491 minor fix for sr on dashboardUnknwon2016-01-291-3/+12
|
* Minor fix for #2494Unknwon2016-01-281-1/+1
| | | | - Change tooltip size from mini to tiny in profile page
* URL fix for #2287Unknwon2016-01-151-9/+9
|
* hide section with user has no organizationsUnknwon2016-01-141-0/+2
|
* minor fix to #2383Unknwon2016-01-141-1/+1
| | | | - add tooltip for organization name in profile
* Added improvement from UnknwonExMex2016-01-141-1/+1
|