99 Commits (15c035775a9684cf409ec8bf8a082ae5293a03ab)

Author SHA1 Message Date
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 f946040fa9 #1891 attempt to fix expected invalid CSRF token
- Remove unused config settings `[picture] service`
8 years ago
Unknwon 8055a0bdac Post work for #2637
Improve test cases, config settings, also show SSH config settings on admin config panel.
8 years ago
Unknwon baaf6046a1 Minor fix for #2660 8 years ago
Josh Frye c27038e392 Test mailer button. Addresses #1531 8 years ago
Unknwon 3af1d3c581 #2633 fix removed config option 8 years ago
Unknwon 7ca1821725 fix #2416 8 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 eea2e05da6 minor fix on #1694 9 years ago
Antoine GIRARD 63cdee84d1 Fix admin configuration new ui 9 years ago
Unknwon 3fb1b6a608 drop oauth2 feature support 9 years ago
Unknwon 98108e379d #697 update locale and admin panel 9 years ago
Fernando San Julián 514ce712b0 admin config fix 9 years ago
Unknwon 4fca548ed1 update locale 9 years ago
Unknwon d02e45f985 better naming on #891 9 years ago
Unknwon 6a23252edc able to allow insecure certification of webhook for #891 9 years ago
Raphael Randschau 79f3281548 Add ShowRegistrationButton configuration option 9 years ago
Alexey Makhov a7662f4a39 fix error at admin/config 9 years ago
Unknwon 81a44e4cd0 fix API changes 10 years ago
Unknwon b375192352 fix tpl error 10 years ago
Unknwon 9bc63bda7d Finish all new admin pages. 10 years ago
Unknwon 5c4bc3c848 Huge updates!!!!! Be careful to merge!!!! 10 years ago
Unknown b2801a2e98 Fix #165 10 years ago
Unknown ad5ec45dd6 Fix #165 10 years ago
Unknown 302c863cda Fix #242 10 years ago
Unknown ab13a29cb5 Fix #209 10 years ago
Unknown 0970d6cc38 Log to different adapter according to level 10 years ago
Unknown 7cb5a15c9b Batch of mirror fixes 10 years ago
Unknown e7d8fadb08 Add disable gravatar option 10 years ago
Unknown 100cd181bc Add router log config option 10 years ago
Unknown 62d23e9154 HTTP no follow and offline mode 10 years ago
Bryan Johnson 34d18a19a3 Minor grammatical fix for Disable Registration feature 10 years ago
Unknown 57f84fb051 UPDATE DOCS 10 years ago
Unknown d2b53dd43b Add weibo oauth 10 years ago
Unknown eb803ec5eb Add transfer repository 10 years ago
crackcomm 5a07b5430e .admin-dl-horizontal 10 years ago
crackcomm 868d921f7b Description list instead of div's in admin Dashboard & Configuration. 10 years ago
Unknown cb05b8325c Update config option 10 years ago
FuXiaoHei 2a2f025388 change css name style 10 years ago
Unknown b9b82cfe47 Mirror updates 10 years ago
Unknown 6bc7ae971a Mirror fix 10 years ago
Unknown 97debac185 SSL enable config option 10 years ago
Unknown fd1831052c Update session 10 years ago
Unknown 7a1ff8636c Add config option: Picture cache path 10 years ago
Unknown f219ddcf4e Add log config panel in admin 10 years ago
Unknown d40499e7fa Finsih mail resend limit 10 years ago
Unknown e67653cf13 Bug fix 10 years ago
Unknown c1576b4c40 Add admin add user 10 years ago
Unknown f6596f11c4 All configuration reload-able 10 years ago