summaryrefslogtreecommitdiffstats
path: root/routers
Commit message (Collapse)AuthorAgeFilesLines
* 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
|
* Remove unit types commits and settings (#2161)Lauris BH2017-07-172-21/+30
| | | | | | | | | | * Remove unit types commits and settings * Can not limit units in administrator teams * Limit changing units only to teams with read and write access mode * Small code optimization
* Fix OpenID registration route (#2160)Christian Weiske2017-07-131-1/+1
| | | Fixes #2101
* API: support '/orgs/:org/repos' (#2047)Aaron Walker2017-07-132-0/+19
| | | * API: support '/orgs/:org/repos'
* Fix repo API bug (#2133)Ethan Koenig2017-07-126-54/+63
| | | Don't require token when not necessary
* Fix GET /users/:username/repos endpoint (#2125)Ethan Koenig2017-07-101-30/+30
|
* Improve org error handling (#2117)Antoine GIRARD2017-07-063-5/+5
| | | | | | | | | | * Improve ErrOrgNotExist type Return new error type Use good error check Use new method to check error Update tests * Fix unchanged method name report
* Fix git hooks update to receive required arguments. Fixes #2090 (#2095)Lauris BH2017-07-021-1/+2
| | | * Changed migration calling so that migrations can use models package
* Fix API for branches with slashes (#2096)Ethan Koenig2017-07-022-2/+9
|
* Fix release display and correct paging (#2080)Lauris BH2017-06-292-17/+15
|
* Pagination on releases page (#2035)iszla2017-06-281-2/+8
| | | | | | | | | | | | | | | | | | | | | | * Added count to GetReleasesByRepoID so pagination will work * Separated it out to a new function, can then also leave the API part unaffected * Remove extra whitespace added in untouched function * Added comment and corrected name in error handler * Account for if the user is owner or not in the count * Also check if repo is draft * revert back to the correct count in the ReleasesToDisplay loop * Fixed lint error regarding else with return statement * Use Cond struct instead of string, corrected name in error handler * Removed unused return variable names
* Fix: `http: multiple response.WriteHeader calls` (#2038)Shuanglei Tao2017-06-281-1/+0
| | | We can't change the http status code here, because the response has been written.
* Make time diff translatable (#2057)Lauris BH2017-06-285-10/+10
|
* Fix "Dashboard shows deleted comments" (#1995)Jonas Franz2017-06-252-3/+4
|
* Integration tests for issues API (#2059)Ethan Koenig2017-06-251-15/+13
|
* Load label ID in NewLabels (#2045)Ethan Koenig2017-06-252-2/+2
|
* Fix bug in issue labels API (#2048)Ethan Koenig2017-06-251-2/+2
|
* Fix displaying commits and files of PR created from now deleted fork (#2023)Kim "BKC" Carlbäcker2017-06-221-6/+14
|\ | | | | Fix displaying commits and files of PR created from now deleted fork
| * Fix displaying commits and files of PR created from now deleted forked ↵Lauris Bukšis-Haberkorns2017-06-211-6/+14
| | | | | | | | repository
* | repo/editor: fix breadcrumb path cuts parent dirs (#3859) (#2032)Lunny Xiao2017-06-221-18/+29
| |