2
0
Commit Graph

1201 Commits

Author SHA1 Message Date
Unknwon
3b490bb4de Add new dependency 2016-08-11 17:12:55 -07:00
Andrey Nering
d462d04d41 On showing diff/file, use the tab_width specified on .editorconfig, if any (#3241)
Closes #3182
2016-08-11 17:07:09 -07:00
Andrey Nering
f3f2598e23 Do not show non-image attachment in a <img> tag. Fixes #3215 (#3311) 2016-08-11 16:16:36 -07:00
Thibault Meyer
4a7d79a68c Fix #3321: commit tag shortener (#3418)
* Fix #3321: commit tag shortener

* Check short commit

* remove debug

* Edit unit tests

* Show 10-char short SHA
2016-08-11 15:34:00 -07:00
Unknwon
19ea718eeb #2852 code cleanup 2016-08-11 14:55:10 -07:00
Odin Ugedal
2ed68857cd Add initial support for unix sockets (#2852) 2016-08-11 14:46:33 -07:00
Unknwon
241d1e13a0 #3233 code cleanup and minor issue fix 2016-08-11 10:53:51 -07:00
Andrew
12f0f252ee Wiki mirroring implementation (#3233)
* Implement wiki mirroring, add Update mirrors operation to admin dashboard

* bindata.go update after merge

* Implement checking Git repo endpoint existence, support for BB included

* Remove admin dashboard operation
Fix bindata.go

* Apply gofmt to repo model file

* Try to remove bindata from PR

* Revert accepted wiki names change in favor of better system

* Remove unused imports
2016-08-11 10:18:51 -07:00
Unknwon
97d54ac077 #3408 minor code fix 2016-08-11 07:41:01 -07:00
Thibault Meyer
8467154168 Fix typo CacheInternal -> CacheInterval (#3432) 2016-08-11 05:59:11 -07:00
Unknwon
ccf1b7381a Update locales [CI SKIP] 2016-08-10 11:54:52 -07:00
Thibault Meyer
aaf5e5d9f2 Fix #3420: Bad commit URL generation (#3424) 2016-08-10 11:35:06 -07:00
Unknwon
c94b4f69fc #3091 show Git configs on admin panel 2016-08-10 11:01:42 -07:00
Unknwon
2aff46601b Update bindata.go [CI SKIP] 2016-08-09 23:58:15 -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
722427e216 #3158 skip RUN_USER check on Windows 2016-08-09 17:41:18 -07:00
Unknwon
378f119181 #3091 add config option for Git GC 2016-08-09 17:24:32 -07:00
Unknwon
279b1cd419 Little code refactoring 2016-08-09 12:56:00 -07:00
Unknwon
f15cd4c442 #3325 use correct word for .gitignore 2016-08-09 12:16:21 -07:00
Unknwon
6e987c5d4d #3399 500 for upstream pulls page if user has forked repository 2016-08-08 13:02:55 -07:00
Unknwon
db02619c00 #2825 early response 200 when ?go-get=1 2016-08-07 14:29:16 -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
Unknwon
99728407d4 #3393 fix missing sub-url prefix in relative avatar link 2016-08-07 10:13:05 -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
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
7307a2c557 Add org.getUserTeams to reduce redundant code 2016-07-24 18:09:45 +08:00
Unknwon
631af92670 #1384 add pagination for repositories 2016-07-24 14:32:46 +08:00
Unknwon
48b0d21673 Refactor User.Id to User.ID 2016-07-24 01:08:22 +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
21530f0437 #3107 fix mention regex does not include dash 2016-07-23 17:29:34 +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
Dennis Chen
ade2b40c6b avatar: make custom and generated avatars equal (#3301)
Sets all avatars to use PNG image format.
Keeps avatars consistent at 290x290px resolution.

Signed-off-by: Dennis Chen <barracks510@gmail.com>
2016-07-21 15:31:14 +08:00
Unknwon
aaf133c4c1 Update locales and .gopmfile 2016-07-17 09:25:30 +08:00
Unknwon
1712b3418d Minor fix for go vet 2016-07-16 15:15:00 +08:00
Unknwon
916a896f01 Upgrade octicon to 4.3.0 2016-07-16 12:45:13 +08:00
Unknwon
27778760b9 #2937 able to prohibit user login 2016-07-16 10:22:16 +08:00
Unknwon
dcb0a41e41 #2854 fix no mail notification when issue is closed/reopened 2016-07-16 00:36:39 +08:00
Unknwon
3816d7b42a models/repo: remove redundant info for some repo methods
RepoLink -> Link, RepoRelLink -> RelLink, FullRepoLink -> FullLink
2016-07-15 21:53:43 +08:00
Unknwon
63b3db9ad1 #2798 fix assign operation not take effect 2016-07-15 17:06:17 +08:00
Unknwon
ef9f1463e1 Update bindata and CSS 2016-07-15 14:13:30 +08:00
Unknwon
bb71191be5 #2709 validate username attribute fetched from LDAP 2016-07-12 07:07:57 +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