]> source.dussan.org Git - gitea.git/log
gitea.git
6 years agoAdd missing History link to directory listings (#4829)
Bernhard Fröhlich [Mon, 3 Sep 2018 03:24:19 +0000 (05:24 +0200)]
Add missing History link to directory listings (#4829)

The feature to list commits from a subdirectory is already there but
so far the history link to it was missing. There is a History button
in the view_file.tmpl already so avoid showing two history buttons in
that case.

The GitHub webinterface has the same History button in the same place
so this makes gitea a little bit more compatible.

Signed-off-by: Bernhard Froehlich <decke@bluelife.at>
6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 31 Aug 2018 21:23:17 +0000 (21:23 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoMinor fix to TRANSLATORS (#4836)
SagePtr [Fri, 31 Aug 2018 21:22:11 +0000 (23:22 +0200)]
Minor fix to TRANSLATORS (#4836)

* Minor fix to TRANSLATORS

Replaced @ with AT and removed " accidentially put in few lines

* Update TRANSLATORS

6 years agoMake reverse proxy auth optional (#4643)
Najib Idrissi [Wed, 29 Aug 2018 14:39:16 +0000 (16:39 +0200)]
Make reverse proxy auth optional (#4643)

* Make reverse proxy auth optional

If the option ENABLE_REVERSE_PROXY_AUTHENTICATION is enabled, make
reverse proxy auth optional, instead of failing if the authentication
did not succeed.

Fixes #3973

Signed-off-by: Najib Idrissi <najib.idrissi.kaitouni@gmail.com>
* Update http.go

6 years agoupdate image used for build-without-gcc step (#4818)
techknowlogick [Wed, 29 Aug 2018 14:01:58 +0000 (10:01 -0400)]
update image used for build-without-gcc step (#4818)

As we've dropped support for go 1.8 (see 1.5.0 release post),
now we need to ensure that a minimum of go 1.9 builds correctly.

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 29 Aug 2018 13:46:42 +0000 (13:46 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoUpgrade images in .drone.yml to more recent versions (#4819)
techknowlogick [Wed, 29 Aug 2018 13:43:58 +0000 (09:43 -0400)]
Upgrade images in .drone.yml to more recent versions (#4819)

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 28 Aug 2018 15:50:29 +0000 (15:50 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoUpdate legacy branch and tag URLs in dashboard to new format (#4812)
SagePtr [Tue, 28 Aug 2018 15:48:15 +0000 (17:48 +0200)]
Update legacy branch and tag URLs in dashboard to new format (#4812)

6 years agoLocale for Edit and Remove due date issue (#4802)
Joel da Rosa [Mon, 27 Aug 2018 18:34:12 +0000 (15:34 -0300)]
Locale for Edit and Remove due date issue (#4802)

6 years agoAdd Orzech to translator list (#4801)
Piotr Orzechowski [Mon, 27 Aug 2018 03:31:10 +0000 (05:31 +0200)]
Add Orzech to translator list (#4801)

6 years agoHide home button when landing page is not set to home (#4651)
Piotr Orzechowski [Mon, 27 Aug 2018 02:23:27 +0000 (04:23 +0200)]
Hide home button when landing page is not set to home (#4651)

6 years agoFix missing release title in webhook (#4783) (#4796)
SagePtr [Sun, 26 Aug 2018 15:24:33 +0000 (17:24 +0200)]
Fix missing release title in webhook (#4783) (#4796)

6 years agoUpdate en-us and fr-fr versions of the "Upgrade from Gogs" doc (#4618)
Deoren Moor [Sat, 25 Aug 2018 06:47:47 +0000 (01:47 -0500)]
Update en-us and fr-fr versions of the "Upgrade from Gogs" doc (#4618)

* Update "Upgrade from Gogs" en-us doc

- Move "Change gogs specific information" FROM/TO steps up
  to just beneath matching section header, adjust indention
  and explicitly specify syntax of code sample to provide
  highlighting

- Adjust header levels to match what appears to be the
  intended level, remove trailing decoration (see below)

- Move "Upgrading to most recent ..." section down, remove
  decoration (section header formatting likely covers this
  well enough already)

refs go-gitea/gitea#4286, go-gitea/gitea#3558

* Update "Upgrade from Gogs" fr-fr doc

- Adjust indention and explicitly specify syntax of code
  sample to provide highlighting

- Adjust header levels to match what appears to be the
  intended level, remove trailing decoration since
  section header formatting likely covers this
  well enough already

refs go-gitea/gitea#4286, go-gitea/gitea#3558

6 years agoDisable 'May Import Local Repository' when is disabled by setting (Issue #4779) ...
EnricoFerro [Fri, 24 Aug 2018 05:00:22 +0000 (07:00 +0200)]
Disable 'May Import Local Repository' when is disabled by setting (Issue #4779) (#4780)

6 years agoDon't disclose emails of all users when sending out emails (#4664)
techknowlogick [Fri, 24 Aug 2018 04:41:26 +0000 (00:41 -0400)]
Don't disclose emails of all users when sending out emails (#4664)

6 years agoAPI /admin/users/{username} missing parameter (#4775)
EnricoFerro [Thu, 23 Aug 2018 23:59:47 +0000 (01:59 +0200)]
API /admin/users/{username} missing parameter (#4775)

6 years agoMySQL TLS (#4642)
Russell Aunger [Thu, 23 Aug 2018 22:42:02 +0000 (18:42 -0400)]
MySQL TLS (#4642)

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 23 Aug 2018 18:13:57 +0000 (18:13 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoAdd myself to maintainers (#4777)
Lanre Adelowo [Thu, 23 Aug 2018 18:12:57 +0000 (19:12 +0100)]
Add myself to maintainers (#4777)

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 23 Aug 2018 06:16:16 +0000 (06:16 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoMake sure to reset commit count in the cache on mirror syncing (#4720)
Lanre Adelowo [Thu, 23 Aug 2018 06:15:07 +0000 (07:15 +0100)]
Make sure to reset commit count in the cache on mirror syncing (#4720)

* Make sure to reset commit count in the cache on mirror syncing

* reset count of commits in all branches

6 years agoFixed bug where team with admin privelege type doesn't get any unit attached to the...
Lanre Adelowo [Tue, 21 Aug 2018 17:02:32 +0000 (18:02 +0100)]
Fixed bug where team with admin privelege type doesn't get any unit attached to the team (#4719)

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 21 Aug 2018 13:58:07 +0000 (13:58 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoadd letsencrypt to Gitea (#4189)
Fluf [Tue, 21 Aug 2018 13:56:50 +0000 (09:56 -0400)]
add letsencrypt to Gitea (#4189)

6 years agoUser shouldn't be able to approve or reject his/her own PR (#4729)
Lanre Adelowo [Mon, 20 Aug 2018 05:04:01 +0000 (06:04 +0100)]
User shouldn't be able to approve or reject his/her own PR (#4729)

* Make sure author cannot reject/approve their own PR

* Disable buttons in templates too

* Remove unneccessary if check since the switch below catches it

* Fix IsOwner check

* Update template and remove new template variable

* Add alert template and redirect to diff page on review failure

* Redirect to files diff as a little update to #4632

6 years agoallow WIP marker to contains < or > (#4709)
Julien Tant [Sun, 19 Aug 2018 19:00:10 +0000 (21:00 +0200)]
allow WIP marker to contains < or > (#4709)

6 years agoDisplay error when adding a user to a team twice (#4746)
Lanre Adelowo [Sun, 19 Aug 2018 18:49:19 +0000 (19:49 +0100)]
Display error when adding a user to a team twice (#4746)

6 years agoAdd whitespace between chinese characters and english characters. (#4731)
Tosone [Fri, 17 Aug 2018 01:26:00 +0000 (09:26 +0800)]
Add whitespace between chinese characters and english characters. (#4731)

Signed-off-by: Tosone <i@tosiney.com>
6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 16 Aug 2018 11:53:51 +0000 (11:53 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoFix failure on creating pull request with assignees (#4419) (#4583)
SagePtr [Thu, 16 Aug 2018 11:52:51 +0000 (13:52 +0200)]
Fix failure on creating pull request with assignees (#4419) (#4583)

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 15 Aug 2018 22:59:13 +0000 (22:59 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoRemove UsePrivilegeSeparation from the Docker sshd_config, see #2876 (#4722)
Andrew Phillips [Wed, 15 Aug 2018 22:58:12 +0000 (19:58 -0300)]
Remove UsePrivilegeSeparation from the Docker sshd_config, see #2876 (#4722)

Signed-off-by: Andrew Phillips <theasp@gmail.com>
6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 15 Aug 2018 11:56:09 +0000 (11:56 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoFix incorrect caption of webhook setting (#4701) (#4717)
SagePtr [Wed, 15 Aug 2018 11:55:17 +0000 (13:55 +0200)]
Fix incorrect caption of webhook setting (#4701) (#4717)

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 15 Aug 2018 06:30:05 +0000 (06:30 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoImprove URL validation for external wiki and external issues (#4710)
Lauris BH [Wed, 15 Aug 2018 06:29:37 +0000 (09:29 +0300)]
Improve URL validation for external wiki  and external issues (#4710)

* Improve URL validation for external wiki  and external issues

* Do not allow also localhost address for external URLs

6 years agoMake cookies HttpOnly and obey COOKIE_SECURE flag (#4706)
SagePtr [Tue, 14 Aug 2018 20:16:37 +0000 (22:16 +0200)]
Make cookies HttpOnly and obey COOKIE_SECURE flag (#4706)

6 years agoAdd whitespace handling to PR-comparsion (#4683)
nemoinho [Tue, 14 Aug 2018 17:49:33 +0000 (19:49 +0200)]
Add whitespace handling to PR-comparsion (#4683)

* Add whitespace handling to PR-comparsion

In a PR we have to keep an eye on a lot of different things. But sometimes the
bare code is the key-thing we want to care about and just don't want to care
about fixed indention on some places. Especially if we follow the pathfinder
rule we face a lot of these situations because these changes don't break the
code in many languages but improve the readability a lot.

So this change introduce a fine graned button to adjust the way how the
reviewer want to see whitespace-changes within the code.

The possibilities reflect the possibilities from git itself except of the
`--ignore-blank-lines` flag because that one is also handled by `-b` and is
really rare.

Signed-off-by: Felix Nehrke <felix@nehrke.info>
6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 14 Aug 2018 06:11:45 +0000 (06:11 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoFocus title input when clicking helper link (#4696)
Julien Tant [Tue, 14 Aug 2018 06:10:26 +0000 (08:10 +0200)]
Focus title input when clicking helper link (#4696)

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 13 Aug 2018 19:05:41 +0000 (19:05 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoDisable merging a WIP Pull request (#4529)
Julien Tant [Mon, 13 Aug 2018 19:04:39 +0000 (21:04 +0200)]
Disable merging a WIP Pull request (#4529)

* prevent pull request to be merged when PR is a WIP

* add tests

* add helper to prepend WIP: in PR title

* move default wip prefixes into settings

* use configurable WIP prefixes in javascript and default to first one in templates

* add documentation

* add unit test on pull model

Signed-off-by: Julien Tant <julien@craftyx.fr>
6 years agoadd vendor to user reserved words and format words list according alphabet (#4685)
Lunny Xiao [Mon, 13 Aug 2018 05:02:18 +0000 (13:02 +0800)]
add vendor to user reserved words and format words list according alphabet (#4685)

6 years agoHide org/create menu item in Dashboard if user has no rights (#4678) (#4680)
SagePtr [Sun, 12 Aug 2018 17:16:10 +0000 (19:16 +0200)]
Hide org/create menu item in Dashboard if user has no rights (#4678) (#4680)

6 years agoFix dark theme diff box header backround color (#4674)
Lauris BH [Sun, 12 Aug 2018 13:55:48 +0000 (16:55 +0300)]
Fix dark theme diff box header backround color (#4674)

6 years agoUse updated docs link on install page (#4668)
techknowlogick [Sun, 12 Aug 2018 01:05:52 +0000 (21:05 -0400)]
Use updated docs link on install page (#4668)

Fix #4665

6 years agomake sure to set pr split view (#4617)
Lanre Adelowo [Sun, 12 Aug 2018 00:20:33 +0000 (01:20 +0100)]
make sure to set pr split view (#4617)

Signed-off-by: Lanre Adelowo <yo@lanre.wtf>
6 years agoEnable swagger validation back as issue with it has been fixed upstream (#4673)
Lauris BH [Sun, 12 Aug 2018 00:08:17 +0000 (03:08 +0300)]
Enable swagger validation back as issue with it has been fixed upstream (#4673)

6 years agoUpdate gitea version in install-from-binary docs (#4670)
SagePtr [Sat, 11 Aug 2018 19:47:14 +0000 (21:47 +0200)]
Update gitea version in install-from-binary docs (#4670)

6 years agolog user in after a successful sign up (#4615)
Lanre Adelowo [Sat, 11 Aug 2018 19:33:19 +0000 (20:33 +0100)]
log user in after a successful sign up (#4615)

6 years agoAdd gitea/issues link to 500 page (#4654)
SagePtr [Sat, 11 Aug 2018 17:04:43 +0000 (19:04 +0200)]
Add gitea/issues link to 500 page (#4654)

6 years agoAdd 1.5.0 changelog (#4661)
techknowlogick [Sat, 11 Aug 2018 08:38:44 +0000 (04:38 -0400)]
Add 1.5.0 changelog (#4661)

6 years agoimprove comparison to add issue dependency (#4658)
Lunny Xiao [Fri, 10 Aug 2018 05:22:07 +0000 (13:22 +0800)]
improve comparison to add issue dependency (#4658)

6 years agoFix Split-View line adjustment (#4622)
nemoinho [Thu, 9 Aug 2018 08:28:55 +0000 (10:28 +0200)]
Fix Split-View line adjustment (#4622)

The $-function is unreachable in the previous implementation because jQuery is
not loaded yet. I fix this by executing the function after the content is
loaded, so jQuery is loaded at the time of execution and the call will not fail
anymore.

Signed-off-by: Felix Nehrke <felix@nehrke.info>
6 years agoSite admin could create repos even MAX_CREATION_LIMIT=0 (#4645)
Lunny Xiao [Thu, 9 Aug 2018 01:04:16 +0000 (09:04 +0800)]
Site admin could create repos even MAX_CREATION_LIMIT=0 (#4645)

* site admin could create repos even MAX_CREATION_LIMIT=0

* Optimize if structure

6 years agoRemove link to GitHub issues (#4639)
techknowlogick [Wed, 8 Aug 2018 15:07:34 +0000 (11:07 -0400)]
Remove link to GitHub issues (#4639)

6 years agoFix custom templates being ignored (#4638)
Piotr Orzechowski [Wed, 8 Aug 2018 11:15:48 +0000 (13:15 +0200)]
Fix custom templates being ignored (#4638)

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 8 Aug 2018 05:21:16 +0000 (05:21 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoShow review comment box only on a pull request page (#4636)
Lanre Adelowo [Wed, 8 Aug 2018 05:20:04 +0000 (06:20 +0100)]
Show review comment box only on a pull request page (#4636)

* Show review comment box only on a pull request page

* Fixed template check

6 years agoPush whitelist now doesn't apply to branch deletion (#4601) (#4607)
SagePtr [Wed, 8 Aug 2018 03:17:11 +0000 (05:17 +0200)]
Push whitelist now doesn't apply to branch deletion (#4601) (#4607)

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 7 Aug 2018 18:49:38 +0000 (18:49 +0000)]
[skip ci] Updated translations via Crowdin

6 years agocmd/serve: pprof cpu and memory profile dumps to disk (#4560)
Jerry Jacobs [Tue, 7 Aug 2018 18:49:18 +0000 (20:49 +0200)]
cmd/serve: pprof cpu and memory profile dumps to disk (#4560)

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 7 Aug 2018 18:37:15 +0000 (18:37 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoFix starring icon after semantic ui update (#4628)
Lauris BH [Tue, 7 Aug 2018 18:36:21 +0000 (21:36 +0300)]
Fix starring icon after semantic ui update (#4628)

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 7 Aug 2018 17:16:52 +0000 (17:16 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoprevent empty review comment (#4632)
Lanre Adelowo [Tue, 7 Aug 2018 17:15:41 +0000 (18:15 +0100)]
prevent empty review comment (#4632)

* prevent empty review comment

This would only require a comment for rejection and comment

* add tests

* add comment

6 years agoAn inactive user shouldn't be able to be added as a collaborator (#4535)
Lanre Adelowo [Tue, 7 Aug 2018 10:01:06 +0000 (11:01 +0100)]
An inactive user shouldn't be able to be added as a collaborator (#4535)

* an inactive user shouldn't be able to be a collaborator

* use translated error message

* add active user check when adding a new collaborator via the api

* fix translation text

* added collaborator test

* improvee testcases

6 years agoDon't fail silently if trying to add a collaborator twice (#4533)
Lanre Adelowo [Tue, 7 Aug 2018 01:59:42 +0000 (02:59 +0100)]
Don't fail silently if trying to add a collaborator twice (#4533)

* don't fail silently if trying to add a collaborator twice

* fix translation text

* added collaborator test

* improvee testcases

* Added tests to make sure a collaborator cannot be added twice

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 6 Aug 2018 11:54:16 +0000 (11:54 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoFix integer constant overflows in tests (#4616)
Dennis Menschel [Mon, 6 Aug 2018 11:52:53 +0000 (13:52 +0200)]
Fix integer constant overflows in tests (#4616)

* Use integer limit value [1] instead of hard-coded magic constant for
  NonexistentID.

* Explicitly use int64 in order to avoid the following errors on 32 bit
  architectures:

  # code.gitea.io/gitea/integrations
  ./api_admin_test.go:50:34: constant 9223372036854775807 overflows int
  ./api_token_test.go:47:34: constant 9223372036854775807 overflows int
  [...]
  # code.gitea.io/gitea/models
  ./action_test.go:179:15: constant 9223372036854775807 overflows int

[1] https://golang.org/pkg/math/#pkg-constants

Signed-off-by: Dennis Menschel <menschel-d@posteo.de>
6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 6 Aug 2018 04:44:17 +0000 (04:44 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoPull request review/approval and comment on code (#3748)
Lauris BH [Mon, 6 Aug 2018 04:43:22 +0000 (07:43 +0300)]
Pull request review/approval and comment on code (#3748)

* Initial ui components for pull request review

* Add Review
Add IssueComment types

Signed-off-by: Jonas Franz <info@jonasfranz.software>
(cherry picked from commit 2b4daab)
Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Replace ReviewComment with Content

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add load functions
Add ReviewID to findComments

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add create review comment implementation
Add migration for review
Other small changes

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Simplified create and find functions for review

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Moved "Pending" to first position

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add GetCurrentReview to simplify fetching current review

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Preview for listing comments

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Move new comment form to its own file

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Implement Review form
Show Review comments on comment stream

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add support for single comments
Showing buttons in context

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add pending tag to pending review comments

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add unit tests for Review

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fetch all review ids at once
Add unit tests

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* gofmt

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Improved comment rendering in "Files" view by adding Comments to DiffLine

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add support for invalidating comments

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Switched back to code.gitea.io/git

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Moved review migration from v64 to v65

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Rebuild css

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* gofmt

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Improve translations

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix unit tests by updating fixtures and updating outdated test

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Comments will be shown at the right place now

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add support for deleting CodeComments

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix problems caused by files in subdirectories

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add support for showing code comments of reviews in conversation

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add support for "Show/Hide outdated"

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Update code.gitea.io/git

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add support for new webhooks

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Update comparison

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Resolve conflicts

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Minor UI improvements

* update code.gitea.io/git

* Fix ui bug reported by @lunny causing wrong position of add button
Add functionality to "Cancel" button
Add scale effects to add button
Hide "Cancel" button for existing comments

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Prepare solving conflicts

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Show add button only if no comments already exist for the line

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add missing vendor files

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Check if reviewer is nil

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Show forms only to users who are logged in

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Revert "Show forms only to users who are logged in"

This reverts commit c083682

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Save patch in comment
Render patch for code comments

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add link to comment in code

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add reply form to comment list
Show forms only to signed in users

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add 'Reply' as translatable
Add CODE_COMMENT_LINES setting

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* gofmt

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix problems introduced by checking for singed in user

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add v70

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Update generated stylesheet

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix preview
Beginn with new review comment patch system

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add new algo to generate diff for line range
Remove old algo used for cutting big diffs (it was very buggy)

* Add documentation and example for CutDiffAroundLine

* Fix example of CutDiffAroundLine

* Fix some comment UI rendering bugs

* Add code comment edit mode

* Send notifications / actions to users until review gets published
Fix diff generation bug
Fix wrong hashtag

* Fix vet errors

* Send notifications also for single comments

* Fix some notification bugs, fix link

* Fix: add comment icon is only shown on code lines

* Add lint comment

* Add unit tests for git diff

* Add more error messages

* Regenerated css

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* fmt

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Regenerated CSS with latest less version

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix test by updating comment type to new ID

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Introducing CodeComments as type for map[string]map[int64][]*Comment
Other minor code improvements

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Fix data-tab issues

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Remove unnecessary change

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* refactored checkForInvalidation

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Append comments instead of setting

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Use HeadRepo instead of BaseRepo

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Update migration

Signed-off-by: Jonas Franz <info@jonasfranz.de>
* Regenerated CSS

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Add copyright

Signed-off-by: Jonas Franz <info@jonasfranz.software>
* Update index.css

Signed-off-by: Jonas Franz <info@jonasfranz.software>
6 years agofix bugs when too many IN variables (#4594)
Lunny Xiao [Thu, 2 Aug 2018 13:49:05 +0000 (21:49 +0800)]
fix bugs when too many IN variables (#4594)

6 years agoapi: repos/search: add parameters to control the sort order (#3964)
Allen Wild [Thu, 2 Aug 2018 08:10:02 +0000 (04:10 -0400)]
api: repos/search: add parameters to control the sort order (#3964)

The backend SearchRepositoryByName function supports several sort order
options, hook these up to the /repos/search API.

New parameters for /repos/search:
    'sort':  alpha, created, updated, size, or id
    'order': asc or desc

'sort' defaults to alpha.
'order' defaults to ascending, and is ignored if 'sort' is not specified.
The overall default behavior is unchanged (alphabetically ascending).

This partially implements issue #3963

Signed-off-by: Allen Wild <allenwild93@gmail.com>
6 years agofix panic issue on update avatar email (#4580) (#4581)
Dingjun [Wed, 1 Aug 2018 09:38:56 +0000 (17:38 +0800)]
fix panic issue on update avatar email (#4580) (#4581)

fix #4580

6 years agofix IsPullReuqestBroken->IsPullRequestBroken (#4578)
Julien Tant [Wed, 1 Aug 2018 03:00:35 +0000 (05:00 +0200)]
fix IsPullReuqestBroken->IsPullRequestBroken (#4578)

Signed-off-by: Julien Tant <julien@craftyx.fr>
6 years agoAdd documentation on how to update Gitea to new version (#4500)
Benedikt Kroll [Mon, 30 Jul 2018 15:35:05 +0000 (17:35 +0200)]
Add documentation on how to update Gitea to new version (#4500)

6 years agofix status code label for a successful webhook (#4540)
Lanre Adelowo [Mon, 30 Jul 2018 07:27:31 +0000 (08:27 +0100)]
fix status code label for a successful webhook (#4540)

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 30 Jul 2018 06:05:23 +0000 (06:05 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoUpdate jQuery to v1.12.4 (#4551)
techknowlogick [Mon, 30 Jul 2018 06:04:24 +0000 (02:04 -0400)]
Update jQuery to v1.12.4 (#4551)

Fix #4384

6 years agoSwagger.v1.json template (#3572)
Piotr Orzechowski [Sat, 28 Jul 2018 00:19:01 +0000 (02:19 +0200)]
Swagger.v1.json template (#3572)

* Turn swagger.v1.json into template

* Rename ENABLE_SWAGGER_ENDPOINT option to ENABLE_SWAGGER

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 27 Jul 2018 19:12:26 +0000 (19:12 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoFix incorrect MergeWhitelistTeamIDs check in CanUserMerge function (#4519) (#4525)
SagePtr [Fri, 27 Jul 2018 19:11:24 +0000 (21:11 +0200)]
Fix incorrect MergeWhitelistTeamIDs check in CanUserMerge function (#4519) (#4525)

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Fri, 27 Jul 2018 12:55:56 +0000 (12:55 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoSwitch plaintext scratch tokens to use hash instead (#4331)
techknowlogick [Fri, 27 Jul 2018 12:54:50 +0000 (08:54 -0400)]
Switch plaintext scratch tokens to use hash instead (#4331)

6 years agoFix out-of-transaction query in removeOrgUser (#4521) (#4522)
SagePtr [Thu, 26 Jul 2018 23:41:36 +0000 (01:41 +0200)]
Fix out-of-transaction query in removeOrgUser (#4521) (#4522)

6 years agoenv var GITEA_PUSHER_EMAIL (#4516)
Lukas Treyer [Thu, 26 Jul 2018 16:38:55 +0000 (18:38 +0200)]
env var GITEA_PUSHER_EMAIL (#4516)

* env var GITEA_PUSHER_EMAIL

* set pusher email only if email address is not private

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 26 Jul 2018 15:26:44 +0000 (15:26 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoResponsive design fixes (#4508)
kolaente [Thu, 26 Jul 2018 15:25:41 +0000 (17:25 +0200)]
Responsive design fixes (#4508)

* reset to master

* build css

* Fixed spacing

6 years agoFix doc typo (#4517)
William Le Pommelet [Thu, 26 Jul 2018 10:57:45 +0000 (12:57 +0200)]
Fix doc typo (#4517)

* fix language list

Standardized the languages' names within the list displayed when picking up a language at the bottom of the webpages

* typo

fix a typo into documentation (template rather than templete)

* fix languages list

6 years agoFix uk-UA locale. Fixes #4518
Lauris BH [Thu, 26 Jul 2018 10:30:56 +0000 (13:30 +0300)]
Fix uk-UA locale. Fixes #4518

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 25 Jul 2018 17:55:49 +0000 (17:55 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoAdd flash message after an account has been successfully activated (#4510)
Lanre Adelowo [Wed, 25 Jul 2018 17:54:56 +0000 (18:54 +0100)]
Add flash message after an account has been successfully activated (#4510)

* added new locale text

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 25 Jul 2018 12:12:34 +0000 (12:12 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoRespect email privacy option in user search via API (#4512)
Lanre Adelowo [Wed, 25 Jul 2018 12:11:22 +0000 (13:11 +0100)]
Respect email privacy option in user search via API (#4512)

* respect user's email privacy option

* make email visible to admin irrespective of privacy option

6 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 24 Jul 2018 10:22:04 +0000 (10:22 +0000)]
[skip ci] Updated translations via Crowdin

6 years agoAdd shortcut to save wiki page (#4452)
Michael Kuhn [Tue, 24 Jul 2018 10:20:52 +0000 (12:20 +0200)]
Add shortcut to save wiki page (#4452)

This allows saving the wiki page with Ctrl-Enter.

6 years agoMake max commits in graph configurable (#4498)
Kjell Kvinge [Mon, 23 Jul 2018 14:12:06 +0000 (16:12 +0200)]
Make max commits in graph configurable (#4498)

6 years agoFix migration from older releases (#4495)
Lauris BH [Sun, 22 Jul 2018 03:15:11 +0000 (06:15 +0300)]
Fix migration from older releases (#4495)