2
0
Commit Graph

281 Commits

Author SHA1 Message Date
Thomas Boerger
5d0735606e Fixed links to sdk docs 2016-11-07 16:10:32 +01:00
Thomas Boerger
57279e1766 Set correct doc url for go-sdk 2016-11-07 14:49:25 +01:00
Rémy Boulanouar
61ec6729e6 Change import reference to match gitea instead of gogs (#37) 2016-11-03 10:29:56 -02:00
Unknwon
6eda7a4d63 #3559 fix template error 2016-08-31 13:59:23 -07:00
Unknwon
e40f64e2c9 router/repo: code refactoring 2016-08-30 02:08:38 -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
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
Sandro Santilli
f213268f7e Use a gopher as default avatar (rather than the gravatar logo) (#3208)
Also changes the avatar from a jpeg to a png, to allow for
transparent background. The indexed png is also smaller in size.

Note that at the moment the default avatar is only used when
the user requested a custom avatar and the custom avatar file
is not found (should never happen).

In the future the default avatar could be used as a default
return when by-mail avatar lookups fail too (both gravatar
and libravatar support passing a default)
2016-06-27 18:12:30 +08:00
Kim Carlbäcker
b251031230 PDF-Previews in file-lists now working (#3000) 2016-04-26 21:48:44 -04:00
Unknwon
cdaad39e02 Fix ref comment from commit create empty feed 2016-03-11 05:11:58 -05:00
Unknwon
5158dbfde8 #1157 some avatar setting changes
- Allow to delete current avatar
2016-03-05 00:51:51 -05:00
Unknwon
69f420490d Make markdown as an independent module 2016-02-20 17:10:05 -05:00
Unknwon
cf76dca801 Fix inappropriate markdown post process end tag check
When <code> is nested inside <pre>, the next end tag token would not able to be the same
as outer-most start tag. So we only check outer-most start and end tag token to be the same.
2016-02-19 17:39:50 -05:00
Unknwon
970e514f4e #2650 fix possbility that use email as pusher user name
Remove the possibility of using email as user name when user actually push
through combination of email and password with HTTP.

Also refactor update action function to replcae tons of arguments with
single PushUpdateOptions struct.
And define the user who pushes code as pusher, therefore variable names shouldn't
be confusing any more.
2016-02-17 22:47:06 -05:00
Unknwon
354dd25700 Remove cache avatar support and add its tests 2016-02-14 23:14:55 -05:00
Unknwon
b52970cd3d Merge pull request #2406 from bkcsoft/feature/markdown-custom-url-scheme
Feature/markdown custom url scheme
2016-02-05 13:11:45 -05:00
Unknwon
3aaace1dc5 #2556 handle space in image URL 2016-02-04 22:51:40 -05:00
Unknwon
a7126a11d5 #2229 adjust URL verbose depth for reverse proxy sub-path 2016-01-31 15:38:20 -05:00
Kim "BKC" Carlbäcker
f852ab7ada Not working, but slightly better... 2016-01-27 21:48:57 +01:00
Kim "BKC" Carlbäcker
93d56ee5af Custom URL-Schemas for Markdown 2016-01-27 02:02:03 +01:00
Kim "BKC" Carlbäcker
49bfb31540 Made Sanitizer-setup cleaner 2016-01-14 03:00:05 +01:00
Kim "BKC" Carlbäcker
125aa91d30 Checklist-rendering implemented 2016-01-13 13:25:52 +01:00
Unknwon
ee97f04f27 #2287 Truncate repository name if too long 2016-01-11 20:41:43 +08:00
Unknwon
0c2a30fc7c fix markdown autolink error 2016-01-09 10:59:04 +08:00
Unknwon
535758a58d #2185 fall back to use custom chardet lib 2015-12-31 22:13:47 -05:00
Unknwon
035b4e4415 #2282 fast detection of utf-8 2015-12-27 17:02:36 -05:00
Unknwon
53398d6473 #2283 set text/plain for non-binary files in raw mode 2015-12-25 05:45:07 -05:00
Unknwon
a54e0bff4f #2282 fix utf-8 recognized as windows-1252 2015-12-25 05:25:47 -05:00
Unknwon
9e27955942 #2185 use Go sub-repo to detect encoding 2015-12-13 19:56:33 -05:00
Unknwon
1b4291aced #2161 fix wrong regexp 2015-12-12 16:13:18 -05:00
Unknwon
22b787e0da #2161 No issue linking in commits when issue number in brackets 2015-12-12 16:01:54 -05:00
Unknwon
4b54ceb402 fix #1829 and fix #890 2015-12-04 21:30:33 -05:00
Unknwon
1b650fca77 minor fix markdown post process 2015-11-24 19:29:35 -05:00
Unknwon
66fecedad3 more link fix 2015-11-24 19:28:24 -05:00
Unknwon
f354dd37d0 fix #2020 2015-11-24 18:49:34 -05:00
Unknwon
6686001295 fix possible panic 2015-11-21 21:06:11 -05:00
Unknwon
7a264562e2 HTML render fix 2015-11-20 05:37:51 -05:00
Unknwon
0c50b27298 fix #1873 2015-11-20 01:52:11 -05:00
Unknwon
8b0e58c1df minor fix for #1949 2015-11-15 17:37:26 -05:00
Howl
aa7956c1f7 Safely detect urlPrefix in the format /:owner/:repo 2015-11-15 22:22:25 +01:00
Howl
d9e2a31677 Fix bad issue links in non-readme markdown files 2015-11-15 12:04:43 +01:00
Unknwon
9fe7b7125d Show custom avatars in commits 2015-11-13 17:10:25 -05:00
Unknwon
6b9617443d fix #1572 fix file histrory paging issue 2015-11-10 16:46:17 -05:00
Unknwon
b34fccd2c7 fix 1540 and experimental SSH server support 2015-11-08 16:59:56 -05:00
Unknwon
bec3bc723a #1433 images with links in Markdown
- #1904 minor fix on image link
2015-11-06 11:10:27 -05:00
Unknwon
13fb07271d #1078 not show bin when rename a file 2015-11-03 09:52:17 -05:00
Unknwon
ae339c4642 #1657 allow forcing all private repos 2015-10-25 04:26:26 -04:00
Unknwon
87bcab99a4 unified API error response 2015-10-08 20:36:07 -04:00
Sergio Benitez
6b1ae04f0c Commit messages now rendered with line breaks and prefix spacing. 2015-09-18 19:02:23 -07:00