aboutsummaryrefslogtreecommitdiff
path: root/routers
Commit message (Collapse)AuthorAge
...
* Little code refactoringUnknwon2016-08-09
|
* Render the Code view on the server (minus syntax highlighting) (#2942)Rory McNamara2016-08-09
| | | | | | | | | | | | | | | | * render code view server side * remove debug print * fix multiline selection bug * change string concatenation to bytes.Buffer for efficiency * Fix newlines added by previous for hljs * fix selection highlighting * make css changes in .less
* Fix for #3410 overall issues for organisations is limited to num_repos from ↵lstahlman2016-08-09
| | | | the user (#3412)
* Add support for federated avatars (#3320)Sandro Santilli2016-08-07
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * 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
* Fix #3315: Release dont use tag creation date (#3374)Thibault Meyer2016-08-06
| | | | | | | | | | * Fix #3315: Release dont use tag creation date * Simplify code and apply gofmt * remove useless block (ctx.Repo.GitRepo.GetTag) on EditReleasePost * apply gofmt on modified files
* #2593 allow render raw contentUnknwon2016-08-05
| | | | Use URL query parameter render=1 to render content in raw mode.
* Replace gogs.io http links with https version (#3386)rugk2016-08-05
|
* Ignore repository with issue disabled or use external tracker in dashboard ↵Unknwon2016-08-05
| | | | issues
* #3348 always use relative avatar link in the templateUnknwon2016-08-05
|
* routers/api: rename handlers to be unexportedUnknwon2016-08-04
|
* #2162 completely disable builtin issue tracker when enable external trackerUnknwon2016-08-04
|
* #3290 better code structure and batch minor improvementsUnknwon2016-08-03
|
* Additional API support for labels (#3290)lstahlman2016-08-03
| | | | | | | | | | * Add API support for labels. * Error handling for adding/replacing multiple issue labels * Revisions to function names and error handling. Use issue.ClearLabels in replace/clear functions * Additional code cleanup
* #3345 dump content directly to HTTP ResponseWriterUnknwon2016-07-30
|
* Diff patch (#3345)Dennis Chen2016-07-30
| | | | | | | | | | | | | | | | * Add support for .diff and .patch Add the ability to get text-diff and format-patch by adding .diff or .patch in the end of a commit url. Issue #2641 * models: git_diff: various fixes * Renames commitId to commitID. * Writes stderr to a bytes.Buffer and displays proper error message on command failure. * Various style changes. Signed-off-by: Dennis Chen <barracks510@gmail.com>
* routers/repo/release: Use correct branch reference (#3330)마누엘2016-07-27
| | | | | | | | | | | | | | | | | | | | | | | | | | | When calculating the current behind commit count the calculation should use the current release target to get the total commit count. Should the release target not exist anymore the calculation will return zero for the newest release on that target. Older releases on that target will then use that calculated commit count as reference. The only use case that is now somehow invalid is when the release target was merged / deleted after a tag on that release target: master 1 - - - - - - - 6 \ / branch 2 - 3 - 4 - 5 When `4` is the last tag on branch `branch` and the branch `branch` is not yet deleted the calculated numbers would be: 1 commits to branch since this release Now if the branch `branch` gets deleted the calculation function will not find the branch and use the commit count of the newest release (`4`) as reference resulting in: 0 commit to branch since this release This fixes #3326
* Added Full Name to CreateUser api call (#3333)Richard Mahn2016-07-27
|
* routers/repo/issue: remove redundant format stringUnknwon2016-07-26
|
* #1601 support delete issue commentUnknwon2016-07-26
|
* #1384 add pagination for repositoriesUnknwon2016-07-24
|
* Refactor User.Id to User.IDUnknwon2016-07-24
|
* Use struct for UI settingsUnknwon2016-07-24
|
* #2790 fix not detect diff style in pull request file changesUnknwon2016-07-23
|
* #3181 detect situation when base branch is deleted in pull requestUnknwon2016-07-23
|
* api: fix panic if anonymous user request admin APIUnknwon2016-07-23
| | | | Add sign in check before check user account level
* #3076 detect invalid tag name git errorUnknwon2016-07-23
|
* Refresh repository mirror from database when the repository's name has ↵lstahlman2016-07-17
| | | | changed. (#3276)
* Update locales and .gopmfileUnknwon2016-07-17
|
* models/webhook: restrict deletion to be explicitly with repo and org IDUnknwon2016-07-17
|
* api: delete repository webhooks (#3275)Dennis Chen2016-07-17
| | | | | | | | Allows the deletion of a webhook from a repository at the /:user/:repo/hooks/:id endpoint. Solves drone/drone issue #1603. Signed-off-by: Dennis Chen <barracks510@gmail.com>
* #2937 able to prohibit user loginUnknwon2016-07-16
|
* #3274 fix can't get webhook detail of organizationUnknwon2016-07-16
|
* #2854 fix no mail notification when issue is closed/reopenedUnknwon2016-07-16
|
* models/repo: remove redundant info for some repo methodsUnknwon2016-07-15
| | | | RepoLink -> Link, RepoRelLink -> RelLink, FullRepoLink -> FullLink
* Add timestamps to repository api response (#3255)lstahlman2016-07-12
| | | Additional properties: created_at, updated_at
* [Fix] Don't display way too large files #1513 (#3253)Kim Carlbäcker2016-07-12
| | | | | | | | | | * Add MaxDisplayFileSize setting * Don't show files that are too large * Localized FileTooLarge * Change IsFileTooBig => IsFileTooLarge
* Extend the API to include more repository properties (#3249)lstahlman2016-07-11
| | | | Adds description, stars_count, forks_count, watchers_count and open_issues_count.
* The pruning for the synchronized mirrors is a option now. Default value: ↵Pablo Saavedra2016-07-09
| | | | | | | | | | | | | enable_prune = true (#3246) Executed go fmt getEngine() not handles DB parameters (#2972) (#2974) Uses .AllCols() for Update in updateMirror() Spanish traslation removed Fixed a wrong way to ommit the --prune option in process.ExecDir() for MirrorUpdate function
* #3057 retrieve webhook with repo_idUnknwon2016-07-08
| | | | | This prevents user retrieve arbitrary webhook by changing URL to access webhook from other unauthorized repositories.
* Use SecurityProtocol to replace UseSSL in LDAP configUnknwon2016-07-08
| | | | Initially proposed by #2376 and fixes #3068 as well.
* #3058 #3059 support correct page size and link headerUnknwon2016-07-04
|
* Do not show filename not have suffifx .mdUnknwon2016-07-01
|
* Re-work MAX_DIFF_LINES: supress diff per file, not the whole diff (#3174)Andrey Nering2016-06-29
|
* Fixes #3110 (#3136)Franz Schmidt2016-06-27
|
* Minor fix for #3194Unknwon2016-06-27
| | | | - Update locale bindata
* Include repository owner name and description in html title (#3194)Sandro Santilli2016-06-27
| | | Closes #3192
* repo/http: clean codeUnknwon2016-06-01
|
* #809 fix wrong closed issue count when create closed issue via APIUnknwon2016-05-27
| | | | Add start count corrector for Repository.NumClosedIssues
* #809 able to set issue state to closed when createUnknwon2016-05-11
|
* PDF-Previews in file-lists now working (#3000)Kim Carlbäcker2016-04-26
|