55 Commits (3a91ac51a93aa6e352896048ce37c01227b42055)

Author SHA1 Message Date
Bo-Yi Wu 5cc275b1de feat: add git version on admin panel. (#921) 7 years ago
derSuessmann 51d578ff33 Add Keep email private (see issue #571). (#571)
- 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.
8 years ago
Lunny Xiao 727675dd46 fix config session missing data row & resolved #517 (#549) 8 years ago
Lunny Xiao 96c201273e
resolved #517: fix admin ui data row missing 8 years ago
Thibault Meyer 6a81632e36 Fix typo CacheInternal -> CacheInterval (#3432) 8 years ago
Unknwon b85927e488 #3091 show Git configs on admin panel 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 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 9 years ago
Unknwon 7ca1821725 fix #2416 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 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 10 years ago
Unknwon 6a23252edc able to allow insecure certification of webhook for #891 10 years ago
Raphael Randschau 79f3281548 Add ShowRegistrationButton configuration option 10 years ago
Alexey Makhov a7662f4a39 fix error at admin/config 10 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