summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Leave non-dated issues for last (#8871)guillep2k2019-11-091-1/+2
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-091-0/+16
|
* Fix require external registration password (#8885)guillep2k2019-11-091-3/+3
| | | | | | * Fix require external registration password * Fix ctx on error condition by @jolheiser
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-0924-48/+0
|
* Fix password complexity check on registration (#8887)guillep2k2019-11-092-2/+7
| | | | | | * Fix registration password complexity * Fix integration to use a complex password ;)
* Allow to add and remove all repositories to/from team. (#8867)David Svantesson2019-11-097-45/+175
| | | | | | | | | | | | | | | | * Allow to add and remove all repositories to team. * Change style, buttons on same row. * Apply suggestions from code review Grammar Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Move set num repos to lower function. * Make general language sentences
* Create third-party-tools.zh-cn.md (#6303)MysticBoy2019-11-081-0/+36
| | | | | | | | * Create third-party-tools.zh-cn.md * Update third-party-tools.zh-cn.md * Update third-party-tools.zh-cn.md
* Fix bug when migrate from API (#8631)Lunny Xiao2019-11-084-9/+54
| | | | | | | | | | | | * fix bug when migrate from API * fix test * fix test * improve * fix error message
* Webhook support custom proxy (#8760)Lunny Xiao2019-11-086-3/+101
| | | | | | | | | | | | * Webhook support custom proxy * Add glob support on webhook proxy host rules * fix app.ini.sample * improve code and app.ini.sample * update cheetsheet about added webhook options
* Move some actions to notification/action (#8779)Lunny Xiao2019-11-0810-107/+88
| | | | | | | | * Move some actions to notification/action * Fix test * fix test
* Add password reset to FAQ (#8883)John Olheiser2019-11-082-1/+16
| | | | | | | | | | | | | | | | | | | | | | * Add password reset to FAQ Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add links to email setup docs Signed-off-by: jolheiser <john.olheiser@gmail.com> * Add en-us to email setup Signed-off-by: jolheiser <john.olheiser@gmail.com> * Update docs/content/doc/help/faq.en-us.md Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Manually merge changes from @guillep2k and add small changes Signed-off-by: jolheiser <john.olheiser@gmail.com>
* a11y: Improve accessibility of dropdown menus (#8638)Jookia2019-11-085-0/+4031
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * js: Import Semantic-UI's dropdown.js (version 2.3.1) * js: Set tabindex=-1 on dropdown items Setting tabindex=-1 on focusable elements within dropdown menus allows the user to treat dropdown menus as a single focusable item with its own internal navigation using arrow keys. * js: Don't use jQuery to click menu items Menu items are often <a> elements, which jQuery refuses to trigger click events on. Instead it just bubbles up to the menu. Using HTMLElement's click method fixes this and makes menu items clickable from the keyboard using dropdown menus. * js: Set correct ARIA 1.1 roles on dropdown menus Setting role= makes assistive technology aware there is a widget here. In this case, Orca will now exit browse mode and allow us to capture keydown events when focused on a dropdown menu. It will also inform the user that there's a menu focused. Since dropdowns can be used in multiple elements each with different ARIA roles, a guessRole method is used to find the correct role. All roles I consider possible are listed, but only menu is implemented. * js: Set aria-expanded when dropdown menus show and hide This is deliberately done before the transition finishes so that screen readers get immediate feedback. * js: Set aria-label or aria-labelledby on dropdown menus This makes dropdown menu buttons screen reader accessible. aria-labelledby refers to an element using an ID, so the chosen labels are now assigned a unique ID- This ID is not stable, do not refer to it with user scripts. * js: Set aria-activedescendant on dropdown menus As the menus grab focus and navigate by tracking a 'selected' div class, assistive technology has no idea that what the current selection is. Assign IDs to each menu item and set aria-activedescendant to the ID of the currently selected menu item. When the menu is unfocused, remove aria-activedescendant- This isn't neccessary but in my experience it triggers Orca to remind the user of their current selection when re-focusing the menu. * Makefile: Make eslint ignore semantic.dropdown.js This file is taken from Semantic UI which isn't linted upstream. Ignore it as we won't fix these issues. * js: Add version note to semantic.dropdown.js * Add Md5 AppVer to templates/base/footer.tmpl Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Add Md5 AppVer to templates/pwa/serviceworker_js.tmpl Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * semantic.dropdown.js -> semantic.dropdown.custom.js * Use eslintignore * remove bogus submodule
* Fix edit content button on migrated issue content (#8877)mrsdizzie2019-11-081-1/+1
| | | | | | Typo on a closing span tag caused edit button not to work properly on the original issue content for a migrated issue. Fixes #8876
* Show due date in dashboard issues list (#8860)mrsdizzie2019-11-074-2/+13
| | | | | | | | | | | | | * Show due date in dashboard issues list Include due date when vieiwiing all issues on dashboard (matching what we show for repo issue lists). Fixes #8859 * Put in same order as repo issue list * Add suggested changes and also update repo issue list to match
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-071-0/+8
|
* Fix count for commit graph last page (#8843)jaqra2019-11-073-1/+22
| | | | | | | | | | | | * Fix count for commit graph last page * Remove used once variable * Move func to model * capitalize method name * fix error message
* Use templates for issue e-mail subject and body (#8329)guillep2k2019-11-0713-161/+780
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add template capability for issue mail subject * Remove test string * Fix trim subject length * Add comment to template and run make fmt * Add information for the template * Rename defaultMailSubject() to fallbackMailSubject() * General rewrite of the mail template code * Fix .Doer name * Use text/template for subject instead of html * Fix subject Re: prefix * Fix mail tests * Fix static templates * [skip ci] Updated translations via Crowdin * Expose db.SetMaxOpenConns and allow non MySQL dbs to set conn pool params (#8528) * Expose db.SetMaxOpenConns and allow other dbs to set their connection params * Add note about port exhaustion Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * Prevent .code-view from overriding font on icon fonts (#8614) * Correct some outdated statements in the contributing guidelines (#8612) * More information for drone-cli in CONTRIBUTING.md * Increases the version of drone-cli to 1.2.0 * Adds a note for the Docker Toolbox on Windows Signed-off-by: LukBukkit <luk.bukkit@gmail.com> * Fix the url for the blog repository (now on gitea.com) Signed-off-by: LukBukkit <luk.bukkit@gmail.com> * Remove TrN due to lack of lang context * Redo templates to match previous code * Fix extra character in template * Unify PR & Issue tempaltes, fix format * Remove default subject * Add template tests * Fix template * Remove replaced function * Provide User as models.User for better consistency * Add docs * Fix doc inaccuracies, improve examples * Change mail footer to math AppName * Add test for mail subject/body template separation * Add support for code review comments * Update docs/content/doc/advanced/mail-templates-us.md Co-Authored-By: 6543 <24977596+6543@users.noreply.github.com>
* Theme arc-green: reverse heatmap colors (#8840)Damien Pollet2019-11-062-1/+32
| | | | | | | | | | | | | | * Theme arc-green: reverse heatmap colors This uses the same colors as the updated palette in the base theme. See #8709 and #5864, in particular [my comment showing the problem](https://github.com/go-gitea/gitea/issues/5864#issuecomment-462334171) * Rebuild CSS * Use link color as hot, interpolate between hot and cold colors * Use color from a:hover
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-062-3/+12
|
* Split sendCreateCommentAction as two parts, one for update comment related ↵Lunny Xiao2019-11-062-30/+48
| | | | | | | | informations, another for actions (#8784) * Split sendCreateCommentAction as two parts, one for update comment related informations, another for actions * fix lint
* Add team option to grant rights for all organization repositories (#8688)David Svantesson2019-11-0617-75/+382
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add field IsAllRepositories to team * Add AllRepositories to team UI * Manage team with access to all repositories * Add field IsAllRepositories to team API * put backticks around table/column names * rename IsAllRepositories to IncludesAllRepositories * do not reload slice if already loaded * add repo to teams with access to all repositories when changing repo owner * improve tests for teams with access to all repositories * Merge branch 'master' * Change code for adding all repositories Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * fmt after merge * Change code in API EditTeam similar to EditTeamPost web interface Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * Clarify that all repositories will be added Signed-off-by: David Svantesson <davidsvantesson@gmail.com> * All repositories option under Permissions headline * New setting group 'Repository access' * Move check IncludeAllRepositories to removeRepository. * Revert "Move check IncludeAllRepositories to removeRepository." and add comment instead. This reverts commit 753b7d205be260b8be465b5291a02975a81f3093. * Clarify help text what options do.
* Move release webhook to notification (#8817)Lunny Xiao2019-11-062-41/+35
| | | | | | | | | | * Move release webhook to notification * Extract release webhook method * fix bug * fix import
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-062-0/+24
|
* Move repofiles webhooks to notification (#8807)Lunny Xiao2019-11-065-68/+77
|
* Add migrate command to docs (#8842)John Olheiser2019-11-052-0/+11
| | | | | | | | | | | | | | | | | | * Add migrate command to docs Signed-off-by: jolheiser <john.olheiser@gmail.com> * Link to CLI Signed-off-by: jolheiser <john.olheiser@gmail.com> * Clarify idempotence Signed-off-by: jolheiser <john.olheiser@gmail.com> * Sneak in convert command Signed-off-by: jolheiser <john.olheiser@gmail.com>
* update docs to latest version (#8845)techknowlogick2019-11-051-1/+1
|
* Fix to close opened io resources as soon as not needed (#8839)Lauris BH2019-11-051-33/+39
| | | | | | * Fix to close opened io resources as soon as not needed * Remove unneeded err checks
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-052-0/+6
|
* Move pull webhook to notification (#8805)Lunny Xiao2019-11-057-70/+83
| | | | | | * Move pull webhook to notification * fix fmt
* Update go-org to optimize code (#8824)Lauris BH2019-11-0519-113/+4824
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-051-7/+12
|
* Fix (open/closed) issue count when label excluded (#8815)jaqra2019-11-051-2/+6
| | | | | | * Fix (open/closed) issue count when label excluded * Use capital sql keywords
* Add additional periods to activity page (#8829)Lauris BH2019-11-053-0/+18
|
* README: Update Screenshots and Badges in ZH (#8813)65432019-11-042-14/+13
| | | | | | | | | | | | | | * use relative instead of absolute paths * update badges of ZH readme * update screenshots * use <style> for table * remove useles stype * absolute paths for images
* Fix new user form for non-local users (#8826)Lauris BH2019-11-042-10/+12
|
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-041-1/+1
|
* Fix: remove duplicated signed commit icons (#8820)Wenxuan Zhao2019-11-041-33/+32
| | | Signed-off-by: Wenxuan Zhao <viz@linux.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-041-0/+13
|
* Explicity indicate the socket unit to use the service unit "gitea.service" ↵Ramon Fischer2019-11-041-2/+3
| | | | | | | | | | | | (#8804) * rename socket file, make example more precise, use long parameter name * correct path * use the correct path to the configuration file according to the documentation * rename the socket unit back to 'gitea.main.socket', explicitly indicate that the socket unit should use the service file 'gitea.service'
* Move more webhook codes from models to webhook module (#8802)Lunny Xiao2019-11-0312-135/+145
| | | | * Move more webhook codes from models to webhook module
* Move actions to notification (#8785)Lunny Xiao2019-11-035-37/+118
|
* Fix API deadline removal (#8759)David Svantesson2019-11-036-12/+34
| | | | | | | | | | * Handle deadline is zero (to remove deadline) * Better API documentation for issue deadline. * Add parameter to unset due date. * Update pull edit API comment
* Fix SSH2 conditonal in key parsing code (#8806)mrsdizzie2019-11-032-1/+14
| | | | | | | | | Avoid out of bounds error by using strings.HasPrefix to check for starting SSH2 text rather than assuming user input has at least 31 characters. Add tests for bad input as well. Fixes #8800
* Move push commits events to notification (#8783)Lunny Xiao2019-11-036-36/+41
| | | | | | | | * Move push commits events to notification * Update modules/notification/base/null.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com>
* [Fix] Checkbox at RepoSettings Protected Branch (#8799)65432019-11-031-1/+1
| | | | | | * add missing "d" * CI.redo()
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-021-0/+1
|
* FIX download diff/patch from commit (#8792)65432019-11-021-2/+7
| | | | | | | | | | | | | | * send fix * restart CI * us Commit only when available * CI.redo() * more specific if statement Co-Authored-By: mrsdizzie <info@mrsdizzie.com>
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-021-0/+1
|
* Add API for Issue set Subscription (#8729)65432019-11-027-3/+425
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * add issue subscriber API * subscribers return []user.APIFormat * add comments * more meaningfull description * without "reqToken()" api works ... * should be still secure beause ctx.user has to be there or nothing will hapen * FIX: getIssueWatchers() get only aktive suscriber * add return avter error on right position * Revert "FIX: getIssueWatchers() get only aktive suscriber" This reverts commit 5eca9291858a821981992b0aaa38cef610d84bca. * Update routers/api/v1/repo/issue.go Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * test go linter again * update swagger * GetIssueWatchers -> GetIssueSubscribers part one Co-Authored-By: guillep2k <18600385+guillep2k@users.noreply.github.com> * GetIssueWatchers -> GetIssueSubscribers part two * Revert "test go linter again" This reverts commit bab12356227e44334de113b76f12099de0b8aaa6. * change description for unsubscribe too * golangci-lint timeout avter 5min * move issueSubscription to seperate file * dont create black entitys * use IsWatching until refactoring * Update License Info * better swagger description * Update .golangci.yml because functions moved from issue.go to issue_subscription.go * add IssueWatchList type * batch tasks * use e Engien * add error handling * error should be the last type when returning multiple items * short version * reurn empy UserList instead of nil
* [skip ci] Updated translations via CrowdinGiteaBot2019-11-021-0/+2
|