summaryrefslogtreecommitdiffstats
path: root/routers
Commit message (Collapse)AuthorAgeFilesLines
* Change default sort order (#2647)Kazuki Sawada2017-10-052-9/+10
| | | | | | | | | | | | * sort repositories by `updated_unix` in Explore * Fix UI problem * Added missing sort order "newest" * Change default sort order * fmt
* Change pull description text (#2075) (#2646)Kazuki Sawada2017-10-041-11/+23
| | | | | | * Change pull description text * move duplicated code into helper function
* Remove repo unit index (#2621)Morlinest2017-10-021-6/+0
| | | | | | * Remove repo unit index * Fix sqlite
* Fix implementation of repo Home func (#2601)Morlinest2017-10-011-8/+13
| | | | | | * Fix implementation of repo Home func * Make fixture changes for testing
* Remove redudant CheckUnit calls in router (#2627)Morlinest2017-09-301-4/+4
|
* Remove redudant issue LoadAttributes() calls (#2614)Morlinest2017-09-271-6/+0
|
* fix go get subpackage bug (#2584)Lunny Xiao2017-09-231-21/+1
| | | | | | * fix go get subpackage bug * merge the duplicated funtions
* Use custom type and constants to hold order by options (#2572)Morlinest2017-09-222-19/+19
|
* fix readme view bug (#2566)Lunny Xiao2017-09-211-1/+3
|
* Add init support of orgmode document type on file view and readme (#2525)Lunny Xiao2017-09-215-10/+8
| | | | | | | | | | | | | | * add init support of orgmode document type on file view and readme * fix imports * fix imports and readmeExist * fix imports order * fix format * remove unnecessary convert
* Sync releases table with tags on push and for mirrors (#2459)Lauris BH2017-09-202-86/+101
| | | | | | | | | | | | | | | * Sync releases table with tags on push and for mirrors * Code style fixes * Fix api to return only releases * Optimize release creation and update Minimize posibility of race conditions * Fix release lower tag name updating * handle tag reference update by addionally comparing commit id
* Sort repository tree entries in natural way (#2506)Lauris BH2017-09-191-1/+1
| | | | | | | | | | | | * Sort repository tree entries in natural way * Fix sort for different length strings with first parts equal * Improve test case * Refactor return statements * Update gitea/git dependency
* Fork permission bug fixes (#2534)Jonas Franz2017-09-181-2/+4
| | | | | | | | | | | | | | | | * Hotfix for "Add time manually" (https://github.com/go-gitea/gitea/pull/2211#issuecomment-328780125) Signed-off-by: Jonas Franz <info@jonasfranz.software> * Checking if Code unit is enabled before creating a fork. Signed-off-by: Jonas Franz <info@jonasfranz.software> * Adding a discrete function for RepoIDAssignment Signed-off-by: Jonas Franz <info@jonasfranz.software> * Improved Documentation
* Improve issue search (#2387)Ethan Koenig2017-09-162-3/+3
| | | | | | | | | | * Improve issue indexer * Fix new issue sqlite bug * Different test indexer paths for each db * Add integration indexer paths to make clean
* Restructure markup & markdown to prepare for multiple markup language… (#2411)Lunny Xiao2017-09-164-17/+15
| | | | | | | | | | * restructure markup & markdown to prepare for multiple markup languages support * adjust some functions between markdown and markup * fix tests * improve the comments
* Implementation of all repositories of a user from user->settings (#1740)Rémy Boulanouar2017-09-142-0/+36
| | | | | | | | | | | | * Implementation of all repositories of a user from user->settings * Update message when no repository found * Update according to comments * Change UI to have a better look * improved user repositories UI
* improve protected branch to add whitelist support (#2451)Lunny Xiao2017-09-148-143/+216
| | | | | | | | | | | | | | | | | | | | * improve protected branch to add whitelist support * fix lint * fix style check * fix tests * fix description on UI and import * fix test * bug fixed * fix tests and languages * move isSliceInt64Eq to util pkg; improve function names & typo
* Display commit status on landing page of repo (#1784)Rémy Boulanouar2017-09-142-0/+18
| | | | | | | | * Display commit status on landing page of repo * improve last status of commits and add link to ci * fix last commit status since the order of ids are desc
* Hotfix for "Add time manually" ↵Jonas Franz2017-09-131-1/+1
| | | | | (https://github.com/go-gitea/gitea/pull/2211#issuecomment-328780125) (#2499) Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Feature: Timetracking (#2211)Jonas Franz2017-09-128-4/+324
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Added comment's hashtag to url for mail notifications. * Added explanation to return statement + documentation. * Replacing in-line link generation with HTMLURL. (+gofmt) * Replaced action-based model with nil-based model. (+gofmt) * Replaced mailIssueActionToParticipants with mailIssueCommentToParticipants. * Updating comment for mailIssueCommentToParticipants * Added link to comment in "Dashboard" * Deleting feed entry if a comment is going to be deleted * Added migration * Added improved migration to add a CommentID column to action. * Added improved links to comments in feed entries. * Fixes #1956 by filtering for deleted comments that are referenced in actions. * Introducing "IsDeleted" column to action. * Adding design draft (not functional) * Adding database models for stopwatches and trackedtimes * See go-gitea/gitea#967 * Adding design draft (not functional) * Adding translations and improving design * Implementing stopwatch (for timetracking) * Make UI functional * Add hints in timeline for time tracking events * Implementing timetracking feature * Adding "Add time manual" option * Improved stopwatch * Created report of total spent time by user * Only showing total time spent if theire is something to show. * Adding license headers. * Improved error handling for "Add Time Manual" * Adding @sapks 's changes, refactoring * Adding API for feature tracking * Adding unit test * Adding DISABLE/ENABLE option to Repository settings page * Improving translations * Applying @sapk 's changes * Removing repo_unit and using IssuesSetting for disabling/enabling timetracker * Adding DEFAULT_ENABLE_TIMETRACKER to config, installation and admin menu * Improving documentation * Fixing vendor/ folder * Changing timtracking routes by adding subgroups /times and /times/stopwatch (Proposed by @lafriks ) * Restricting write access to timetracking based on the repo settings (Proposed by @lafriks ) * Fixed minor permissions bug. * Adding CanUseTimetracker and IsTimetrackerEnabled in ctx.Repo * Allow assignees and authors to track there time too. * Fixed some build-time-errors + logical errors. * Removing unused Get...ByID functions * Moving IsTimetrackerEnabled from context.Repository to models.Repository * Adding a seperate file for issue related repo functions * Adding license headers * Fixed GetUserByParams return 404 * Moving /users/:username/times to /repos/:username/:reponame/times/:username for security reasons * Adding /repos/:username/times to get all tracked times of the repo * Updating sdk-dependency * Updating swagger.v1.json * Adding warning if user has already a running stopwatch (auto-timetracker) * Replacing GetTrackedTimesBy... with GetTrackedTimes(options FindTrackedTimesOptions) * Changing code.gitea.io/sdk back to code.gitea.io/sdk * Correcting spelling mistake * Updating vendor.json * Changing GET stopwatch/toggle to POST stopwatch/toggle * Changing GET stopwatch/cancel to POST stopwatch/cancel * Added migration for stopwatches/timetracking * Fixed some access bugs for read-only users * Added default allow only contributors to track time value to config * Fixed migration by chaging x.Iterate to x.Find * Resorted imports * Moved Add Time Manually form to repo_form.go * Removed "Seconds" field from Add Time Manually * Resorted imports * Improved permission checking * Fixed some bugs * Added integration test * gofmt * Adding integration test by @lafriks * Added created_unix to comment fixtures * Using last event instead of a fixed event * Adding another integration test by @lafriks * Fixing bug Timetracker enabled causing error 500 at sidebar.tpl * Fixed a refactoring bug that resulted in hiding "HasUserStopwatch" warning. * Returning TrackedTime instead of AddTimeOption at AddTime. * Updating SDK from go-gitea/go-sdk#69 * Resetting Go-SDK back to default repository * Fixing test-vendor by changing ini back to original repository * Adding "tags" to swagger spec * govendor sync * Removed duplicate * Formatting templates * Adding IsTimetrackingEnabled checks to API * Improving translations / english texts * Improving documentation * Updating swagger spec * Fixing integration test caused be translation-changes * Removed encoding issues in local_en-US.ini. * "Added" copyright line * Moved unit.IssuesConfig().EnableTimetracker into a != nil check * Removed some other encoding issues in local_en-US.ini * Improved javascript by checking if data-context exists * Replaced manual comment creation with CreateComment * Removed unnecessary code * Improved error checking * Small cosmetic changes * Replaced int>string>duration parsing with int>duration parsing * Fixed encoding issues * Removed unused imports Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Only check at least one email gpg key (#2266)Antoine GIRARD2017-09-051-2/+2
| | | | | | | | | | | | | | | | | | | | | | * Only require one email (possibly not yet validated) * Update message error and check validation of commit * Add integrations tests * Complete integration for import * Add pre-check/optimization * Add some test (not finished) * Finish * Fix fixtures * Fix typo * Don't guess key ID
* Webhooks for repo creation/deletion (#1663)Ethan Koenig2017-09-038-14/+15
| | | | | | | | * Webhooks for repo creation/deletion * add createHookTask * Add handles for GetSlackPayload and GetDiscordPayload
* fix orgnization webhooks (#2422)Lunny Xiao2017-08-301-1/+1
| | | | | | * fix org webhooks * remove trace code
* fix webhook test (#2415)Lunny Xiao2017-08-291-2/+10
| | | | | | | | * fix webhook test * fix error message * fix typo
* Fix route handler order (#2409)Ethan Koenig2017-08-291-3/+4
| | | | | | * Fix route handler order * Fix more routes
* fix missing orgnization discord webhook (#2414)Lunny Xiao2017-08-292-1/+2
|
* Implementation of discord webhook (#2402)Lunny Xiao2017-08-282-5/+108
| | | | | | | | | | | | * implementation of discord webhook * fix webhooks * fix typo and unnecessary color values * fix typo * fix imports and revert changes to webhook_slack.go
* fix duplicated feed (#2370)Lunny Xiao2017-08-282-2/+0
|
* Fix missing collabrative repos (#2367)Lunny Xiao2017-08-242-18/+21
| | | | | | | | * fix missing collabrative repos * fix bug of collabrative * fix SQL quotes
* Add possibility to record branch or tag information in an issue (#780)Zsombor2017-08-241-0/+10
|
* Log failed authentication attempts with remote address for fail2ban (#2334)David Schneiderbauer2017-08-241-0/+2
| | | Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Add collaborative repositories to the dashboard (#2205)Bwko2017-08-233-42/+21
| | | | | | | | | | * Add collaborative repositories to the dashboard Remove some unused code from the Dashboard func * fix some bug and some refactor * fix tests
* Improve swagger doc (#2274)Antoine GIRARD2017-08-2119-62/+294
| | | | | | | | | | | | | | | | | | | | * Add swagger comment for adminCreateOrg * Add swagger comment for admin route * add hook swagger doc * Add tags * Add auth * Fix name of responses * Edit name method * Update vendor * make generate-swagger
* Add OpenID configuration in install page (#2276)Sandro Santilli2017-08-193-26/+36
|
* Add AppURL without trailing slash to TOTP issuer parameter to prevent ↵David Schneiderbauer2017-08-191-1/+1
| | | | | conflicting accounts on multiple gitea installations (#2335) Signed-off-by: David Schneiderbauer <dschneiderbauer@gmail.com>
* Fix variable name typo (#2327)Morlinest2017-08-181-2/+2
|
* Make SHOW_USER_EMAIL also apply to profiles (#2258)Michael Kuhn2017-08-171-0/+2
| | | The e-mail address is currently only hidden from the explore page.
* Trigger sync webhooks on UI commit (#2302)Ethan Koenig2017-08-171-14/+1
| | | | | | * Trigger sync webhooks on UI commit * Also fix UI upload/delete
* Fix and improve dashboard repo UI (#2285)Morlinest2017-08-172-0/+3
| | | | | | | | | | | | | | | | * Fix and improve dashboard repo UI * Change order of scripts loading * Remove "mirror" tab * Remove single tab panel for "org user" * Add localization strings * Create vue component and change event for search * Add "mirrors" filter
* Fix rendering of external links (#2292)Ethan Koenig2017-08-132-1/+2
|
* Only update needed columns when update user (#2296)Lunny Xiao2017-08-124-12/+15
| | | | | | * only update needed columns when update user * fix missing update_unix column
* Fix counts on issues dashboard (#2215)Ethan Koenig2017-08-035-57/+109
| | | | | | | | | | * Fix counts on issues dashboard * setupSess -> setupSession * Unit test * Load repo owners for issues
* EnableUnit() -> UnitEnabled() (#2242)Ethan Koenig2017-08-023-5/+5
|
* Fix Commits nil pointer dereference (#2203)Bwko2017-07-311-0/+4
|
* Fixed robots.txt 404 error (#2226)Florian / sinnlosername2017-07-301-1/+1
| | | | | | * Update routes.go * Update routes.go
* Check for access in /repositories/:id (#2227)Ethan Koenig2017-07-301-1/+4
| | | | | | * Check for access in /repositories/:id * Integration test
* fix some bugLunny Xiao2017-07-281-5/+5
|
* Fix bare-repo bugs (#2199)Ethan Koenig2017-07-271-1/+4
| | | | | | | | * Fix bare-repo bugs * Integration tests * Unused import
* Only allow token authentication with 2FA enabled (#2184)Moritz Heiber2017-07-261-6/+32
| | | | | | | | | | | | | | * Don't allow for plain username/password authentication when 2FA is enabled * Removed debugging statement * Don't assume a token belongs to a given user, handle two-factor errors properly * Simplified user/token matching, refactored error handling for two-factor authentication * Change authentication response to avoid bruteforcing * Add TODO item as a comment for changing the response for security purposes
* Revert "Add ability to fork your own repos (#761)" (#2193)Bwko2017-07-261-0/+6
|