45 Commits (587d870f1edc51bf86bd0c213424d418702c9a24)

Author SHA1 Message Date
Unknwon 99385db0c4 #3320 code cleanup 8 years ago
Sandro Santilli 90dd0657b5 Add support for federated avatars (#3320)
* 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
8 years ago
Unknwon a2f13eae55 #1157 some avatar setting changes
- Allow to delete current avatar
8 years ago
Unknwon d0b0d24f22 #2154 disable change user for non-local users
- #2153 remove require for gravatar
9 years ago
Unknwon 3d5d61778a #1938 #1374 disable password change for non-local users 9 years ago
Adam Strzelecki da2585c11e Indent all templates with tabs
This commit improves templates readability, since all of them use consistent
indent with all template command blocks indented too.

1. Indents both HTML containers such as <div>, <p> and Go HTML template blocks
   such as {{if}} {{with}}

2. Cleans all trailing white-space

3. Adds trailing last line-break to each file
9 years ago
Unknwon 4795fa01d8 fix #2101 9 years ago
Unknwon 3fb1b6a608 drop oauth2 feature support 9 years ago
Unknwon 52ec80fa18 finish all new user settings UI 9 years ago
Unknwon 85f34ba538 new user profile settings UI
Signed-off-by: Unknwon <u@gogs.io>
9 years ago
Unknwon 00767a0522 finish new org settings page 9 years ago
Unknwon 23f42d92c9 add webhook recent deliveries 9 years ago
Unknwon 062adbed8a add confirmation to delete ssh key 9 years ago
Unknwon 03b85b73af token recent activity 9 years ago
Unknwon 928d9fc1d4 fix access token style 9 years ago
Unknwon 4c7b6414eb new access token UI 9 years ago
Unknwon 2493454587 new delete account UI and password confirmation 9 years ago
Unknwon 39a3b768bc #334: Add Deployment Key Support 9 years ago
Unknwon d76f11c6f1 fix #1156 9 years ago
Unknwon caf7618ea6 #1098 Hide gravatar email field if gravatar is disabled (or offline mode) 9 years ago
Unknwon 1654e9ecab templates/user/settings/emial.tmpl: little fix on UI
- routers/user: little code format
- conf/locale: update French locale
9 years ago
Peter Smit 7759b9ee6e Remove the "PHP" style formatting function
The "PHP" formatting function doesn't add anything, except an undocumented date format.

All usages in the templates have been replaced with DateFmtShort and DateFmtLong for convenience.
10 years ago
Unknwon 8e238058b2 public/ng/css: code fix on #895
- templates/user/settings: fix email panel nav highlight
10 years ago
Alexey Makhov e43bd15b96 fix settings/email html&css 10 years ago
Peter Smit fd70f9ec1b Fix #799 by adding a tooltip for all dates in all settings/panels 10 years ago
Peter Smit 8b31be43c6 Forgot to i18n "Primary" 10 years ago
Peter Smit 21dbcb7c77 Create English locale keys for multiple e-mails feature
Also, change all current 'emails' to 'e-mails'.
Still todo: some CSS for the user/settings/email page, but that is not my specialty
10 years ago
Peter b033f2f535 Finish method for having multiple emails/user.
All basics are implemented. Missing are the right (localized) strings
and the page markup could have a look at by a frontend guy.
10 years ago
Unknwon 9c2120eb34 fix #675 10 years ago
Unknwon ef275ebf62 more on change avatar 10 years ago
Unknwon 55dfe2c978 custom avatar upload 10 years ago
Unknwon 8c9338a537 add personal access token panel #12 10 years ago
Unknwon e0de6cb5ad work on #616 and update locales 10 years ago
Unknwon 49193bebd2 UI: Confirmation box 10 years ago
Unknwon ad2ab6d214 Add modal to change username
Signed-off-by: Unknwon <joe2010xtmf@163.com>
10 years ago
Unknwon 7ba9257a7f Add suburl support 10 years ago
Martin van Beurden 0055cbd365 Allow Gogs to run from a suburl behind a reverse proxy. e.g. http://mydomain.com/gogs/
Conflicts:
	modules/setting/setting.go

Conflicts:
	templates/repo/release/list.tmpl
	templates/user/dashboard/dashboard.tmpl

Conflicts:
	routers/repo/setting.go
10 years ago
Unknwon b9560374cd UI fix 10 years ago
Unknwon 8829174574 Finish new admin users pages 10 years ago
Unknwon 81287ba022 Mirror issue fix 10 years ago
Unknwon 78defd238c Page: Manage social accounts 10 years ago
Unknwon 9a1d5d2489 Finish new web hook pages 10 years ago
Unknwon 9820b8e134 Finish new hooks list page 10 years ago
Unknwon 5c4bc3c848 Huge updates!!!!! Be careful to merge!!!! 10 years ago
Unknwon 8dd07c0ddd New UI merge in progress 10 years ago