2
0
Commit Graph

702 Commits

Author SHA1 Message Date
Andrey Nering
f3f2598e23 Do not show non-image attachment in a <img> tag. Fixes #3215 (#3311) 2016-08-11 16:16:36 -07:00
Odin Ugedal
2ed68857cd Add initial support for unix sockets (#2852) 2016-08-11 14:46:33 -07:00
Unknwon
97d54ac077 #3408 minor code fix 2016-08-11 07:41:01 -07:00
Sandro Santilli
4b6433d4dd Do not show the "Sign up for free" button in issue tracker (#3408)
* Do not show the "Sign up for free" button in issue tracker

The "Sign in to comment" link is good enough and will correctly
show or not show the "Sign Up" button link for those not having
an account already.

Fixes #3407 (link to nowhere when registration is disabled)

* Move html from translation to template

* Remove extra space in `{{ .SignInLink }}`.
2016-08-11 07:36:23 -07:00
Unknwon
ccf1b7381a Update locales [CI SKIP] 2016-08-10 11:54:52 -07:00
Unknwon
c94b4f69fc #3091 show Git configs on admin panel 2016-08-10 11:01:42 -07:00
Thibault Meyer
34ed7d24a1 Feature #3398: Redefine global mirror interval (#3409)
* add mirror::GLOBAL_INTERVAL on app.ini

* rename key to DEFAULT_INTERVAL

* add key on default app.ini + move code
2016-08-09 23:47:16 -07:00
Unknwon
378f119181 #3091 add config option for Git GC 2016-08-09 17:24:32 -07:00
Unknwon
f15cd4c442 #3325 use correct word for .gitignore 2016-08-09 12:16:21 -07:00
Unknwon
90d24701ae #3320 code cleanup 2016-08-07 11:01:47 -07:00
Sandro Santilli
82d2c65308 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
2016-08-07 10:27:38 -07:00
Andrey Nering
6eee0a680e 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)
2016-08-07 09:49:47 -07:00
Unknwon
53a0407083 #3348 always use relative avatar link in the template 2016-08-05 12:12:54 -07:00
Unknwon
6bff2e63c2 Update locales [CI SKIP] 2016-08-03 12:24:53 -07:00
Unknwon
818df278ff #2162 improve repository advance options UI display
Enable/disable input based on user chosen options for wiki and issue tracker.
2016-07-31 01:26:43 +08:00
Unknwon
1db9d97a39 Update locales 2016-07-30 22:28:23 +08:00
Unknwon
3f60d71e08 #1601 support delete issue comment 2016-07-26 02:48:17 +08:00
Unknwon
34661bcdc8 repo/settings/options: take naming style examples out of locale string 2016-07-25 16:55:51 +08:00
Unknwon
631af92670 #1384 add pagination for repositories 2016-07-24 14:32:46 +08:00
Unknwon
11e7ac2a93 Use struct for UI settings 2016-07-24 00:23:54 +08:00
Unknwon
0615474a72 conf: change default mirror checking interval to 10m 2016-07-23 20:20:09 +08:00
Unknwon
f62068102d #3076 detect invalid tag name git error 2016-07-23 15:59:19 +08:00
Unknwon
0a9bb4de20 Update locales [CI SKIP] 2016-07-22 22:21:26 +08:00
Unknwon
aaf133c4c1 Update locales and .gopmfile 2016-07-17 09:25:30 +08:00
Unknwon
27778760b9 #2937 able to prohibit user login 2016-07-16 10:22:16 +08:00
Atakan Goktepe
11eee28a11 Changed Turkish language name to 'Türkçe' (#3268) 2016-07-15 13:44:49 +08:00
Kim Carlbäcker
ba622c22cd [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
2016-07-12 06:21:26 +08:00
Unknwon
7628a21d5d Update locale 2016-07-09 23:59:13 +08:00
Unknwon
6ccc2f3acb Minor fix for #3246 2016-07-09 13:42:05 +08:00
Pablo Saavedra
ca10c06350 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
2016-07-09 13:22:28 +08:00
Pheng Heong TAN
e7d4650541 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.
2016-07-09 13:13:57 +08:00
Unknwon
da9ed19994 Use SecurityProtocol to replace UseSSL in LDAP config
Initially proposed by #2376 and fixes #3068 as well.
2016-07-08 07:25:09 +08:00
Unknwon
631defa243 #3058 #3059 support correct page size and link header 2016-07-04 17:27:06 +08:00
Unknwon
3dc8fb6862 #2968 use HTTP_ADDR to replace localhost 2016-07-02 18:54:48 +08:00
Unknwon
3fea671609 #2947 fix inapproriate comment 2016-07-02 18:23:15 +08:00
Unknwon
cc827ff310 #3078 update default app.ini 2016-07-01 22:27:52 +08:00
wanglinzhizhi
94c12c6261 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
2016-06-30 04:04:15 +08:00
Unknwon
de14bdcc2f #3174 genetate bindata 2016-06-29 23:25:41 +08:00
Andrey Nering
e87fcdf88e Re-work MAX_DIFF_LINES: supress diff per file, not the whole diff (#3174) 2016-06-29 23:11:00 +08:00
Sandro Santilli
27c4af7cc8 Fix typo in english/US message (#2938)
"is activate" -> "is activated"
2016-06-28 00:24:06 +08:00
Andrey Nering
55c7508b99 Localize collaboration settings. (#3100)
Closes #2764
2016-06-28 00:22:30 +08:00
Richard Bukovansky
0ddb5e6253 Adding myself (#3084)
As you included Czech translation to official distribution, I think I'm missing here.
I know, selfish as hell... ;)
2016-06-27 15:59:33 +08:00
Sandro Santilli
9f8314e125 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
2016-06-27 01:51:09 +08:00
Unknwon
6a6dcb1542 Update locale 2016-06-12 18:03:51 +08:00
Unknwon
8470f67eb6 #2954 use text/plain as default email content format 2016-05-30 01:32:01 -07:00
Unknwon
6330503f8c locale: update Czech 2016-05-12 14:31:06 -04:00
Unknwon
8e4ee6dba2 Add Czech support 2016-05-11 12:00:47 -04:00
Unknwon
8eb1bf4a90 models/release: filter input to prevent command line argument vulnerability 2016-05-06 15:40:41 -04:00
Unknwon
a7fbe69199 Add new language support
- Update language choose dropdown to fit more languages
2016-04-25 13:40:23 -04:00
Cosmin Stroe
06699f3c18 Support alphanumeric issue style (ABC-1234) for external issue tracker (#2992) 2016-04-22 18:28:08 -04:00