]> source.dussan.org Git - gitea.git/log
gitea.git
3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 5 Jan 2021 13:56:10 +0000 (13:56 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoAdd option for administrator to reset user 2FA (#14243)
6543 [Tue, 5 Jan 2021 13:54:48 +0000 (13:54 +0000)]
Add option for administrator to reset user 2FA (#14243)

* Frontend

* Backend

* only show 2FA-Reset option if posible

3 years agoFix recovery middleware to render gitea style page. (#13857)
Lunny Xiao [Tue, 5 Jan 2021 13:05:40 +0000 (21:05 +0800)]
Fix recovery middleware to render gitea style page. (#13857)

* Some changes to fix recovery

* Move Recovery to middlewares

* Remove trace code

* Fix lint

* add session middleware and remove dependent on macaron for sso

* Fix panic 500 page rendering

* Fix bugs

* Fix fmt

* Fix vendor

* recover unnecessary change

* Fix lint and addd some comments about the copied codes.

* Use util.StatDir instead of com.StatDir

Co-authored-by: 6543 <6543@obermui.de>
3 years agoupgrade xorm to v1.0.6 (#14246)
Lunny Xiao [Tue, 5 Jan 2021 06:28:51 +0000 (14:28 +0800)]
upgrade xorm to v1.0.6 (#14246)

3 years agoHandle NotifyCreateRef as create branch in feeds (#14245)
Cirno the Strongest [Mon, 4 Jan 2021 16:51:00 +0000 (17:51 +0100)]
Handle NotifyCreateRef as create branch in feeds (#14245)

Co-authored-by: Lauris BH <lauris@nix.lv>
3 years agoPublish docker rootless docs (#14240)
Antoine GIRARD [Mon, 4 Jan 2021 14:23:04 +0000 (15:23 +0100)]
Publish docker rootless docs (#14240)

Co-authored-by: 6543 <6543@obermui.de>
3 years agoVarious UI fixes (#14239)
Cirno the Strongest [Mon, 4 Jan 2021 12:18:12 +0000 (13:18 +0100)]
Various UI fixes (#14239)

* Fix #14238

* Fix #14235

* Fix #14237

* Fix #14234

* Use octicon to show private status of repo in admin dashboard

* Fix #14232

* Fix #14236

3 years agoKd/fix team avatar aspect ratio (#14200)
Kyle D [Sun, 3 Jan 2021 21:20:05 +0000 (14:20 -0700)]
Kd/fix team avatar aspect ratio (#14200)

* Add org member avatar to text data for fixed width

* set min-width to prevent single char lines

3 years agoIssue and pull request filters on organization dashboard #14052 (#14072)
Jimmy Praet [Sun, 3 Jan 2021 17:29:12 +0000 (18:29 +0100)]
Issue and pull request filters on organization dashboard #14052 (#14072)

3 years agoRender links for commit hashes followed by comma (#14224)
Nuno Silva [Sun, 3 Jan 2021 15:11:10 +0000 (15:11 +0000)]
Render links for commit hashes followed by comma (#14224)

Regex test cases: https://regex101.com/r/mVbPxM/2/

fixes #14223

3 years agoAdd MirrorInterval to the API (#14163)
Paul Barton [Sat, 2 Jan 2021 23:47:47 +0000 (23:47 +0000)]
Add MirrorInterval to the API (#14163)

* Added MirrorInterval to the API

* Remove MirrorInterval from CreateRepository

* Removed Duplicate UpdateMirror Function

* Updated Error Logging

* Update Log Message for is not Mirror

Co-authored-by: 6543 <6543@obermui.de>
* Delete Debug Statement that snuck in

Co-authored-by: zeripath <art27@cantab.net>
* Add Check for If Interval is too small

* Output to API Call

* Add Error Object when time is Less than Min Interval

* Frequency Error Message

Co-authored-by: zeripath <art27@cantab.net>
* Allow Zero Mirror Interval

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: zeripath <art27@cantab.net>
3 years agoFix avatar bugs (#14217)
Lunny Xiao [Sat, 2 Jan 2021 18:01:09 +0000 (02:01 +0800)]
Fix avatar bugs (#14217)

3 years agoSend notifications for mentions in pulls, issues, (code-)comments (#14218)
Jimmy Praet [Sat, 2 Jan 2021 17:04:02 +0000 (18:04 +0100)]
Send notifications for mentions in pulls, issues, (code-)comments (#14218)

Fixes #14187: mention handling extracted from email notification code
Fixes #14013: add notification for mentions in pull request code comments
Fixes #13450: Not receiving any emails with setting "Only Email on Mention"

3 years agoEnsure that schema search path is set with every connection on postgres (#14131)
zeripath [Sat, 2 Jan 2021 02:07:43 +0000 (02:07 +0000)]
Ensure that schema search path is set with every connection on postgres (#14131)

* Ensure that schema search path is set with every connection on postgres

Unfortunately every connection to postgres requires that the search path is
set appropriately.

This PR shadows the postgres driver to ensure that as soon as a connection
is open, the search_path is set appropriately.

Fix #14088

Signed-off-by: Andrew Thornton <art27@cantab.net>
* no golangci-lint that is not a helpful suggestion

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Use Execer if available

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years agoWhen visit /favicon.ico but the static file is not exist return 404 but not continue...
Lunny Xiao [Fri, 1 Jan 2021 22:05:45 +0000 (06:05 +0800)]
When visit /favicon.ico but the static file is not exist return 404 but not continue to handle the route (#14211)

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years agoFix wrong publisher id (#14212)
Lunny Xiao [Fri, 1 Jan 2021 21:03:31 +0000 (05:03 +0800)]
Fix wrong publisher id (#14212)

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: zeripath <art27@cantab.net>
3 years agoPrevent clipping input text in Chrome (#14179)
Kyle D [Fri, 1 Jan 2021 19:05:40 +0000 (12:05 -0700)]
Prevent clipping input text in Chrome (#14179)

3 years agoConsolidate Logos and update README header (#14136)
silverwind [Fri, 1 Jan 2021 19:04:35 +0000 (20:04 +0100)]
Consolidate Logos and update README header (#14136)

* Consolidate Logos and update README header

- Remove unused `logo-lg.png`, `logo-sm.png` and `logo-192.png`.
- Consolidate `favicon.svg` and `logo.svg` to just `logo.svg`.
- Remove Safari Mask icon, it seems to work fine with just `favicon.png` (no SVG support).
- Remove Fluid Icon. It only served Firefox and SVG works just fine there.
- Update customization instructions.
- Update README.md to use SVG icon, increase logo size and center it and badges.

* Update README_ZH.md

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
* Update README_ZH.md

Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years agoFix dashboard issues labels filter bug (#14210)
Lunny Xiao [Fri, 1 Jan 2021 17:49:42 +0000 (01:49 +0800)]
Fix dashboard issues labels filter bug (#14210)

Co-authored-by: zeripath <art27@cantab.net>
3 years agoMinimal OpenID Connect implementation (#14139)
Johnny Oskarsson [Fri, 1 Jan 2021 16:33:27 +0000 (17:33 +0100)]
Minimal OpenID Connect implementation (#14139)

This is "minimal" in the sense that only the Authorization Code Flow
from OpenID Connect Core is implemented.  No discovery, no configuration
endpoint, and no user scope management.

OpenID Connect is an extension to the (already implemented) OAuth 2.0
protocol, and essentially an `id_token` JWT is added to the access token
endpoint response when using the Authorization Code Flow.  I also added
support for the "nonce" field since it is required to be used in the
id_token if the client decides to include it in its initial request.

In order to enable this extension an OAuth 2.0 scope containing
"openid" is needed. Other OAuth 2.0 requests should not be impacted by
this change.

This minimal implementation is enough to enable single sign-on (SSO)
for other sites, e.g. by using something like `mod_auth_openidc` to
only allow access to a CI server if a user has logged into Gitea.

Fixes: #1310
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
3 years agodeprecate building for mips (#14174)
techknowlogick [Fri, 1 Jan 2021 15:22:32 +0000 (10:22 -0500)]
deprecate building for mips (#14174)

Co-authored-by: zeripath <art27@cantab.net>
3 years agoUpdate owners for 2021 (#14206)
techknowlogick [Thu, 31 Dec 2020 23:41:03 +0000 (18:41 -0500)]
Update owners for 2021 (#14206)

Fix #13801

3 years agofix branch selector on new issue page (#14194)
a1012112796 [Thu, 31 Dec 2020 18:32:11 +0000 (02:32 +0800)]
fix branch selector on new issue page (#14194)

fix #14185

Signed-off-by: a1012112796 <1012112796@qq.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
3 years agoCheck for notExist on profile repository page (#14197)
zeripath [Thu, 31 Dec 2020 07:45:54 +0000 (07:45 +0000)]
Check for notExist on profile repository page (#14197)

Fix #14189

3 years agoCheck for 'main' as potential default branch name (#14193)
Chester Liu [Wed, 30 Dec 2020 15:46:26 +0000 (23:46 +0800)]
Check for 'main' as potential default branch name (#14193)

3 years agoHide migration failed by default (#14188)
Kyle D [Wed, 30 Dec 2020 03:04:30 +0000 (20:04 -0700)]
Hide migration failed by default (#14188)

3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 29 Dec 2020 23:49:34 +0000 (23:49 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoImprove label and text wrapping (#14113)
silverwind [Tue, 29 Dec 2020 23:48:28 +0000 (00:48 +0100)]
Improve label and text wrapping (#14113)

* Improve label wrapping

- Adjust issue list styles so labels can wrap on the same line as the
  text. This relies on `display: inline` with the HTML whitespace being
  used as the separator.
- Add global word-break: break-word. This should generally avoid text
  overflows in various places.

* add whitespace to history labels

* use overflow-wrap

* restore word-break rules

* use correct pre

* use better selector for middle align

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 29 Dec 2020 00:39:54 +0000 (00:39 +0000)]
[skip ci] Updated translations via Crowdin

3 years agofrontport 1.13.1 changelog (#14175)
techknowlogick [Tue, 29 Dec 2020 00:38:44 +0000 (19:38 -0500)]
frontport 1.13.1 changelog (#14175)

* frontport 1.13.1 changelog

* Update config.yaml

Co-authored-by: zeripath <art27@cantab.net>
3 years agoConsolidate clone button templates (#14023)
silverwind [Mon, 28 Dec 2020 18:30:06 +0000 (19:30 +0100)]
Consolidate clone button templates (#14023)

The four clone button templates are pretty much identical except the one
in a non-empty repo had a few features which the others lacked.

Consolidate them in a single shared template which also makes the JS
that remembers protocol work on them all.

Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years agofix: small typo error (#14170)
0xflotus [Mon, 28 Dec 2020 17:08:01 +0000 (18:08 +0100)]
fix: small typo error (#14170)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
3 years agoFix bug of link query order on markdown render (#14156)
Lunny Xiao [Mon, 28 Dec 2020 16:28:27 +0000 (00:28 +0800)]
Fix bug of link query order on markdown render (#14156)

* Fix bug of link query order on markdown render

* Fix bluemonday bug and fix one wrong test

Co-authored-by: 6543 <6543@obermui.de>
3 years agoCLI support for OAuth sources custom icons (#14166)
Daniil Pankratov [Mon, 28 Dec 2020 08:39:12 +0000 (11:39 +0300)]
CLI support for OAuth sources custom icons (#14166)

Co-authored-by: Daniil Pankratov <daniil.pankratov@t-systems.com>
3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 28 Dec 2020 02:37:00 +0000 (02:37 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoCustom icons for OAuth sources (#14161)
Timo Ley [Mon, 28 Dec 2020 02:35:55 +0000 (03:35 +0100)]
Custom icons for OAuth sources (#14161)

* Add Icon URL to Backend

* Template for Icon URL

* Localization & Edit Icon URL

* Improve Custom Icon URL

* Removed not working else

Co-authored-by: 6543 <6543@obermui.de>
3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 27 Dec 2020 19:59:15 +0000 (19:59 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoTeam dashboards (#14159)
Jimmy Praet [Sun, 27 Dec 2020 19:58:03 +0000 (20:58 +0100)]
Team dashboards (#14159)

3 years ago[Docs] Database preparation: Clarify why database client is installed on Gitea server...
Bagas Sanjaya [Sun, 27 Dec 2020 15:55:45 +0000 (22:55 +0700)]
[Docs] Database preparation: Clarify why database client is installed on Gitea server (#12833)

* Database preparation: Clarify why database client is installed on Gitea server

The database client program (`mysql` or `psql`) is used to test database
connection, but Gitea use Go's database driver to do the same.

Also, rename "server part" and "client part" to "server application" and
"client program" to disambiguate.

* Update docs/content/doc/installation/database-preparation.en-us.md

Co-authored-by: 6543 <6543@obermui.de>
3 years agoUpdate JS dependencies and webpack (#14118)
silverwind [Sun, 27 Dec 2020 14:24:27 +0000 (15:24 +0100)]
Update JS dependencies and webpack (#14118)

* Update JS dependencies

- Update all JS dependencies
- Adapt webpack config for version 5
- Update to Less 4.0, adapting usage of removed mixin syntax
- Enable new ESLint rules and fix discovered issues

* update license-webpack-plugin to fix missing licenses

* update license-webpack-plugin once more to get webpack into the license output

* switch to license-checker-webpack-plugin again for performance

* update deps again

Co-authored-by: Lauris BH <lauris@nix.lv>
3 years agoImprove basic button and label styles (#14119)
silverwind [Sun, 27 Dec 2020 10:53:53 +0000 (11:53 +0100)]
Improve basic button and label styles (#14119)

* Improve disabled styles for repo buttons

- Simplify disabled styling of label by matching for the disabled
  attribute.
- Raise fomantic disabled opacity from .45 to .55 to for more contrast.
- Use CSS vars for basic button styles.

* restore clickability on label

* color tweaks and remove arc-green style

* slightly reduce button size

* consolidate vars

* also cover active class

* slightly more distinct active class

* remove useless rule

3 years agoDump github/gitlab/gitea repository data to a local directory and restore to gitea...
Lunny Xiao [Sun, 27 Dec 2020 03:34:19 +0000 (11:34 +0800)]
Dump github/gitlab/gitea repository data to a local directory and restore to gitea (#12244)

* Dump github/gitlab repository data to a local directory

* Fix lint

* Adjust directory structure

* Allow migration special units

* Allow migration ignore release assets

* Fix lint

* Add restore repository

* stage the changes

* Merge

* Fix lint

* Update the interface

* Add some restore methods

* Finish restore

* Add comments

* Fix restore

* Add a token flag

* Fix bug

* Fix test

* Fix test

* Fix bug

* Fix bug

* Fix lint

* Fix restore

* refactor downloader

* fmt

* Fix bug isEnd detection on getIssues

* Refactor maxPerPage

* Remove unused codes

* Remove unused codes

* Fix bug

* Fix restore

* Fix dump

* Uploader should not depend downloader

* use release attachment name but not id

* Fix restore bug

* Fix lint

* Fix restore bug

* Add a method of DownloadFunc for base.Release to make uploader not depend on downloader

* fix Release yml marshal

* Fix trace information

* Fix bug when dump & restore

* Save relative path on yml file

* Fix bug

* Use relative path

* Update docs

* Use git service string but not int

* Recognize clone addr to service type

3 years agoMigration: drop to long repo topics (#14152)
6543 [Sun, 27 Dec 2020 01:23:57 +0000 (01:23 +0000)]
Migration: drop to long repo topics (#14152)

3 years agoChange topic name size from 25 to 50 (#14150)
Lunny Xiao [Sat, 26 Dec 2020 23:28:47 +0000 (07:28 +0800)]
Change topic name size from 25 to 50 (#14150)

* Change topic name size from 25 to 50

* recreateTable requires full bean definition

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: zeripath <art27@cantab.net>
3 years agoFix escaping issue in diff (#14153)
zeripath [Sat, 26 Dec 2020 21:58:21 +0000 (21:58 +0000)]
Fix escaping issue in diff (#14153)

Ensure that linecontent is escaped before passing to template.HTML

Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 26 Dec 2020 18:23:50 +0000 (18:23 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoFix UI on edit auth source page (#14137)
Norwin [Sat, 26 Dec 2020 18:22:42 +0000 (18:22 +0000)]
Fix UI on edit auth source page (#14137)

* do not override OAuth URLs with default values when editing an auth source (fixes #12014)
* show custom url inputs by default for providers that don't provide an official hosted service

3 years agoDisable SSH key deletion of externally managed Keys (#13985)
zeripath [Sat, 26 Dec 2020 04:24:47 +0000 (04:24 +0000)]
Disable SSH key deletion of externally managed Keys (#13985)

* Disable SSH key addition and deletion when externally managed

When a user has a login source which has SSH key management
key addition and deletion using the UI should be disabled.

Fix #13983

Signed-off-by: Andrew Thornton <art27@cantab.net>
* Make only externally managed keys disabled

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
3 years agomigrate from com.* to alternatives (#14103)
6543 [Fri, 25 Dec 2020 09:59:32 +0000 (09:59 +0000)]
migrate from com.* to alternatives (#14103)

* remove github.com/unknwon/com from models

* dont use "com.ToStr()"

* replace "com.ToStr" with "fmt.Sprint" where its easy to do

* more refactor

* fix test

* just "proxy" Copy func for now

* as per @lunny

3 years agoDisable Fomantic's custom scrollbars (#14109)
silverwind [Thu, 24 Dec 2020 22:34:49 +0000 (23:34 +0100)]
Disable Fomantic's custom scrollbars (#14109)

We already have custom scrollbars in our own CSS which are superior to
Fomantic's so diable them to save a few bytes and prevent interference.

3 years agoFix heatmap total contributions (#14141)
Lunny Xiao [Thu, 24 Dec 2020 20:58:30 +0000 (04:58 +0800)]
Fix heatmap total contributions (#14141)

3 years agoFix creating OAuth2 auth source from CLI (#14116)
Daniil Pankratov [Thu, 24 Dec 2020 19:47:17 +0000 (22:47 +0300)]
Fix creating OAuth2 auth source from CLI (#14116)

Fix creation OAuth2 auth source from CLI.

Fix #8356

Co-authored-by: Daniil Pankratov <daniil.pankratov@t-systems.com>
3 years agoFix api doc response code (#14123)
Norwin [Thu, 24 Dec 2020 18:14:01 +0000 (18:14 +0000)]
Fix api doc response code (#14123)

Fixes #14120

3 years agoEnsure that search term and page are not lost on adoption page-turn (#14133)
zeripath [Thu, 24 Dec 2020 15:26:19 +0000 (15:26 +0000)]
Ensure that search term and page are not lost on adoption page-turn (#14133)

Fix #14111

Signed-off-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Thu, 24 Dec 2020 04:26:32 +0000 (04:26 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoImprove vfsgen to not unzip bindata files but send to browser directly (#7109)
Lunny Xiao [Thu, 24 Dec 2020 04:25:17 +0000 (12:25 +0800)]
Improve vfsgen to not unzip bindata files but send to browser directly (#7109)

* Don't unzip files from bindata but send to browser directly

* remove dependent for httpgzip

* Add tests for parseAcceptEncoding

* Update docs for ENABLE_GZIP

* Fix bug

* Fix bug

Co-authored-by: zeripath <art27@cantab.net>
3 years agoFix admin monitoring margin (#14134)
silverwind [Wed, 23 Dec 2020 20:38:29 +0000 (21:38 +0100)]
Fix admin monitoring margin (#14134)

3 years agoAPI: Make BasicAuth Prefix case insensitive (#14106)
6543 [Wed, 23 Dec 2020 19:52:46 +0000 (19:52 +0000)]
API: Make BasicAuth Prefix case insensitive (#14106)

3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Wed, 23 Dec 2020 19:11:05 +0000 (19:11 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoFix manifest encoding (#14114)
silverwind [Wed, 23 Dec 2020 19:09:54 +0000 (20:09 +0100)]
Fix manifest encoding (#14114)

The previous URL encoding would encode spaces to '+' for the app name
which is incorrect. Use base64 encoding instead which does not have such
issues.

3 years agoFix spelling avator -> avatar (#14115)
Jimmy Praet [Tue, 22 Dec 2020 21:28:03 +0000 (22:28 +0100)]
Fix spelling avator -> avatar (#14115)

3 years agoFix git.parseTagData (#14105)
6543 [Tue, 22 Dec 2020 20:44:25 +0000 (20:44 +0000)]
Fix git.parseTagData (#14105)

* Fix git.parseTagData()
close #14092

* Add Test

* add message to test

* limit readers

* git tag -m trims and terminates with a newline

Co-authored-by: Andrew Thornton <art27@cantab.net>
Co-authored-by: 6543 <6543@obermui.de>
3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 22 Dec 2020 15:55:30 +0000 (15:55 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoFix incorrect generated link in documentation page (#14112)
Donlon [Tue, 22 Dec 2020 15:54:12 +0000 (23:54 +0800)]
Fix incorrect generated link in documentation page (#14112)

3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 22 Dec 2020 11:15:05 +0000 (11:15 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoInline manifest.json (#14038)
silverwind [Tue, 22 Dec 2020 11:13:50 +0000 (12:13 +0100)]
Inline manifest.json (#14038)

* Inline manifest.json

Improve performance by eliminating this separate request and just inline
this small JSON in HTML directly as a data uri.

Also update previously static app name scripts to use AppName.

I've confirmed this as working via "Add to Homescreen" feature which
offered to save the shortcut under the new app name.

* prerender manifest data on startup

* move to settings

* restore setting.AppStartTime and use it on admin page

* use double quotes because template.URL escapes everything

* fix lint

* move variable to global context variable

* delete template file

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: zeripath <art27@cantab.net>
3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 22 Dec 2020 03:48:23 +0000 (03:48 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoAdd user filter to issueTrackedTimes, enable usage for issue managers (#14081)
Norwin [Tue, 22 Dec 2020 03:47:17 +0000 (03:47 +0000)]
Add user filter to issueTrackedTimes, enable usage for issue managers (#14081)

* add user filter to issueTrackedTimes

fixes #14024

* update swagger

* allow user filter for issue writers

* improve swagger doc

* return 404 on invalid user

3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Tue, 22 Dec 2020 02:55:02 +0000 (02:55 +0000)]
[skip ci] Updated translations via Crowdin

3 years agorework heatmap permissions (#14080)
Norwin [Tue, 22 Dec 2020 02:53:37 +0000 (02:53 +0000)]
rework heatmap permissions (#14080)

* now uses the same permission model as for the activity feed:
  only include activities in repos, that the doer has access to.
  this might be somewhat slower.

* also improves handling of user.KeepActivityPrivate (still shows
  the heatmap to self & admins)

* extend tests

* adjust integration test to new behaviour

* add access to actions for admins

* extend heatmap unit tests

3 years agoStandardize Co-Authored-By / Reviewed-By strings (#14097)
Cirno the Strongest [Tue, 22 Dec 2020 02:19:33 +0000 (03:19 +0100)]
Standardize Co-Authored-By / Reviewed-By strings (#14097)

* Standardize Co-Authored-By / Reviewed-By strings

* Use lowercase variant

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
3 years agoAdd StatDir and replace com.StatDir (#14099)
Lunny Xiao [Mon, 21 Dec 2020 23:40:57 +0000 (07:40 +0800)]
Add StatDir and replace com.StatDir (#14099)

* Add StatDir and replace com.StatDir

* a nit

* Remove wrong file

Co-authored-by: 6543 <6543@obermui.de>
3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 21 Dec 2020 23:04:32 +0000 (23:04 +0000)]
[skip ci] Updated translations via Crowdin

3 years agomore test case for STORAGE_TYPE overrides (and fixes) (#14096)
胡玮文 [Mon, 21 Dec 2020 23:03:18 +0000 (07:03 +0800)]
more test case for STORAGE_TYPE overrides (and fixes) (#14096)

Signed-off-by: 胡玮文 <huww98@outlook.com>
3 years agoFix storage config implementation (#14091)
胡玮文 [Mon, 21 Dec 2020 17:59:18 +0000 (01:59 +0800)]
Fix storage config implementation (#14091)

The design is very flexible, but not implemented correctly.
This commit fixes several issues:
* Costom storage type stated in https://docs.gitea.io/en-us/config-cheat-sheet/#storage-storage
  not working
* [storage.attachments], [storage.minio] section not respected

Signed-off-by: 胡玮文 <huww98@outlook.com>
3 years agoAdd Test for Fix #14040 (#14045)
6543 [Mon, 21 Dec 2020 17:27:23 +0000 (17:27 +0000)]
Add Test for Fix #14040 (#14045)

Add Test for Fix #14040

3 years agoUse the text of pull-request as the squash commit's message (#13071)
Mura Li [Mon, 21 Dec 2020 16:46:14 +0000 (00:46 +0800)]
Use the text of pull-request as the squash commit's message (#13071)

Originally, it was filled by the commit messages of the involved
commits. In this change, we use the headline comment of the pull
request as the commit message when it is a squash merge.

Thanks to @zeripath for suggesting the idea.

Fixes #12365

Co-authored-by: Mura Li <typeless@users.noreply.github.com>
3 years agoAdd mentionable teams to tributeValues and change team mention rules to gh's style...
a1012112796 [Mon, 21 Dec 2020 15:39:28 +0000 (23:39 +0800)]
Add mentionable teams to tributeValues and change team mention rules to gh's style (#13198)

* Add mentionable teams to tributeValues

Signed-off-by: a1012112796 <1012112796@qq.com>
* Apply suggestions from code review

Co-authored-by: silverwind <me@silverwind.io>
* Change team mention rules to gh's style

* use org's avator as team avator in ui

Signed-off-by: a1012112796 <1012112796@qq.com>
* Update modules/markup/html.go

* Update models/issue.go

Co-authored-by: Lauris BH <lauris@nix.lv>
* Update models/issue.go

* fix a small nit and update test code

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: 6543 <6543@obermui.de>
3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 21 Dec 2020 14:41:16 +0000 (14:41 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoAdded option to disable migrations (#13114)
Paweł Bogusławski [Mon, 21 Dec 2020 14:39:41 +0000 (15:39 +0100)]
Added option to disable migrations (#13114)

* Added option to disable migrations

This patch introduces DISABLE_MIGRATIONS parameter in [repository]
section of app.ini (by default set to false). If set to true
it blocks access to repository migration feature.

This mod hides also local repo import option in user editor if
local repo importing or migrations is disabled.

* Alter Example config

DISABLE_MIGRATIONS set to false in example config to
match its default value.

* HTTP error 403 instead of 500 on denied access to migration

* Parameter DISABLE_MIGRATIONS exposed via API

Fixes: 04b04cf854bcb3ed7659442bcf79822bdebe29e9
Author-Change-Id: IB#1105130

3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 21 Dec 2020 13:13:27 +0000 (13:13 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoexpose translation of previously hardcoded string (#14087)
Norwin [Mon, 21 Dec 2020 13:12:13 +0000 (13:12 +0000)]
expose translation of previously hardcoded string (#14087)

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Mon, 21 Dec 2020 08:32:25 +0000 (08:32 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoPresent repository name as {{name}}#{{index}} instead of label on dashboard issuelist...
Cirno the Strongest [Mon, 21 Dec 2020 08:31:20 +0000 (09:31 +0100)]
Present repository name as {{name}}#{{index}} instead of label on dashboard issuelist (#14085)

Co-authored-by: Lauris BH <lauris@nix.lv>
3 years agoLocale: say another issue instead of this issue (#14082)
DuckDuckWhale [Mon, 21 Dec 2020 06:11:39 +0000 (22:11 -0800)]
Locale: say another issue instead of this issue (#14082)

Saying "this issue" is confusing because it could be understood as the
issue that the user is currently viewing, not which the "issue" link
points to.

3 years agoAdd repo name label again on dashboard issue / pulls page (#14073)
Jimmy Praet [Sun, 20 Dec 2020 22:52:29 +0000 (23:52 +0100)]
Add repo name label again on dashboard issue / pulls page (#14073)

The label got removed in PR #13594

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years agoSearch and Diff CSS enhancements (#14050)
silverwind [Sun, 20 Dec 2020 18:00:03 +0000 (19:00 +0100)]
Search and Diff CSS enhancements (#14050)

* Search and Diff CSS enhancements

- Use flexbox for language stats
- Improve labels and code boxes on repo and code search
- Use flexbox on diff header and improve suppressed diff text
- Add dedicated color for diff expander

* more diff tweaks, less vertical padding on header

* more minor tweaks

* always show fold icon, image diff improvments

* remove margin

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years agodep: update crypto. info: https://golangtutorial.dev/news/fix-in-crypto-package/...
techknowlogick [Sun, 20 Dec 2020 15:36:07 +0000 (10:36 -0500)]
dep: update crypto. info: https://golangtutorial.dev/news/fix-in-crypto-package/ (#14067)

Co-authored-by: zeripath <art27@cantab.net>
3 years agoShow dropdown with all statuses for commit (#13977)
Cirno the Strongest [Sun, 20 Dec 2020 03:13:12 +0000 (04:13 +0100)]
Show dropdown with all statuses for commit (#13977)

* Show dropdown with all statuses for commit

* Use popups

* Remove unnecessary change

* Style popup

* Use divided list

* As per @silverwind

* Refactor GetLastCommitStatus

* Missing dropdown on repo home and commit page

* Fix tests

* Make status icon be a part of a link on PR list

* Fix missing translation call

* Indent fix

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sun, 20 Dec 2020 01:32:15 +0000 (01:32 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoManually approve new registration (#13083)
Jiri Vlasak [Sun, 20 Dec 2020 01:31:06 +0000 (02:31 +0100)]
Manually approve new registration (#13083)

* Add register manual confirm settings option

The new settings option is used when manually approving new
registrations.

* Enable manual confirmation of new registered user

When manual registration confirmation is desired (by default `false`)
create new user in the database that is *not active*. The user must then
be activated manually.

This change speeds up the process of adding new confirmed users for
Gitea instances without external auth mechanism. (Currently the option
is to manually create new user by admin.)

* Update docs/content/doc/advanced/config-cheat-sheet.zh-cn.md

Co-authored-by: a1012112796 <1012112796@qq.com>
Co-authored-by: 6543 <6543@obermui.de>
Co-authored-by: a1012112796 <1012112796@qq.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
3 years agoFix feed push tag (#14064)
Lunny Xiao [Sat, 19 Dec 2020 23:46:28 +0000 (07:46 +0800)]
Fix feed push tag (#14064)

* Fix dashboard feed bug when push tag

* Fix variable name

* Fix delete tag

Co-authored-by: 6543 <6543@obermui.de>
3 years ago[skip ci] Updated translations via Crowdin
GiteaBot [Sat, 19 Dec 2020 22:31:48 +0000 (22:31 +0000)]
[skip ci] Updated translations via Crowdin

3 years agoRefactor get tag to remove unnecessary steps (#14058)
Lunny Xiao [Sat, 19 Dec 2020 22:30:39 +0000 (06:30 +0800)]
Refactor get tag to remove unnecessary steps (#14058)

* Fix tag cache bug

3 years agoFix merge button dropdown triangle alignment (#14041)
silverwind [Sat, 19 Dec 2020 03:57:25 +0000 (04:57 +0100)]
Fix merge button dropdown triangle alignment (#14041)

https://github.com/go-gitea/gitea/pull/14028 had improved dropdown
triangle display for buttons with text but had regressed it for buttons
without. Fix this by adding a class to prevent horizontal margin adjustment.

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
3 years agoput ${CURDIR} in quotes to prevent make from splitting paths with spaces into separat...
Kyle D [Sat, 19 Dec 2020 02:54:01 +0000 (21:54 -0500)]
put ${CURDIR} in quotes to prevent make from splitting paths with spaces into separate strings (#14056)

3 years agogitea png to logo (#13974)
Kyle D [Sat, 19 Dec 2020 01:17:27 +0000 (20:17 -0500)]
gitea png to logo (#13974)

* gitea png to logo.svg

* gitea safari svg to logo

* minify svgs

* Update english docs

* Update missing section on customizing logo

3 years agoCommit list display tweaks (#14043)
silverwind [Fri, 18 Dec 2020 20:00:07 +0000 (21:00 +0100)]
Commit list display tweaks (#14043)

- Make plain <pre> inherit our monospace fonts, overriding fomantic's
  css reset which means expanded commit messages now follow the font
  settings.
- Adjust link styling and keyword highlighting in commit message
- Consolidate .commit-summary styles to single selector group

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
3 years agoAccept multiple SSH keys in single LDAP SSHPublicKey attribute (#13989)
zeripath [Fri, 18 Dec 2020 17:44:18 +0000 (17:44 +0000)]
Accept multiple SSH keys in single LDAP SSHPublicKey attribute (#13989)

* Accept multiple SSH keys in single LDAP SSHPublicKey attribute

Fix #13984

Signed-off-by: Andrew Thornton <art27@cantab.net>
3 years agoShow status check for merged PRs (#13975)
Cirno the Strongest [Fri, 18 Dec 2020 12:37:55 +0000 (13:37 +0100)]
Show status check for merged PRs (#13975)

* Show status check for merged PRs

* Handle PRs with no commits

* Styling

Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: 6543 <6543@obermui.de>