2
0
Commit Graph

412 Commits

Author SHA1 Message Date
Andrey Nering
154d9efa9e Add Content-Disposition header for downloads (#3439) 2016-08-11 16:53:40 -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
Thibault Meyer
fc7a58710b Fix #3314: Cannot edit release with tag name contains slash (#3434) 2016-08-11 13:45:42 -07:00
Unknwon
17a339a723 #2780 code clean up 2016-08-11 11:35:46 -07:00
Unknwon
241d1e13a0 #3233 code cleanup and minor issue fix 2016-08-11 10:53:51 -07:00
Unknwon
9c182cac07 Fix only user has repo write access can comment 2016-08-11 06:22:56 -07:00
Thibault Meyer
8467154168 Fix typo CacheInternal -> CacheInterval (#3432) 2016-08-11 05:59:11 -07:00
Unknwon
8779261ccc #2907 Add commit timestamp to webhook 2016-08-09 18:28:06 -07:00
Unknwon
2cc3db6af7 #3007 update git-module require version 2016-08-09 17:15:48 -07:00
Unknwon
814445d8ca #3406 fix regression of MustEnableIssues check 2016-08-09 09:39:55 -07:00
Unknwon
f7733cb908 Fix 404 when comment on pulls and not using interal issue tracker 2016-08-08 11:29:50 -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
ee904cfb38 #2593 allow render raw content
Use URL query parameter render=1 to render content in raw mode.
2016-08-05 18:34:13 -07:00
Unknwon
8fbc5f27e5 #2162 completely disable builtin issue tracker when enable external tracker 2016-08-04 16:32:02 -07:00
Unknwon
8b01b7cb01 #3290 better code structure and batch minor improvements 2016-08-03 11:51:22 -07:00
Unknwon
3f60d71e08 #1601 support delete issue comment 2016-07-26 02:48:17 +08:00
Unknwon
48b0d21673 Refactor User.Id to User.ID 2016-07-24 01:08:22 +08:00
Unknwon
6680e32fee Bump version 2016-07-22 21:52:39 +08:00
Unknwon
1712b3418d Minor fix for go vet 2016-07-16 15:15:00 +08:00
Unknwon
dcb0a41e41 #2854 fix no mail notification when issue is closed/reopened 2016-07-16 00:36:39 +08:00
Unknwon
bb71191be5 #2709 validate username attribute fetched from LDAP 2016-07-12 07:07:57 +08:00
Unknwon
2a009f1fb5 #2586 bump git-module requirement 2016-07-12 06:20:09 +08:00
Unknwon
f284fd16d6 Update glide.lock 2016-07-11 07:57:15 +08:00
Unknwon
6a12d4db66 #518 update git-module require version 2016-06-30 02:21:23 +08:00
Unknwon
d25d02e34b Update glide.yaml 2016-06-27 23:40:36 +08:00
Unknwon
4c55ca91dd #2958 Update dep version 2016-06-12 17:54:22 +08:00
Alex Myasoedov
211ef71604 gogs dump tempdir flag (#3086) 2016-05-23 17:10:05 -07:00
Unknwon
11b5481756 #3045 fix DEPRECATED Action signature erorr 2016-05-12 14:32:28 -04:00
Unknwon
358d99f822 Add route for #2846 2016-03-21 10:49:46 -04:00
Unknwon
c06966648d #1692 add CRUD issue APIs
- Fix go-gogs-client#10
- Related to #809
2016-03-13 23:20:22 -04:00
Unknwon
838956a918 Convert all API handers to use *context.APIContext 2016-03-13 18:49:16 -04:00
Unknwon
579b59b60d #1891 attempt to fix invalid csrf token 2016-03-12 20:56:03 -05:00
Unknwon
46ce95721d #1286 #2098 Alpha support for custom templates
No guarantee for compatibility with future changes
2016-03-12 13:48:34 -05:00
Unknwon
c6773fa169 fix #2804 2016-03-11 17:12:37 -05:00
Unknwon
e84cef16cf #13 finish user and repository search
Both are possible on explore and admin panel
2016-03-11 15:33:12 -05:00
Unknwon
529f8d9b4b Rename module: middleware -> context 2016-03-11 11:56:52 -05:00
Unknwon
11d37926d2 Some minor changes 2016-03-06 16:40:04 -05:00
Unknwon
c943944473 Minor fix for #2772 2016-03-06 15:37:49 -05:00
Tamás Molnár
32a8f458e6 Added: Ability to delete org avatar. 2016-03-06 17:36:30 +01:00
Unknwon
89068533f2 #1146 finish new access rights for collaborators 2016-03-05 20:45:23 -05:00
Unknwon
68f78d79ef #1146 finsih UI work for access mode of collaborators
Collaborators have write access as default, and can be changed via repository
collaboration settings page to change between read, write and admin.
2016-03-05 18:08:42 -05:00
Unknwon
5158dbfde8 #1157 some avatar setting changes
- Allow to delete current avatar
2016-03-05 00:51:51 -05:00
Unknwon
a407ea927c #1597 support pull requests in same repository 2016-03-04 15:43:01 -05:00
Unknwon
359ceda51b Minor fixes for #2746 2016-03-04 13:32:17 -05:00
Josh Frye
2bb203393e Update delete wiki page route 2016-03-04 09:26:52 -05:00
Josh Frye
7608a650c8 Add ability to delete single wiki pages. 2016-03-04 09:26:52 -05:00
Unknwon
be385c12f7 Allow setting git operations timeouts
- Migrate: #2704 #2653
- Clone: #2701
- Mirror, Pull
2016-02-29 19:29:49 -05:00
Unknwon
4a378f95f8 Post work for #2637
Improve test cases, config settings, also show SSH config settings on admin config panel.
2016-02-27 20:48:39 -05:00