aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Improve stale message (#9920)Antoine GIRARD2020-01-221-4/+5
| | | | | | | | * Improve stale nessage * Update .github/stale.yml Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* Check if diff actually contains sections when rendering (#9926)Lauris BH2020-01-221-1/+1
|
* misc webpack tweaks (#9924)silverwind2020-01-222-23/+30
| | | | | | | | | | - reduce verbosity during build - use array form `use` to allow easier extension - disable uninteresting source maps - disable symlink resolution for a speedup Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: techknowlogick <matti@mdranta.net>
* Fix wrong hint when status checking is running on pull request view (#9886)Lunny Xiao2020-01-229-84/+159
| | | | | | | | | | | | | | | | * Fix wrong hint when status checking is running on pull request view * fix lint * fix test * fix test * fix wrong tmpl * fix import * rename function name
* add remote ip to the invalid credentials error message (#9918)bobemoe2020-01-211-3/+3
|
* Fix RocketChat (#9908)John Olheiser2020-01-211-10/+5
| | | | | | | | | | | | | | | | * Fix RocketChat?? Signed-off-by: jolheiser <john.olheiser@gmail.com> * Don't send attachment for repo create/delete Signed-off-by: jolheiser <john.olheiser@gmail.com> * Make fmt Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: Lauris BH <lauris@nix.lv>
* Do not try to recreate ldap user if they are already created (#9900)zeripath2020-01-211-12/+12
| | | | | | | | * Do not try to recreate ldap user if they are already created * just remove autoregister Co-authored-by: techknowlogick <matti@mdranta.net>
* fix wrong font url on semantic-ui (#9917)Lunny Xiao2020-01-213-3/+3
| | | | Co-authored-by: Lauris BH <lauris@nix.lv>
* move jquery and jquery-migrate to npm/webpack (#9813)silverwind2020-01-2110-244/+20
| | | | | | | | | | Currently, this needs to be its own chunk because fomantic depends on jQuery being present. The next step is to move fomantic to webpack too after which we can combine the index,fomantic and jquery files into one. jquery-migrate is still neccessary because our ancient version of Dropzone seems to break without it. I imagine it can be removed after a Dropzone upgrade.
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-2131-2817/+1785
|
* Filter locales under 25% (#9893)Antoine GIRARD2020-01-212-4/+19
| | | | | | | | * Create update-locales.sh * Update .drone.yml * fix file perms +x
* Update queue_redis.go (#9910)zeripath2020-01-211-5/+6
| | | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix missing defer prepareTestEnv(t)() on some tests (#9906)guillep2k2020-01-211-3/+3
| | | | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: zeripath <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-211-1/+1
|
* Fixed repo link in generated comment for cross repository dependency (#9863)Brad Albright2020-01-212-8/+33
| | | | | | | | | | * fixed link to issue in issue comments after adding/removing a dependency, before links assumed the issue was in the same repository. also changed the format of the displayed issue since the issue will not necessarily be in the same repo * based on pr comments, changed to use HTMLURL instead of piecing together the issue url, and added an if statement around the issue link display as a nil protection * only showing repo name in dependency comment if the issue is from another repo Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
* Use npm to manage fomantic and only build needed components (#9561)Lunny Xiao2020-01-2143-108664/+5614
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Use npm to manage fomantic * Only build needed semantic components * Fix make * Don't import fonts from google sites since we have loaded * [misc] devendor fomantic-ui and rebuild upon src or config changes only Signed-off-by: Jakob Ackermann <das7pad@outlook.com> * Change sort alphabetically of semantic components * Fix trailing slash * fix makefile * Remove dependency to gulp from package.json * Fix something * Simplife the makefile * add missed fomantic compnent Co-authored-by: Jakob Ackermann <das7pad@outlook.com>
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-201-0/+3
|
* Add documentation how to render PlantUML in code blocks. (#9894)David Svantesson2020-01-212-1/+37
| | | | | | | | | | | | | * Add documentation how to render plantuml in code blocks. * Review comments * Apply suggestions from code review Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: zeripath <art27@cantab.net>
* fix broken link (#9901)zeripath2020-01-201-1/+1
| | | | Co-authored-by: Lauris BH <lauris@nix.lv>
* Refactor repository check and sync functions (#9854)Lunny Xiao2020-01-2012-210/+313
| | | Move more general repository functions out of models/repo.go
* Add documentation to add Mermaid.js to Gitea (#9872)zeripath2020-01-201-2/+39
| | | | | | | | * Add documentation to add mermaid to Gitea * Update documentation Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-201-0/+1
|
* Add support for database schema in PostgreSQL (#8819)guillep2k2020-01-2028-407/+177
| | | | | | | | | | | | | | | | | | | * Add support for database schema * Require setting search_path for the db user * Add schema setting to admin/config.tmpl * Use a schema different from default for psql tests * Update postgres scripts to use custom schema * Update to xorm/core 0.7.3 and xorm/xorm c37aff9b3a * Fix migration test Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Fix wrong permissions check when issues/prs shared operations (#9885)Lunny Xiao2020-01-2011-28/+43
| | | | | | | | | | | * Fix wrong permissions check when issues/prs shared operations * move redirect to the last of the function * fix swagger Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* Add top author stats to activity page (#9615)Lauris BH2020-01-2013-906/+524
|
* Issue/PR Context Popups (#9822)John Olheiser2020-01-199-16/+113
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add data-index attribute to issue anchors Signed-off-by: jolheiser <john.olheiser@gmail.com> * Init JS Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add required data to anchor Signed-off-by: jolheiser <john.olheiser@gmail.com> * Finish popup Signed-off-by: jolheiser <john.olheiser@gmail.com> * Revert changes to html.go Signed-off-by: jolheiser <john.olheiser@gmail.com> * Better octicon contexts Signed-off-by: jolheiser <john.olheiser@gmail.com> * Split out popup function for re-use Signed-off-by: jolheiser <john.olheiser@gmail.com> * Style changes, test fixes, and cross-reference support Signed-off-by: jolheiser <john.olheiser@gmail.com> * Prefer em to px Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move label margin to base CSS Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move JS to separate file. Signed-off-by: jolheiser <john.olheiser@gmail.com> * Move JS to features and fix module Signed-off-by: jolheiser <john.olheiser@gmail.com> * Remove query-string and hash Co-Authored-By: silverwind <me@silverwind.io> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: zeripath <art27@cantab.net>
* Add option to prevent LDAP from deactivating everything on empty search (#9879)zeripath2020-01-207-0/+26
| | | | | | | | | | | * Add option to prevent LDAP from deactivating everything on empty search * Update options/locale/locale_en-US.ini Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Give the stdout on temp_repo error (#9871)zeripath2020-01-201-3/+3
| | | | Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Check user != nil before checking values (#9881)zeripath2020-01-191-7/+15
| | | | | | * Check user != nil before checking values * Handle autoAdmin
* Add missing columns to repository and user (#9861)guillep2k2020-01-192-0/+27
|
* Allow hyphen in language name (#9873)zeripath2020-01-191-1/+1
|
* Ensure that 2fa is checked on reset-password (#9857)zeripath2020-01-190-0/+0
| | | | | | | | | | | | * Ensure that 2fa is checked on reset-password * Apply suggestions from code review Co-Authored-By: Lauris BH <lauris@nix.lv> * Properly manage scratch_code regeneration Co-authored-by: Lauris BH <lauris@nix.lv>
* Ensure that 2fa is checked on reset-password (#9857)zeripath2020-01-192-9/+97
| | | | | | | | | | | | * Ensure that 2fa is checked on reset-password * Apply suggestions from code review Co-Authored-By: Lauris BH <lauris@nix.lv> * Properly manage scratch_code regeneration Co-authored-by: Lauris BH <lauris@nix.lv>
* Make CertFile and KeyFile relative to CustomPath (#9868)zeripath2020-01-194-6/+27
| | | | | | | | | | | | | | | | * Make CertFile and KeyFile relative to CustomPath The current code will absolute CertFile and KeyFile against the current working directory. This is quite unexpected for users. This code makes relative paths absolute against the CustomPath. Fix #4196 * Improve error reporting when reading certificates * Apply suggestions from code review Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> Co-authored-by: guillep2k <18600385+guillep2k@users.noreply.github.com>
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-191-0/+32
|
* run translations pipeline on arm server (#9865)techknowlogick2020-01-191-1/+1
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-191-0/+33
|
* Fix issues/pulls dependencies problems (#9842)Lunny Xiao2020-01-198-26/+57
| | | | | | | | * Fix issues/pulls dependencies problems * fix swagger and api param name * fix js
* Change won't sign information text to black. (#9843)David Svantesson2020-01-181-3/+3
| | | | | | | | | * Change won't sign information text to black. * icon and text same color Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
* Explicitly refer to PR in squash-merge commit message in case of external ↵David Svantesson2020-01-182-1/+9
| | | | | | | | | | tracker (#9844) * Explicitly refer to PR in squash-merge commit message in case of external tracker * documentation Co-authored-by: zeripath <art27@cantab.net>
* [Docs] add usefull info to REQUIRE_SIGNIN_VIEW (#9848)65432020-01-172-2/+2
|
* Changelog 1.10.3 (#9832) (#9850)65432020-01-172-11/+29
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-171-0/+6
|
* Improve notification pager (#9821)Lunny Xiao2020-01-172-8/+16
| | | | Co-authored-by: Antoine GIRARD <sapk@users.noreply.github.com>
* fix (#9836)65432020-01-171-1/+7
|
* Fix download file wrong content-type (#9825)Lunny Xiao2020-01-171-1/+7
| | | | | | | | * Fix download file wrong content-type * change the error text to be more precise * fix test
* [skip ci] Updated translations via CrowdinGiteaBot2020-01-171-3/+3
|
* Fix wrong identify poster on a migrated pull request when submi… (#9827)Lunny Xiao2020-01-172-2/+2
|
* Add setting to set default and global disabled repository units. (#8788)David Svantesson2020-01-1714-136/+311
| | | | | | | | | | | | | | | | | | * Add possibility to global disable repo units. * Add Default Repo Unit app.ini setting. * Hide units * Hide disabled repo units * Minor fixes * Indicate disabled units in team settings. Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Co-authored-by: zeripath <art27@cantab.net>
* Add "Update Branch" button to Pull Requests (#9784)65432020-01-1732-68/+489
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add Divergence * add Update Button * first working version * re-use code * split raw merge commands and db-change functions (notify, cache, ...) * use rawMerge (remove redundant code) * own function to get Diverging of PRs * use FlashError * correct Error Msg * hook is triggerd ... so remove comment * add "branch2" to "user2/repo1" because it unit-test "TestPullView_ReviewerMissed" use it but dont exist jet :/ * move GetPerm to IsUserAllowedToUpdate * add Flash Success MSG * imprufe code - remove useless js chage * fix-lint * TEST: add PullRequest ID:5 Repo: user2/repo1 Base: branch1 Head: pr-to-update * correct comments * make PR5 outdated * fix Tests * WIP: add pull update test * update revs * update locales * working TEST * update UI * misspell * change style * add 1s delay so rev exist * move row up (before merge row) * fix lint nit * UI remove divider * Update style * nits * do it right * introduce IsSameRepo * remove useless check Co-authored-by: Lauris BH <lauris@nix.lv>