694 Commits (15b0cbe3181b7ebd1a9732790565175cd8a58f3a)

Author SHA1 Message Date
Unknwon 9e8a8867ea #3325 use correct word for .gitignore 8 years ago
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
Andrey Nering 2772791fda Improve diff highlight (#3390)
- Try to reduce memory allocations
- Add possibility to disable diff highlight (can improve performance for large diffs)
- Tweaking with cost for prettier (cleaner) diffs
- Do not calculate diff when the number of removed lines in a block is not equal to the number of added lines (this usually resulted in ugly diffs)
8 years ago
Unknwon 50422f1fc2 #3348 always use relative avatar link in the template 8 years ago
Unknwon ee28fd9255 Update locales [CI SKIP] 8 years ago
Unknwon 991ce42c48 #2162 improve repository advance options UI display
Enable/disable input based on user chosen options for wiki and issue tracker.
8 years ago
Unknwon 3e22ae3412 Update locales 8 years ago
Unknwon 899e799459 #1601 support delete issue comment 8 years ago
Unknwon 2295fafb34 repo/settings/options: take naming style examples out of locale string 8 years ago
Unknwon e74630ae3b #1384 add pagination for repositories 8 years ago
Unknwon 46e96c008c Use struct for UI settings 8 years ago
Unknwon 4e822c1911 conf: change default mirror checking interval to 10m 8 years ago
Unknwon c912494609 #3076 detect invalid tag name git error 8 years ago
Unknwon 599716bb1b Update locales [CI SKIP] 8 years ago
Unknwon 5aa2bf86f4 Update locales and .gopmfile 8 years ago
Unknwon c083d76567 #2937 able to prohibit user login 8 years ago
Atakan Goktepe 32ec4734f9 Changed Turkish language name to 'Türkçe' (#3268) 8 years ago
Kim Carlbäcker f4ab50501e [Fix] Don't display way too large files #1513 (#3253)
* Add MaxDisplayFileSize setting

* Don't show files that are too large

* Localized FileTooLarge

* Change IsFileTooBig => IsFileTooLarge
8 years ago
Unknwon a1f717f65a Update locale 8 years ago
Unknwon 9fcf66f0e0 Minor fix for #3246 8 years ago
Pablo Saavedra 98b152030d The pruning for the synchronized mirrors is a option now. Default value: enable_prune = true (#3246)
Executed go fmt

getEngine() not handles DB parameters (#2972) (#2974)

Uses .AllCols() for Update in updateMirror()

Spanish traslation removed

Fixed a wrong way to ommit the --prune option in process.ExecDir() for MirrorUpdate function
8 years ago
Pheng Heong TAN 467d7dacb6 Modify behaviour of repo-delete. (#3232)
Re: issues gogits/gogs#2863 and gogits/gogs#3231

As a result of modifications to the contents of the conf folder, `make bindata`
was run, causing an update to bindata.go.

Meta
-----
This commit will be rebased onto the 'develop' branch.
8 years ago
Unknwon 401bf944ef Use SecurityProtocol to replace UseSSL in LDAP config
Initially proposed by #2376 and fixes #3068 as well.
8 years ago
Unknwon 4b25bdfbc4 #3058 #3059 support correct page size and link header 8 years ago
Unknwon 6aa00f7bcf #2968 use HTTP_ADDR to replace localhost 8 years ago
Unknwon f485fcde96 #2947 fix inapproriate comment 8 years ago
Unknwon 6f6b37f148 #3078 update default app.ini 8 years ago
wanglinzhizhi 927d9f092b port 25 do not work, and port 465 is right (#3145)
QQ STMP host port is 465

host = smtp.qq.com:465

and need the Authorized
8 years ago
Unknwon 6f7276278d #3174 genetate bindata 8 years ago
Andrey Nering 743d22669a Re-work MAX_DIFF_LINES: supress diff per file, not the whole diff (#3174) 8 years ago
Sandro Santilli d4aaef90e6 Fix typo in english/US message (#2938)
"is activate" -> "is activated"
8 years ago
Andrey Nering 6efb1e5626 Localize collaboration settings. (#3100)
Closes #2764
8 years ago
Richard Bukovansky 04592c385b Adding myself (#3084)
As you included Czech translation to official distribution, I think I'm missing here.
I know, selfish as hell... ;)
8 years ago
Sandro Santilli 76a0e43e88 Do not assume avatar needs be changed from gravatar.com (#3209)
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
8 years ago
Unknwon 26342b0c24 Update locale 8 years ago
Unknwon 8df3ba96f3 #2954 use text/plain as default email content format 8 years ago
Unknwon 8a2347592d locale: update Czech 8 years ago
Unknwon fbf43c31e5 Add Czech support 8 years ago
Unknwon 0a78d99a4d models/release: filter input to prevent command line argument vulnerability 8 years ago
Unknwon 7049cb9d97 Add new language support
- Update language choose dropdown to fit more languages
8 years ago
Cosmin Stroe ba314a7a36 Support alphanumeric issue style (ABC-1234) for external issue tracker (#2992) 8 years ago
Unknwon 3257df0da3 Update locales 8 years ago
l2dy e75a1444af Update ISC license 8 years ago
Unknwon 5ec8ef0230 Update locales 8 years ago
Unknwon 3fb4f7f498 Prepare release 8 years ago
Unknwon c79774e8d4 Update locales 8 years ago
Unknwon 8966f5635d Merge pull request #2823 from zacheryph/feature/local-only-password-reset
Prevent `Forgot Password` for non local users
8 years ago
Zachery Hostens 63e21c146a ensure we don’t try changing LDAP passswords 8 years ago
Unknwon 820be19cf5 Merge pull request #2796 from saboya/custom_app_data_path
Making AppDataPath customizable.
8 years ago