summaryrefslogtreecommitdiffstats
path: root/modules/base/tool.go
Commit message (Collapse)AuthorAgeFilesLines
...
* Add tests for StringsToInt64s() & Int64sToStrings()Matthias Loibl2016-11-071-1/+2
|
* Use TruncateString(sha1,10) in ShortSha and deprecate it.Matthias Loibl2016-11-071-4/+2
|
* Add tests for EllipsisString() and fix bug if param length < 3Matthias Loibl2016-11-071-1/+4
|
* Test AvatarLink and refactor with tests passingMatthias Loibl2016-11-071-12/+9
|
* Start to add tests for modules/base/toolMatthias Loibl2016-11-071-7/+2
|
* Change import reference to match gitea instead of gogs (#37)Rémy Boulanouar2016-11-031-2/+2
|
* #3559 fix template errorUnknwon2016-08-311-0/+4
|
* router/repo: code refactoringUnknwon2016-08-301-18/+6
|
* Fix #3321: commit tag shortener (#3418)Thibault Meyer2016-08-111-1/+1
| | | | | | | | | | | | * Fix #3321: commit tag shortener * Check short commit * remove debug * Edit unit tests * Show 10-char short SHA
* #3320 code cleanupUnknwon2016-08-071-14/+11
|
* Add support for federated avatars (#3320)Sandro Santilli2016-08-071-4/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Use a gopher as default avatar (rather than the gravatar logo) (#3208)Sandro Santilli2016-06-271-1/+1
| | | | | | | | | | | | 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)
* PDF-Previews in file-lists now working (#3000)Kim Carlbäcker2016-04-261-0/+8
|
* Fix ref comment from commit create empty feedUnknwon2016-03-111-0/+1
|
* #1157 some avatar setting changesUnknwon2016-03-051-0/+9
| | | | - Allow to delete current avatar
* Make markdown as an independent moduleUnknwon2016-02-201-16/+24
|
* Remove cache avatar support and add its testsUnknwon2016-02-141-7/+11
|
* Not working, but slightly better...Kim "BKC" Carlbäcker2016-01-271-10/+12
|
* Custom URL-Schemas for MarkdownKim "BKC" Carlbäcker2016-01-271-0/+1
|
* Made Sanitizer-setup cleanerKim "BKC" Carlbäcker2016-01-141-1/+10
|
* Checklist-rendering implementedKim "BKC" Carlbäcker2016-01-131-1/+1
|
* #2287 Truncate repository name if too longUnknwon2016-01-111-0/+9
|
* #2185 fall back to use custom chardet libUnknwon2015-12-311-9/+11
|
* #2282 fast detection of utf-8Unknwon2015-12-271-0/+6
|
* #2283 set text/plain for non-binary files in raw modeUnknwon2015-12-251-1/+5
|
* #2282 fix utf-8 recognized as windows-1252Unknwon2015-12-251-1/+3
|
* #2185 use Go sub-repo to detect encodingUnknwon2015-12-131-9/+4
|
* fix #2020Unknwon2015-11-241-2/+2
|
* Show custom avatars in commitsUnknwon2015-11-131-0/+18
|
* #1595 pushing new branch will rereference issues in previous branchUnknwon2015-09-101-1/+0
|
* add regexp to restrict `<code class=""></code>`Hongcai Deng2015-09-101-4/+2
|
* add allow attribute `class` to `<code>`Hongcai Deng2015-09-091-0/+4
|
* new org dashboard issuesUnknwon2015-08-251-0/+9
|
* fix timezoneUnknwon2015-08-201-1/+0
|
* print time to debugUnknwon2015-08-201-2/+3
|
* #1500 use UTC for TimeSinceUnknwon2015-08-201-2/+2
|
* finish view comments on issue pageUnknwon2015-08-131-0/+4
|
* finish create issue with labelsUnknwon2015-08-101-0/+18
|
* #1024: OFFLINE_MODE Still Uses GravatarUnknwon2015-03-121-1/+1
|
* Remove the "PHP" style formatting functionPeter Smit2015-02-161-61/+6
| | | | | | 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.
* modules/base: clean code with #838Unknwon2015-01-301-27/+3
|
* fix compile errorUnknwon2014-12-101-6/+4
|
* remove unused code in BasicAuthDecodeMageti2014-12-101-7/+2
|
* Correction for #723Mageti2014-12-101-4/+4
| | | | Correction for #723 Bug was : decode failed if the password contains ```:```
* Fix Gravatar images in web view (like commit listing)Andrew Burns2014-12-051-3/+7
| | | | | | | | | | 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.)
* support duoshuo mirror of gravatarUnknwon2014-11-161-1/+1
|
* add personal access token panel #12Unknwon2014-11-121-0/+7
|
* work on #609Unknwon2014-11-071-0/+22
|
* Fix fork repo and macaron API brokenUnknwon2014-10-241-1/+1
|
* Basic xss preventionUnknwon2014-10-041-0/+27
|