summaryrefslogtreecommitdiffstats
path: root/modules/context
Commit message (Collapse)AuthorAgeFilesLines
...
* fix display dashboard even if require to change password (#6214)Lunny Xiao2019-02-281-14/+10
| | | | | | * fix display dashboard even if require to change password * fix comments
* Create a repo redirect when transferring ownership (#6210) (#6211)James E. Blair2019-02-281-1/+1
| | | | | | | When transferring ownership of a repo to a different user/org, create a repo redirect that points to the new location in the same way that is done when a repo is renamed. Signed-off-by: James E. Blair <jeblair@redhat.com>
* Minor UI tweaks (#5980)John Olheiser2019-02-192-0/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Remove all CommitStatus when a repo is deleted Signed-off-by: jolheiser <john.olheiser@gmail.com> * Minor UI tweaks (#5782) Added 'No License' option Added link and octicon change for external issue trackers Reset password now notifies right away if the code is invalid Signed-off-by: jolheiser <john.olheiser@gmail.com> * More UI tweaks More info in PR * Generate stylesheet for arc-green * Make gofmt work * Change PR integration since the button is changed * Rebase * Generate stylesheet * UI updates Made the PR button a "basic" button Vertically centered the issue checkboxes Labels will update only once after modal is closed * Commit to reference related issues Resolves #5782 Resolves #5861 Addresses original question in #5993 * Change the comment wording since PR button is no longer little and green. * Revert changes that made Windows work * Regenerate stylesheet * Regenerate stylesheets * make generate-stylesheets * Update integration again, changed button style Signed-off-by: jolheiser <john.olheiser@gmail.com> * Added ID to PR button Changed integration to use the ID to avoid breaking in the future * Added missing semi-colons * Added back distinction between issue actions and filters (overlooked it before) Moved action button over next to other action dropdowns * Remove extra tab formatting in list.tmpl * Remove more formatting from GoLand * Replace hardcoded "No License" with i18n license helper.
* Fix prohibit login check on authorization (#6106)Lunny Xiao2019-02-191-2/+7
| | | | | | | | | | | | * fix bug prohibit login not applied on dashboard * fix tests * fix bug user status leak * fix typo * return after render
* modules/context/auth.go: fix redirect loop (#5965)xdch472019-02-171-1/+1
| | | Closes #5815
* Provide better panic handling (#5902)zeripath2019-01-302-1/+113
| | | | | | | This PR gitea'ises the macaron.Recovery() handler meaning that in the event of panic we get proper gitea 500 pages and the stacktrace is logged with the gitea logger. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Fix go-get URL generation (#5905)Lauris BH2019-01-302-2/+3
|
* Feature: Archive repos (#5009)kolaente2019-01-231-1/+10
|
* Refactor repo.isBare to repo.isEmpty #5629 (#5714)zeripath2019-01-172-6/+6
| | | | | | | | * Refactor repo.isBare to repo.isEmpty #5629 Signed-off-by: Andrew Thornton <art27@cantab.net> * Remove Sync call
* Restrict permission check on repositories and fix some problems (#5314)Lunny Xiao2018-11-282-107/+80
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix units permission problems * fix some bugs and merge LoadUnits to repoAssignment * refactor permission struct and add some copyright heads * remove unused codes * fix routes units check * improve permission check * add unit tests for permission * fix typo * fix tests * fix some routes * fix api permission check * improve permission check * fix some permission check * fix tests * fix tests * improve some permission check * fix some permission check * refactor AccessLevel * fix bug * fix tests * fix tests * fix tests * fix AccessLevel * rename CanAccess * fix tests * fix comment * fix bug * add missing unit for test repos * fix bug * rename some functions * fix routes check
* Add raw blob endpoint to get objects by SHA ID (#5334)Peter Hoffmann2018-11-181-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | | | | * Add raw blob endpoint This should make it possible to download raw blobs directly from /:repo/:username/raw/blob/:sha1 URLs. * fix: Make it work * As an SHA-ID is no path getRefNameFromPath can't be used to verify file specifying parameter * added relevant change in go-gitea/git #132 Signed-off-by: Berengar W. Lehr <Berengar.Lehr@kompetenztest.de> * Update Gopkg.lock Can't update all vendors due to errors Signed-off-by: Berengar W. Lehr <Berengar.Lehr@kompetenztest.de> * style: Add Gitea copyright header * feat: Added integration test for /repo/u/r/raw/blob * fix: correct year in copyright header
* Fix #5226 by adding CSRF checking to api reqToken and add CSRF to the POST ↵zeripath2018-11-031-0/+13
| | | | | | | | | | header for deadline (#5250) * Add CSRF checking to reqToken and place CSRF in the post for deadline creation Fixes #5226, #5249 * /api/v1/admin/users routes should have reqToken middleware
* Force user to change password (#4489)Lanre Adelowo2018-09-131-4/+25
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * redirect to login page after successfully activating account * force users to change password if account was created by an admin * force users to change password if account was created by an admin * fixed build * fixed build * fix pending issues with translation and wrong routes * make sure path check is safe * remove unneccessary newline * make sure users that don't have to view the form get redirected * move route to use /settings prefix so as to make sure unauthenticated users can't view the page * update as per @lafriks review * add necessary comment * remove unrelated changes * support redirecting to location the user actually want to go to before being forced to change his/her password * run make fmt * added tests * improve assertions * add assertion * fix copyright year Signed-off-by: Lanre Adelowo <yo@lanre.wtf>
* Fix redirect with non-ascii branch names (#4764) (#4810)SagePtr2018-09-061-1/+1
| | | | | | | | * Fix redirect with non-ascii branch names (#4764) * Add integration tests for non-ascii branch redirect * Fix mysql test and coverage test
* Hide home button when landing page is not set to home (#4651)Piotr Orzechowski2018-08-261-0/+5
|
* Push whitelist now doesn't apply to branch deletion (#4601) (#4607)SagePtr2018-08-081-2/+2
|
* Swagger.v1.json template (#3572)Piotr Orzechowski2018-07-281-1/+1
| | | | | | * Turn swagger.v1.json into template * Rename ENABLE_SWAGGER_ENDPOINT option to ENABLE_SWAGGER
* Added dependencies for issues (#2196) (#2531)kolaente2018-07-171-0/+5
|
* fix not respecting landing page setting (#4209)David Schneiderbauer2018-06-151-6/+0
| | | | | | | | * fix not respecting landing page setting * fmt * add landing page test
* Multiple assignees (#3705)kolaente2018-05-091-1/+2
|
* Refactor and simplify redirect to url (#3674)Lauris BH2018-03-151-0/+21
|
* Add option to enable or disable swagger endpoints (#3502)Piotr Orzechowski2018-02-141-0/+1
|
* Fix go-get content type (#3426)Lauris BH2018-01-291-1/+3
|
* Add doctype to go-get=1 reponse (#3423)Lauris BH2018-01-291-1/+1
|
* Handle refactor (#3339)Morgan Bazalgette2018-01-103-56/+64
| | | | | | * Replace all ctx.Handle with ctx.ServerError or ctx.NotFound * Change Handle(403) to NotFound, avoid using macaron's NotFound
* Fix ignored errors when checking if organization, team member (#3177)Ethan Koenig2017-12-211-3/+10
|
* Fix new pull request link (#3133)Ethan Koenig2017-12-131-1/+0
| | | | | | * Fix new pull request link * Only show button for branches
* Fix legacy URL redirects (#3100)Ethan Koenig2017-12-071-1/+5
|
* Add reactions to issues/PR and comments (#2856)Lauris BH2017-12-041-1/+1
|
* Minor copy changes (#3074)techknowlogick2017-12-031-1/+1
| | | | | | | | * Minor copy changes Fixes #3058 * Use TrN for translations that depend on count Fix minor type with branches count
* Remove GetRepositoryByRef and add GetRepositoryByOwnerAndName (#3043)Lunny Xiao2017-12-021-6/+3
| | | | | | | | | | * remove GetRepositoryByRef and add GetRepositoryByOwnerAndName * fix tests * fix tests bug * some improvements
* Memory usage improvements (#3013)Duncan Ogilvie2017-11-291-0/+3
| | | | | | | | | | * govendor update code.gitea.io/git Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com> * Greatly improve memory usage Signed-off-by: Duncan Ogilvie <mr.exodia.tpodt@gmail.com>
* Various wiki bug fixes (#2996)Ethan Koenig2017-11-281-1/+2
| | | | | | * Update macaron * Various wiki bug fixes
* Fix go-get, src and raw urls to new scheme (#2978)Lauris BH2017-11-272-2/+2
|
* fix click create pull request button 404 (#2859)Lunny Xiao2017-11-051-0/+1
|
* Fix API raw file content access for default branch (#2849)Lauris BH2017-11-041-1/+5
|
* Fix API raw requests for commits and tags (#2841)Lauris BH2017-11-041-1/+4
|
* Fix redirect url of legacy commits route (#2825)Morlinest2017-11-031-11/+1
|
* Make URL scheme unambiguous (#2408)Ethan Koenig2017-10-301-21/+99
| | | | | | | | | | * Make URL scheme unambiguous Redirect old routes to new routes * Fix redirects to new URL scheme, and update template * Fix branches/_new endpoints, and update integration test
* Code/repo search (#2582)Ethan Koenig2017-10-271-0/+1
| | | Indexed search of repository contents (for default branch only)
* Add commit count caching (#2774)Lauris BH2017-10-261-2/+19
| | | | | | | | | | * Add commit count caching * Small refactoring * Add different key prefix for refs and commits * Add configuratuion option to allow to change caching time or disable it
* Create new branch from branch selection dropdown (#2130)Lauris BH2017-10-151-0/+6
| | | | | | | | | | * Create new branch from branch selection dropdown and rewrite it to VueJS * Make updateLocalCopyToCommit as not exported * Move branch name validation to model * Fix possible race condition
* Fix so that user can still fork his own repository to owned organizations ↵Lauris BH2017-10-151-0/+5
| | | | | | | | | | (#2699) * Fix so that user can still fork his own repository to his organizations * Fix to only use owned organizations * Add integration test for forking own repository to owned organization
* Add Activity page to repository (#2674)Lauris BH2017-10-151-1/+10
| | | | | | | | | | | | | | * Add Activity page to repository * Add request data for activity * Add issue data for activity * Add user unit right checks * Add releases to activity * Log repository unit loading error
* Refactor duplicated code in repo handlers (#2657)Ethan Koenig2017-10-051-86/+49
| | | | | | * Refactor duplicated code in repo handlers * ctx.Handle
* Fix go get response if only app URL is custom in configuration (#2634)Lauris BH2017-10-021-1/+1
| | | | | | * Fix go get response if only app URL is custom in configuration * Rewrite to update Domain setting to match AppURL
* fix go get subpackage bug (#2584)Lunny Xiao2017-09-231-11/+13
| | | | | | * fix go get subpackage bug * merge the duplicated funtions
* Sync releases table with tags on push and for mirrors (#2459)Lauris BH2017-09-201-0/+1
| | | | | | | | | | | | | | | * 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
* Fix fmt errors (#2544)Ethan Koenig2017-09-191-1/+2
|
* Fork permission bug fixes (#2534)Jonas Franz2017-09-181-0/+68
| | | | | | | | | | | | | | | | * 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