152 Commits (90237d8abd0e6479c1464ac0f32fff6a2ce4a0b4)

Author SHA1 Message Date
Nico Mandery 6ade13e86e serve video files using the HTML5 video tag (#418)
* serve video files using the HTML5 video tag

* lint fix: add comment to IsVideoFile
8 years ago
Lunny Xiao d771e978a1 Don't use custom PBKDF2 function (#382) 8 years ago
Lunny Xiao 94da472717 Golint fixed for modules/setting (#262)
* golint fixed for modules/setting

* typo fixed and renamed UNIXSOCKET to UnixSocket
8 years ago
Lunny Xiao fb3bb69ec6 golint fixed for modules/base 8 years ago
Thibault Meyer ddee4c8b58
Normalize files with gofmt 8 years ago
Sandro Santilli 4247304f5a Update import paths from github.com/go-gitea to code.gitea.io (#135)
- Update import paths from github.com/go-gitea to code.gitea.io
- Fix import path for travis

See https://docs.travis-ci.com/user/languages/go#Go-Import-Path
8 years ago
Matthias Loibl 95d4cd9292
Make long godoc comment 2 lines 8 years ago
Matthias Loibl d417aedcfa
Add tests for StringsToInt64s() & Int64sToStrings() 8 years ago
Matthias Loibl 86c32f2706
Use TruncateString(sha1,10) in ShortSha and deprecate it. 8 years ago
Matthias Loibl 030ba2894f
Add tests for EllipsisString() and fix bug if param length < 3 8 years ago
Matthias Loibl f81711f40d
Test AvatarLink and refactor with tests passing 8 years ago
Matthias Loibl 11c9160cd3
Start to add tests for modules/base/tool 8 years ago
Rémy Boulanouar 2d68bd1ef9 Change import reference to match gitea instead of gogs (#37) 8 years ago
Unknwon dadd35b636 #3559 fix template error 8 years ago
Unknwon 780cc2d110 router/repo: code refactoring 8 years ago
Thibault Meyer 7eafe3213f Fix #3321: commit tag shortener (#3418)
* Fix #3321: commit tag shortener

* Check short commit

* remove debug

* Edit unit tests

* Show 10-char short SHA
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
Sandro Santilli 8a248696e9 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)
8 years ago
Kim Carlbäcker 3df8eb60e3 PDF-Previews in file-lists now working (#3000) 8 years ago
Unknwon 5267dce210 Fix ref comment from commit create empty feed 8 years ago
Unknwon a2f13eae55 #1157 some avatar setting changes
- Allow to delete current avatar
8 years ago
Unknwon d5a3021a7d Make markdown as an independent module 8 years ago
Unknwon 58e004f7da Remove cache avatar support and add its tests 8 years ago
Kim "BKC" Carlbäcker 1ab8a60d73 Not working, but slightly better... 9 years ago
Kim "BKC" Carlbäcker 3a9fd81f59 Custom URL-Schemas for Markdown 9 years ago
Kim "BKC" Carlbäcker a1a4f1103c Made Sanitizer-setup cleaner 9 years ago
Kim "BKC" Carlbäcker 8e09e03127 Checklist-rendering implemented 9 years ago
Unknwon f43cc90841 #2287 Truncate repository name if too long 9 years ago
Unknwon 4993ab1a76 #2185 fall back to use custom chardet lib 9 years ago
Unknwon 44637f03cc #2282 fast detection of utf-8 9 years ago
Unknwon 93f03707a7 #2283 set text/plain for non-binary files in raw mode 9 years ago
Unknwon 85af36332b #2282 fix utf-8 recognized as windows-1252 9 years ago
Unknwon 95f9c85bcc #2185 use Go sub-repo to detect encoding 9 years ago
Unknwon 7f9598141b fix #2020 9 years ago
Unknwon 1d57f0d64f Show custom avatars in commits 9 years ago
Unknwon c8d92fad30 #1595 pushing new branch will rereference issues in previous branch 9 years ago
Hongcai Deng e4d4662074 add regexp to restrict `<code class=""></code>` 9 years ago
Hongcai Deng 357c002c03 add allow attribute `class` to `<code>` 9 years ago
Unknwon a329bbc215 new org dashboard issues 9 years ago
Unknwon 6c2536b89c fix timezone 9 years ago
Unknwon a5b09b30d0 print time to debug 9 years ago
Unknwon 390027496c #1500 use UTC for TimeSince 9 years ago
Unknwon 133b19d0c5 finish view comments on issue page 9 years ago
Unknwon 922f3f3062 finish create issue with labels 9 years ago
Unknwon b72e75e522 #1024: OFFLINE_MODE Still Uses Gravatar 9 years ago
Peter Smit 7759b9ee6e Remove the "PHP" style formatting function
The "PHP" formatting function doesn't add anything, except an undocumented date format.

All usages in the templates have been replaced with DateFmtShort and DateFmtLong for convenience.
10 years ago
Unknwon ee6786216a modules/base: clean code with #838 10 years ago
Unknwon 9ee80e3e54 fix compile error 10 years ago
Mageti e321469884 remove unused code in BasicAuthDecode 10 years ago
Mageti b7ebbb4064 Correction for #723
Correction for #723
Bug was : decode failed if the password contains ```:```
10 years ago
Andrew Burns 35b02997f8 Fix Gravatar images in web view (like commit listing)
Related to #700

In the original bug report it was referencing only the sytem avatar images for setup users (like in the header); however the problem also persists with things like commit history.

This commit fixes the `tool.AvatarLink` function so that it also uses the already existing `avatar.HashEmail` function.

I also refactored the `tool.AvatarLink` method some to make the control flow more apparent and adhere better to DRY (there were multiple calls to the `EncodeMd5` function that the `HashEmail` function call replaced, now there is only one.)
10 years ago
Unknwon 340a4595dd support duoshuo mirror of gravatar 10 years ago
Unknwon 8c9338a537 add personal access token panel #12 10 years ago
Unknwon abc57b6e43 work on #609 10 years ago
Unknwon f1d8746264 Fix fork repo and macaron API broken 10 years ago
Unknwon 263d409326 Basic xss prevention 10 years ago
Martin van Beurden bb05ef907b Fix AvatarLink when using a suburl and gravatar is disabled or avatars are cached 10 years ago
无闻 568c9b353e Merge pull request #311 from nuss-justin/issue/281
Fix #281. Add mouse-over precise time and on-click switch listener.
10 years ago
Unknwon 7bbf644dd5 Convert captcha, cache, csrf as middlewares 10 years ago
Justin Nuß 91480f3791 Merge branch 'dev' of https://github.com/gogits/Gogs into issue/281
Conflicts:
	modules/base/tool.go
10 years ago
Unknwon 8dd07c0ddd New UI merge in progress 10 years ago
Justin Nuß 835e85b5ce Fix #281. Add mouse-over precise time and on-click switch listener. 10 years ago
Unknown 63cc14062a Paging function for users and repositories 10 years ago
slene 4ee6bc4fca fix for new git api 10 years ago
Unknown 688ec6ecbd Fixed #209 10 years ago
Unknown a641854cad command dump 10 years ago
Christopher Brickley b9a1d13c29 change gravatar image to match URL scheme 10 years ago
Unknown 9d983f27d6 go vet 10 years ago
Unknown e2fe220905 Work on comment 10 years ago
Unknown e7c8a3cb8d Add salt for every single user 10 years ago
Unknown eb803ec5eb Add transfer repository 10 years ago
Unknown 8282828820 Fix action email bug 10 years ago
Lunny Xiao a726c125b5 Add PushCommit 10 years ago
Unknown eb6021f73f Fix issue pages URL params 10 years ago
Unknown dd6246877d Almost done diff page 10 years ago
Unknown ed9b7d2db9 More on diff page 10 years ago
Unknown d3b8e9daa1 Add notify watcher action 10 years ago
Unknown 2fa8d0c8dd Added create issue 10 years ago
skyblue 4bac361605 merge with branch master 10 years ago
Unknown 97debac185 SSL enable config option 10 years ago
Unknown c386bb4bd3 Bug fix 10 years ago
Unknown 1eb078d0a8 Fix action 10 years ago
Gogs 964e537479 append route to web 10 years ago
slene 5edd57e482 Merge branch 'master' of github.com:gogits/gogs 10 years ago
slene 076fc98d98 add csrf check 10 years ago
Unknown fd1831052c Update session 10 years ago
Unknown 35d473f04a Finish verify email 10 years ago
Unknown ddbd2ce152 Add register mail tpl 10 years ago
Unknown de087c7b4a Add send register confirm mail 10 years ago
Unknown fbbae2b721 Working on register mail confirmation 10 years ago
Unknown 0f68930892 Add latest commit in repo viewer 10 years ago
Unknown ec65be79f0 Fix commit feed ui 10 years ago
Unknown 48b2425c1d Push feed 10 years ago
Unknown 8fb4b3afad Add template func FileSize 10 years ago
Unknown 4224ef142e Add template func FileSize 10 years ago
slene fa5ad1e465 move templateFuncs to one file, add middleware context. 10 years ago
slene 06deed820d Add HomeLink and AvatarLink to User model. Please use .SignedUser in template. 10 years ago
Unknown adb17791bd Add basic render of public act 10 years ago
Unknown d50e18ab6d Clean code 10 years ago