aboutsummaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* Rework blame template and styling (#11885)Cirno the Strongest2020-06-155-73/+54
| | | | | | | * Rework blame template and styling * cleanup template and add missing NumLines Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2020-06-151-0/+10
|
* Vertically align review icons on repository sidebar (#11880)Cirno the Strongest2020-06-151-0/+4
| | | | | | | | | | | * Vertically align review icons on repository sidebar * Update web_src/less/_repository.less Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Better align items using flex within review request box (#11879)Cirno the Strongest2020-06-152-48/+60
| | | | | | | | * Better align items using flex within review request box * use justify-content Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2020-06-141-0/+9
|
* Invalidate comments when file is shortened (#11882)zeripath2020-06-141-1/+4
| | | | | | | | | | | * Invalidate comments when file is shortened Fix #10686 Signed-off-by: Andrew Thornton <art27@cantab.net> * handle 1 line Signed-off-by: Andrew Thornton <art27@cantab.net>
* Only write to global gitconfig if necessary (#11876)zeripath2020-06-132-25/+65
| | | | | | | | | | | | | * Only write to global gitconfig if necessary Fix #11855 Signed-off-by: Andrew Thornton <art27@cantab.net> * placate lint Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* ui: Show update branch item in merge box when it's necessary (#11761)赵智超2020-06-132-22/+53
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * ui: Show update branch item in merge box when it's necessary As title, should show it without care about whether this pr can be merged. fix #10959 Signed-off-by: a1012112796 <1012112796@qq.com> * fix ui * Fix ui, thanks to @silverwind. Co-authored-by: silverwind <me@silverwind.io> * fix lint * Update templates/repo/issue/view_content/pull.tmpl Co-authored-by: silverwind <me@silverwind.io> * Apply review suggestion Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: silverwind <me@silverwind.io> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Rework api/user/repos for pagination (#11827)Cirno the Strongest2020-06-133-29/+48
| | | | | | | | | | | | | | * Add count to `GetUserRepositories` so that pagination can be supported for `/user/{username}/repos` * Rework ListMyRepos to use models.SearchRepository ListMyRepos was an odd one. It first fetched all user repositories and then tried to supplement them with accessible map. The end result was that: * Limit for pagination did not work because accessible repos would always be appended * The amount of pages was incorrect if one were to calculate it * When paginating, all accessible repos would be shown on every page Hopefully it should now work properly. Fixes #11800 and does not require any change on Drone-side as it can properly interpret and act on Link header which we now set. Co-authored-by: Lauris BH <lauris@nix.lv>
* Disable all typographic replacements in markdown renderer (#11871)silverwind2020-06-132-8/+1
| | | | | | | | | | | | | | | | | | | * Disable all typographic replacements in markdown renderer Previously we only disabled some of them. This disables all the default replacements that goldmark's typographer extension offers, matching GitHub's renderer. Ref: https://github.com/yuin/goldmark#typographer-extension Fixes: https://github.com/go-gitea/gitea/issues/11001 * remove typographer extension completely * fix test * really fix test Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix repo internal icon when avatar is present (#11873)Cirno the Strongest2020-06-132-38/+25
| | | | | | | * Fix repo internal icon when avatar is present * fix tabs * move repo icons in header to separate template
* [skip ci] Updated translations via CrowdinGiteaBot2020-06-1232-25846/+141
|
* Fix 500 error on repos with no tags (#11870)mrsdizzie2020-06-121-1/+1
| | | | | | | | #11846 Introduced feature to show exact tag on commit view. However if a repo has no tags at all git prints out a separate and unhandled error " No names found, cannot describe anything." Adding --always to the command makes it always use the error in the style of "fatal: no tag exactly matches" even if there are no tags at all. Fixes #11869 Fixes #11868
* Add automatic JS license generation (#11810)silverwind2020-06-128-138/+142
| | | | | | | | | | | | | | | | | | | | | | | | | | * Add automatic JS license generation Removed librejs file and replaced it with a plaintext file that is built from all JS dependencies that are included in the webpack build. It does not cover the few remaining statically vendored files and fomantic is added manually because it's not yet in the webpack build process. Fixes: https://github.com/go-gitea/gitea/issues/11630 * fix lint * remove jslicense, we're not librejs compatible any more * remove license.txt test as it depens on absent files * small optimization * trailing comma * localize and capitalize the word 'licenses' * reduce text to just 'Licenses' Co-authored-by: Lauris BH <lauris@nix.lv>
* Fix nil pointer in default issue mail template (#11862)mrsdizzie2020-06-121-2/+2
| | | | | | | | | | | * Fix nil pointer in default issue mail template Fix: template: issue/default:20:17: executing "issue/default" at <.Comment.Type>: nil pointer evaluating interface {}.Type Introduced in #11167 * another one Co-authored-by: zeripath <art27@cantab.net>
* [skip ci] Updated translations via CrowdinGiteaBot2020-06-122-2/+2
|
* Fix search form button overlap (#11840)Cirno the Strongest2020-06-112-10/+6
| | | Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Handle more pathological branch and tag names (#11843)zeripath2020-06-118-88/+42
| | | | | | | | | | | * Handle more pathological branch and tag names Signed-off-by: Andrew Thornton <art27@cantab.net> * Fix failing test Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* [skip ci] Updated translations via CrowdinGiteaBot2020-06-1132-0/+32
|
* Fix commit search in all branches (#11849)Cirno the Strongest2020-06-111-1/+27
| | | | | | | * Fix commit search in all branches * comments Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Improve label edit buttons labels (#11841)silverwind2020-06-112-48/+48
| | | | | | | | | | | | | * Improve label edit buttons labels Previously when editing the buttons in the "Edit Label" modal were a strange "Update" and "No". Improved them to "Save" and "Cancel". Also fixed indentation in the template file, recommended to view changes with the "Hide whitespace changes" option enabled on GitHub. * remove unnecessary button icon Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Add migration to set IsArchived false if it is null (#11853)zeripath2020-06-114-1/+55
| | | | | | | | | | | | | * Add migration to set IsArchived false if it is null Fix #11824 Signed-off-by: Andrew Thornton <art27@cantab.net> * Add doctor Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Show exact tag for commit on diff view (#11846)Cirno the Strongest2020-06-113-1/+25
| | | | | | | * Show exact tag for commit on diff view * Fix comment Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* cloudron: update link to demo (#11857)Girish Ramakrishnan2020-06-111-2/+2
|
* Prevent panic on empty HOST for mysql (#11850)zeripath2020-06-111-1/+1
| | | Signed-off-by: Andrew Thornton <art27@cantab.net>
* Set the base url when migrating from Gitlab using access token or username ↵Gernot Eger2020-06-111-1/+1
| | | | | | | without password (#11852) When migrating from gitlab, set the baseUrl in NewGitlabDownloader when using an access token or username without password Fix #11851
* Update JS dependencies (#11842)silverwind2020-06-112-776/+921
| | | Result of `make npm-update`, no noteworthy changes.
* Don't consider tag refs as valid for branch name (#11847)Cirno the Strongest2020-06-101-1/+1
| | | Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Don't add same line code comment box twice (#11837)silverwind2020-06-101-8/+24
| | | | | | | | | | | | | | | | | * Don't add same line code comment box twice Clicking the same '+' button multiple times adds multiple comment boxes to the same line. Prevent this by assigning a unique key to each comment box and checking if it already exists in the DOM. Also cleaned up the code around this a bit. * Update web_src/js/index.js Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <matti@mdranta.net> Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Re-center the cog on the center of the lock (#11844)zeripath2020-06-101-1/+1
| | | | | Signed-off-by: Andrew Thornton <art27@cantab.net> Co-authored-by: Lauris BH <lauris@nix.lv>
* Replace jquery-datetimepicker with native date input (#11684)silverwind2020-06-1017-232/+10
| | | | | | | | | | | | This removes the jQuery plugin as well as the associated config options. Native input[type=date] does not require a language attribute as it is localized by default, except for the placeholder attribute for which I currently piggy-back the repo.issues.due_date_form localization option. Implementation should pretty much match GH. Of note is that Safari does not provide a UI for this input type, but I don't think providing one is neccessary and GH did not bother either. Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Fix inserting excerpt on compare diff (#11833)Cirno the Strongest2020-06-101-1/+1
| | | | | | | | | * Fix inserting excerpt on compare diff * use currentTarget * remove comment Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Use DEFAULT_PAGING_NUM instead of MAX_RESPONSE_ITEMS in ListOptions (#11831)Cirno the Strongest2020-06-101-1/+4
| | | Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* fix a small nit (#11834)赵智超2020-06-101-1/+2
| | | | | As title, run this line in one time is enough. Signed-off-by: a1012112796 <1012112796@qq.com>
* [skip ci] Updated translations via CrowdinGiteaBot2020-06-101-2/+2
|
* API expose usefull General Repo settings settings (#11758)65432020-06-105-0/+74
| | | | | | | | | | | * GeneralRepoSettings expose MirrorsDisabled, HTTPGitDisabled, MaxCreationLimit * Apply suggestions from code review Co-authored-by: proton <25139420+proton-ab@users.noreply.github.com> * lint Co-authored-by: proton <25139420+proton-ab@users.noreply.github.com>
* API allow to create closed milestones (#11745)65432020-06-094-0/+28
| | | | | | | | * API allow to create closed milestones * set CloseDate too Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* rework eslint config (#11615)silverwind2020-06-098-163/+725
| | | | | | | | | | | | | | | | | | | | | | | | * rework eslint config - use explicit config that only enables rules - upgrade eslint to 7.1.0 - add new plugins with selected rules enabled - fix discovered issues, remove global wipPrefixes * remove if * undo template change * add disabled rules as well for easier config updating * add missing disabled rule * update eslint and plugins * fix new violation * remove deprecated rules Co-authored-by: Lauris BH <lauris@nix.lv>
* Refactor: Remove Dependencys from Migration v112-v119 (#11811)65432020-06-093-8/+18
| | | | | | | * v119 * v116 * v112
* Fix reply octicon (#11821)John Olheiser2020-06-092-2/+2
| | | Signed-off-by: jolheiser <john.olheiser@gmail.com>
* Use crispEdges rendering for octicon-internal-repo (#11801)Cirno the Strongest2020-06-091-0/+8
| | | | | | | * Use crispEdges rendering for octicon-internal-repo * Update _svg.less Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Remove page size limit comment from swagger (#11806)Cirno the Strongest2020-06-0940-120/+120
| | | Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* Honor DEFAULT_PAGING_NUM for API (#11805)Cirno the Strongest2020-06-085-15/+16
| | | | | | | | | | * Honor DEFAULT_PAGING_NUM for API * set pagination to 10 for tests * lint Co-authored-by: Lauris BH <lauris@nix.lv> Co-authored-by: techknowlogick <techknowlogick@gitea.io>
* give gitea time to calculate language stats (#11812)65432020-06-081-0/+4
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-06-082-5/+5
|
* Ensure rejected push to refs/pull/index/head fails nicely (#11724)zeripath2020-06-082-5/+37
| | | | | | | | | | A pre-receive hook that rejects pushes to refs/pull/index/head will cause a broken PR which causes an internal server error whenever it is viewed. This PR handles prevents the internal server error by handling non-existent pr heads and sends a flash error informing the creator there was a problem. Signed-off-by: Andrew Thornton <art27@cantab.net>
* Add option to API to update PullRequest base branch (#11666)65432020-06-074-3/+52
| | | | | * EditPull: add option to change base Close #11552
* Work around fomantic 2.8.5 bugs (#11767)Cirno the Strongest2020-06-072-1/+9
| | | | | | | | Work around fomantic 2.8.5 bugs Closes #11759 Related fomantic/Fomantic-UI#1372 and fomantic/Fomantic-UI#1473
* In File Create/Update API return 404 if Branch does not exist (#11791)65432020-06-071-0/+4
|
* [skip ci] Updated translations via CrowdinGiteaBot2020-06-073-17/+17
|