silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	1c7496c7a7 
 
						 
						
							
							
								
								
								Webhook list enhancements ( #21893 )  
							
							
							
							
						 
						
							2022-11-22 07:10:42 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	2e5ac53bdc 
 
						 
						
							
							
								
								
								Embed Matrix icon as SVG ( #21890 )  
							
							... 
							
							
							
							
							Embed the SVG icon directly, making further invertion unnecessary
because the icon color can now follow text color.
<img width="240" alt="Screenshot 2022-11-21 at 20 16 32"
src="https://user-images.githubusercontent.com/115237/203142189-89f20de9-c0bd-4d05-92c0-44dadf20d78f.png ">
<img width="245" alt="Screenshot 2022-11-21 at 20 16 46"
src="https://user-images.githubusercontent.com/115237/203142191-658239ba-1859-49c6-91ad-10ddf14780d0.png "> 
							
						 
						
							2022-11-21 20:25:26 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Percy Ma 
								
							 
						 
						
							
							
								
							
							
	
	
	2836382f34 
 
						 
						
							
							
								
								
								fix(web): add alt for logo in home page ( #21887 )  
							
							... 
							
							
							
							
							add `alt` for logo in home page 
							
						 
						
							2022-11-21 15:09:55 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	c2fb27beb4 
 
						 
						
							
							
								
								
								Improvements for Content Copy ( #21842 )  
							
							... 
							
							
							
							
							It now supports copying Markdown, SVG and Images (not in Firefox
currently because of lacking
[`ClipboardItem`](https://developer.mozilla.org/en-US/docs/Web/API/ClipboardItem )
support, but can be enabled in `about:config` and works). It will fetch
the data if in a rendered view or when it's an image.
Followup to https://github.com/go-gitea/gitea/pull/21629 . 
							
						 
						
							2022-11-21 17:59:42 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Xinyu Zhou 
								
							 
						 
						
							
							
								
							
							
	
	
	b4802b9b2e 
 
						 
						
							
							
								
								
								Allow disable RSS/Atom feed ( #21622 )  
							
							... 
							
							
							
							
							This patch provide a mechanism to disable RSS/Atom feed.
Signed-off-by: Xinyu Zhou <i@sourcehut.net>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: 6543 <6543@obermui.de> 
							
						 
						
							2022-11-21 13:14:58 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									KN4CK3R 
								
							 
						 
						
							
							
								
							
							
	
	
	32db62515f 
 
						 
						
							
							
								
								
								Add package registry cleanup rules ( #21658 )  
							
							... 
							
							
							
							
							Fixes  #20514 
Fixes  #20766 
Fixes  #20631 
This PR adds Cleanup Rules for the package registry. This allows to
delete unneeded packages automatically. Cleanup rules can be set up from
the user or org settings.
Please have a look at the documentation because I'm not a native english
speaker.
Rule Form

Rule List

Rule Preview

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> 
						
							2022-11-20 16:08:38 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Jason Song 
								
							 
						 
						
							
							
								
							
							
	
	
	d3f850cc0e 
 
						 
						
							
							
								
								
								Support comma-delimited string as labels in issue template ( #21831 )  
							
							... 
							
							
							
							
							The [labels in issue YAML
templates](https://docs.github.com/en/communities/using-templates-to-encourage-useful-issues-and-pull-requests/syntax-for-issue-forms#top-level-syntax )
can be a string array or a comma-delimited string, so a single string
should be valid labels.
The old codes committed in #20987  ignore this, that's why the warning is
displayed:
<img width="618" alt="image"
src="https://user-images.githubusercontent.com/9418365/202112642-93dc72d0-71c3-40a2-9720-30fc2d48c97c.png ">
Fixes  #17877 . 
							
						 
						
							2022-11-19 15:22:15 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	eec1c71880 
 
						 
						
							
							
								
								
								Show syntax lexer name in file view/blame ( #21814 )  
							
							... 
							
							
							
							
							Show which Chroma Lexer is used to highlight the file in the file
header. It's useful for development to see what was detected, and I
think it's not bad info to have for the user:
<img width="233" alt="Screenshot 2022-11-14 at 22 31 16"
src="https://user-images.githubusercontent.com/115237/201770854-44933dfc-70a4-487c-8457-1bb3cc43ea62.png ">
<img width="226" alt="Screenshot 2022-11-14 at 22 36 06"
src="https://user-images.githubusercontent.com/115237/201770856-9260ce6f-6c0f-442c-92b5-201e5b113188.png ">
<img width="194" alt="Screenshot 2022-11-14 at 22 36 26"
src="https://user-images.githubusercontent.com/115237/201770857-6f56591b-80ea-42cc-8ea5-21b9156c018b.png ">
Also, I improved the way this header overflows on small screens:
<img width="354" alt="Screenshot 2022-11-14 at 22 44 36"
src="https://user-images.githubusercontent.com/115237/201774828-2ddbcde1-da15-403f-bf7a-6248449fa2c5.png ">
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: John Olheiser <john.olheiser@gmail.com> 
							
						 
						
							2022-11-19 13:08:06 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									KN4CK3R 
								
							 
						 
						
							
							
								
							
							
	
	
	044c754ea5 
 
						 
						
							
							
								
								
								Add context.Context to more methods ( #21546 )  
							
							... 
							
							
							
							
							This PR adds a context parameter to a bunch of methods. Some helper
`xxxCtx()` methods got replaced with the normal name now.
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> 
							
						 
						
							2022-11-19 16:12:33 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	fefdb7ffd1 
 
						 
						
							
							
								
								
								Timeline and color tweaks ( #21799 )  
							
							... 
							
							
							
							
							Followup to https://github.com/go-gitea/gitea/pull/21784 .
- Restore muted effect on timeline author and issuelist comment icon
- Remove whitespace inside shared user templates, fixing link hover
underline
- Use shared author link template more
- Use `bold` class instead of CSS
- Fix grey-light color being too dark on arc-green
- Add missing black-light color
- Fix issuelist progress bar color
- Fix various other cases of missing `.muted`
<img width="416" alt="Screenshot 2022-11-13 at 12 15 22"
src="https://user-images.githubusercontent.com/115237/201519497-1d4725c6-bc8b-47b5-9f68-1278ac9a8c92.png ">
<img width="324" alt="Screenshot 2022-11-13 at 12 16 52"
src="https://user-images.githubusercontent.com/115237/201519501-c0d03700-f9af-4316-ab46-482f2c7c738b.png ">
<img width="79" alt="Screenshot 2022-11-13 at 12 30 55"
src="https://user-images.githubusercontent.com/115237/201519502-46dc2d73-bbdf-4a2e-84d3-d2976f793163.png ">
<img width="440" alt="Screenshot 2022-11-13 at 12 41 03"
src="https://user-images.githubusercontent.com/115237/201519876-ada33948-f84a-4aeb-a40d-5c873f9a49e9.png ">
<img width="213" alt="Screenshot 2022-11-13 at 12 52 54"
src="https://user-images.githubusercontent.com/115237/201520291-a4d7238e-aeca-46c7-9008-8b644b1b676e.png ">
<img width="208" alt="Screenshot 2022-11-13 at 12 56 16"
src="https://user-images.githubusercontent.com/115237/201520436-aa8ba109-b959-42fb-831a-021e806c7082.png ">
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2022-11-19 12:02:30 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									May 
								
							 
						 
						
							
							
								
							
							
	
	
	f311d15a0b 
 
						 
						
							
							
								
								
								Added space between avatar and username ( #21825 )  
							
							... 
							
							
							
							
							Added space between avatar and username which is missing on verified
commit message and avatar is too close to username which is don't look
nice.
Current state

This is how it looks after change

Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: techknowlogick <techknowlogick@gitea.io> 
							
						 
						
							2022-11-15 16:36:53 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yarden Shoham 
								
							 
						 
						
							
							
								
							
							
	
	
	6c8ff32511 
 
						 
						
							
							
								
								
								Add updated_at field to PullReview API object ( #21812 )  
							
							... 
							
							
							
							
							* Closes  #19997 
Adds an `updated_at` time field to the `PullReview` API object to
specify when the pull request review's state changed.
Signed-off-by: Yarden Shoham <hrsi88@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> 
							
						 
						
							2022-11-15 11:33:52 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yarden Shoham 
								
							 
						 
						
							
							
								
							
							
	
	
	de6dfb7141 
 
						 
						
							
							
								
								
								Remove href="javascript:;" in "save topics (Done)" button ( #21813 )  
							
							... 
							
							
							
							
							To use an anchor tag as a button and have it be accessible I added
`role="button" tabindex="0"`,
[reference](https://stackoverflow.com/a/10510353/7414734 ).
* Closes  #19912  
							
						 
						
							2022-11-15 10:10:50 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yarden Shoham 
								
							 
						 
						
							
							
								
							
							
	
	
	6f3efdfe11 
 
						 
						
							
							
								
								
								Render number of commits in repo page in a user friendly way ( #21786 )  
							
							... 
							
							
							
							
							Use `JsPrettyNumber` to render the number of commits
* Closes  #12637 
### Before

### After

Signed-off-by: Yarden Shoham <hrsi88@gmail.com>
Co-authored-by: 6543 <6543@obermui.de> 
							
						 
						
							2022-11-13 00:55:19 -05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Nolann 
								
							 
						 
						
							
							
								
							
							
	
	
	9f8e778918 
 
						 
						
							
							
								
								
								Copy citation file content, in APA and BibTex format, on repo home page ( #19999 )  
							
							... 
							
							
							
							
							Add feature to easily copy CITATION.cff content in APA and BibTex format. 
							
						 
						
							2022-11-11 18:02:50 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yarden Shoham 
								
							 
						 
						
							
							
								
							
							
	
	
	e3a7f15791 
 
						 
						
							
							
								
								
								Add "Copy" button to file view of raw text ( #21629 )  
							
							... 
							
							
							
							
							If a raw text file is displayed, a copy button of the text is enabled.
* Closes  #12866 
### Before

### After

#### Rendered files and binaries have their button disabled


Signed-off-by: Yarden Shoham <hrsi88@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2022-11-04 15:33:50 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									zeripath 
								
							 
						 
						
							
							
								
							
							
	
	
	3e8618949e 
 
						 
						
							
							
								
								
								Clean up formatting on install page ( #21668 )  
							
							... 
							
							
							
							
							The install page has been somewhat inconsistently styled for a while.
This PR simplifies and standardises the styling of these fields makes
things line up better across widths.
Replace #21660 
Signed-off-by: Andrew Thornton <art27@cantab.net>
Old:

New:

Signed-off-by: Andrew Thornton <art27@cantab.net> 
							
						 
						
							2022-11-03 20:41:01 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									oliverpool 
								
							 
						 
						
							
							
								
							
							
	
	
	b6e81357bd 
 
						 
						
							
							
								
								
								Add Webhook authorization header ( #20926 )  
							
							... 
							
							
							
							
							_This is a different approach to #20267 , I took the liberty of adapting
some parts, see below_
## Context
In some cases, a weebhook endpoint requires some kind of authentication.
The usual way is by sending a static `Authorization` header, with a
given token. For instance:
- Matrix expects a `Bearer <token>` (already implemented, by storing the
header cleartext in the metadata - which is buggy on retry #19872 )
- TeamCity #18667 
- Gitea instances #20267 
- SourceHut https://man.sr.ht/graphql.md#authentication-strategies  (this
is my actual personal need :)
## Proposed solution
Add a dedicated encrypt column to the webhook table (instead of storing
it as meta as proposed in #20267 ), so that it gets available for all
present and future hook types (especially the custom ones #19307 ).
This would also solve the buggy matrix retry #19872 .
As a first step, I would recommend focusing on the backend logic and
improve the frontend at a later stage. For now the UI is a simple
`Authorization` field (which could be later customized with `Bearer` and
`Basic` switches):

The header name is hard-coded, since I couldn't fine any usecase
justifying otherwise.
## Questions
- What do you think of this approach? @justusbunsi @Gusted @silverwind 
- ~~How are the migrations generated? Do I have to manually create a new
file, or is there a command for that?~~
- ~~I started adding it to the API: should I complete it or should I
drop it? (I don't know how much the API is actually used)~~
## Done as well:
- add a migration for the existing matrix webhooks and remove the
`Authorization` logic there
_Closes #19872_
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Gusted <williamzijl7@hotmail.com>
Co-authored-by: delvh <dev.lh@web.de> 
							
						 
						
							2022-11-03 20:23:20 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Gusted 
								
							 
						 
						
							
							
								
							
							
	
	
	c2d2323fc8 
 
						 
						
							
							
								
								
								Configure update checker on installation page ( #21655 )  
							
							... 
							
							
							
							
							- I recently became aware that this was enabled by-default, I don't
necessary agree with that and this should rather be configured by the
user(this patch does that on the installation page) as it connects to a
homeserver, which I'd prefer to avoid on my instance.
 
							
						 
						
							2022-11-01 19:23:56 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									kolaente 
								
							 
						 
						
							
							
								
							
							
	
	
	cd5c067abe 
 
						 
						
							
							
								
								
								fix: PR status layout on mobile ( #21547 )  
							
							... 
							
							
							
							
							This PR fixes the layout of PR status layouts on mobile. For longer
status context names or on very small screens the text would overflow
and push the "Details" and "Required" badges out of the container.
Before:

After:

Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> 
							
						 
						
							2022-10-28 09:49:42 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Xinyu Zhou 
								
							 
						 
						
							
							
								
							
							
	
	
	830f5c3736 
 
						 
						
							
							
								
								
								Fix UI column width, button overflow Fomantic's grid ( #21559 )  
							
							... 
							
							
							
							
							resolved  #21310  
Before:

After:

Signed-off-by: baronbunny <its@baronbunny.cn>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> 
						
							2022-10-28 09:48:48 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									KN4CK3R 
								
							 
						 
						
							
							
								
							
							
	
	
	5c2089a01d 
 
						 
						
							
							
								
								
								Change commits-table column width ( #21564 )  
							
							... 
							
							
							
							
							Fixes  #21561 
Before

After
 
						
							2022-10-25 18:00:37 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Gusted 
								
							 
						 
						
							
							
								
							
							
	
	
	29c00eb1ed 
 
						 
						
							
							
								
								
								Improve code comment review on mobile ( #21461 )  
							
							... 
							
							
							
							
							- Fix placement of avatar image, this was not placed in the
`comment-header-left` and add CSS to cover the limiting of width+height
of avatar for code-review comment on "Files changed" page. This fixes
the big noticeable avatar issue.
- Apply `margin-bottom` to the "next" button, so it's consistent with
the "previous" button.
- Make sure the "next"/"previous" start at `flex-start` on mobile and
not off-screen at `flex-end`. As well force them to have `flex: 1` so
they won't overflow on x-asis. This also requires the `width: 100%` for
the `.ui.buttons` div.
- Resolves  #20074 
### Before
<details><img width="512"
src="https://user-images.githubusercontent.com/25481501/195952930-09560cad-419f-43a3-a8a4-a4166c117994.jpg "></details>
### After
<details><img width="512"
src="https://user-images.githubusercontent.com/25481501/197340081-0365dfa8-4344-46b4-8702-a40c778c073f.jpg "></details>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: silverwind <me@silverwind.io> 
							
						 
						
							2022-10-25 19:11:49 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Vladimir Yakovlev 
								
							 
						 
						
							
							
								
							
							
	
	
	0218fa7cf1 
 
						 
						
							
							
								
								
								Added missing headers on user packages page ( #21172 )  
							
							... 
							
							
							
							
							User packages page had missing tabs.


Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv> 
							
						 
						
							2022-10-24 20:01:05 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									M Hickford 
								
							 
						 
						
							
							
								
							
							
	
	
	191a74d622 
 
						 
						
							
							
								
								
								Record OAuth client type at registration ( #21316 )  
							
							... 
							
							
							
							
							The OAuth spec [defines two types of
client](https://datatracker.ietf.org/doc/html/rfc6749#section-2.1 ),
confidential and public. Previously Gitea assumed all clients to be
confidential.
> OAuth defines two client types, based on their ability to authenticate
securely with the authorization server (i.e., ability to
>   maintain the confidentiality of their client credentials):
>
>   confidential
> Clients capable of maintaining the confidentiality of their
credentials (e.g., client implemented on a secure server with
> restricted access to the client credentials), or capable of secure
client authentication using other means.
>
>   **public
> Clients incapable of maintaining the confidentiality of their
credentials (e.g., clients executing on the device used by the resource
owner, such as an installed native application or a web browser-based
application), and incapable of secure client authentication via any
other means.**
>
> The client type designation is based on the authorization server's
definition of secure authentication and its acceptable exposure levels
of client credentials. The authorization server SHOULD NOT make
assumptions about the client type.
 https://datatracker.ietf.org/doc/html/rfc8252#section-8.4 
> Authorization servers MUST record the client type in the client
registration details in order to identify and process requests
accordingly.
Require PKCE for public clients:
https://datatracker.ietf.org/doc/html/rfc8252#section-8.1 
> Authorization servers SHOULD reject authorization requests from native
apps that don't use PKCE by returning an error message
Fixes  #21299 
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> 
							
						 
						
							2022-10-24 15:59:24 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	bf2a72d126 
 
						 
						
							
							
								
								
								Expand "Go to File" button again, fix 'Add File' margin ( #21543 )  
							
							... 
							
							
							
							
							With https://github.com/go-gitea/gitea/pull/21428  we gained some space
so we are again able to show the "Go to File" button as text instead of
icon-only (the old icon was not particularily fitting anyways).
Before:
<img width="328" alt="image"
src="https://user-images.githubusercontent.com/115237/197334423-07731d9d-bf26-4aeb-95fa-490d9d0bf2a2.png ">
After:
<img width="339" alt="Screen Shot 2022-10-22 at 12 28 01"
src="https://user-images.githubusercontent.com/115237/197334383-467c4107-09c9-4881-b75f-7f403eab7f3a.png ">
<img width="413" alt="Screen Shot 2022-10-22 at 12 28 16"
src="https://user-images.githubusercontent.com/115237/197334384-f7d1fdda-a011-4138-ad1e-b52fc987501f.png "> 
							
						 
						
							2022-10-24 02:23:04 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									KN4CK3R 
								
							 
						 
						
							
							
								
							
							
	
	
	876ee8c3cd 
 
						 
						
							
							
								
								
								Allow package version sorting ( #21453 )  
							
							
							
							
						 
						
							2022-10-23 09:18:15 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									rock2dust 
								
							 
						 
						
							
							
								
							
							
	
	
	cd33979f5a 
 
						 
						
							
							
								
								
								Added check for disabled Packages ( #21540 )  
							
							... 
							
							
							
							
							At the moment, If admin disable Packages, still show the Packages on the
admin dashboard
This patch added a check to hide the Packages entry
Signed-off-by: baronbunny <its@baronbunny.cn>
Signed-off-by: baronbunny <its@baronbunny.cn> 
							
						 
						
							2022-10-22 11:24:09 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Lunny Xiao 
								
							 
						 
						
							
							
								
							
							
	
	
	16cbd5b59c 
 
						 
						
							
							
								
								
								Fix generating compare link ( #21519 )  
							
							... 
							
							
							
							
							Fix  #6318 
Co-authored-by: zeripath <art27@cantab.net> 
						
							2022-10-21 16:39:26 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Gusted 
								
							 
						 
						
							
							
								
							
							
	
	
	6b712465a8 
 
						 
						
							
							
								
								
								Revert increased width on pull pages ( #21470 )  
							
							... 
							
							
							
							
							- Revert a behavior from #21012 , which liberally added `fluid padded` to
non-split style pull pages, this caused it to take up the whole
screen(such in split-style pull pages) on pull pages where the diff was
shown.
- Resolves  #21460 
### Before


### After

 
							
						 
						
							2022-10-19 15:48:29 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									KN4CK3R 
								
							 
						 
						
							
							
								
							
							
	
	
	c3b2e44392 
 
						 
						
							
							
								
								
								Add team member invite by email ( #20307 )  
							
							... 
							
							
							
							
							Allows to add (not registered) team members by email.
related #5353 
Invite by mail:

Pending invitations:

Email:

Join form:

Co-authored-by: Jack Hay <jjphay@gmail.com> 
							
						 
						
							2022-10-19 14:40:28 +02:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	7d1aed83f4 
 
						 
						
							
							
								
								
								Disable the 'Add File' button when not able to edit repo ( #21503 )  
							
							... 
							
							
							
							
							Previously, the button would render a dropdown with zero items when
`.CanEnableEditor` was false (for example on a mirror repo). Now it
disables the button instead which is better UX.
<img width="310" alt="image"
src="https://user-images.githubusercontent.com/115237/196546655-7262070d-dd8f-4fbe-ad5c-ecb443a9caef.png ">
<img width="292" alt="image"
src="https://user-images.githubusercontent.com/115237/196546694-51ef5792-16d4-463d-aae8-7ef22dba6bb4.png ">
Co-authored-by: Lauris BH <lauris@nix.lv>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> 
							
						 
						
							2022-10-19 16:08:33 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	e27d52b276 
 
						 
						
							
							
								
								
								Fix branch dropdown shifting on page load ( #21428 )  
							
							... 
							
							
							
							
							Removed the "tag/branch" prefix and did some misc tweaks like changing to `<button>` for a11y and adding a bit of margin besides repo path. 
							
						 
						
							2022-10-19 13:39:55 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yarden Shoham 
								
							 
						 
						
							
							
								
							
							
	
	
	acdb92ad42 
 
						 
						
							
							
								
								
								Localize all timestamps ( #21440 )  
							
							... 
							
							
							
							
							Following
* #21410  
We are now able to localize all timestamps. Some examples:
`short-date` format, French, user profile page:

`date-time` format, Portuguese, mirror repository settings page:

Signed-off-by: Yarden Shoham <hrsi88@gmail.com>
Signed-off-by: Yarden Shoham <hrsi88@gmail.com>
Co-authored-by: Gusted <williamzijl7@hotmail.com>
Co-authored-by: techknowlogick <techknowlogick@gitea.io>
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> 
							
						 
						
							2022-10-17 12:08:21 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Lunny Xiao 
								
							 
						 
						
							
							
								
							
							
	
	
	f860a6d2e4 
 
						 
						
							
							
								
								
								Add system setting table with cache and also add cache supports for user setting ( #18058 )  
							
							
							
							
						 
						
							2022-10-17 07:29:26 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yarden Shoham 
								
							 
						 
						
							
							
								
							
							
	
	
	b9cd6fb703 
 
						 
						
							
							
								
								
								Add code highlighting in issue titles ( #21432 )  
							
							... 
							
							
							
							
							This changes the rendering logic of issue titles. If a substring in an
issue title is enclosed with a pair of backticks, it'll be rendered with
a monospace font (HTML `code` tag).
* Closes  #20887 
Signed-off-by: Yarden Shoham <hrsi88@gmail.com>
Co-authored-by: Gusted <williamzijl7@hotmail.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: 6543 <6543@obermui.de> 
							
						 
						
							2022-10-16 02:24:41 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									silverwind 
								
							 
						 
						
							
							
								
							
							
	
	
	9dc264a2ee 
 
						 
						
							
							
								
								
								Diff file tree tweaks ( #21446 )  
							
							... 
							
							
							
							
							- Left-align the diff stat line again like previously.
- Default the file tree to collapsed view, which means the tree will
rendered initially collapsed and it may "pop in" via JS if enabled. I
think this is more desirable than having the empty space for the tree
"pop out" like it currently does.
- Mute the icon, removing color unless hovered.
- Increase icon size and vertically center it.
Before:
<img width="1271" alt="image"
src="https://user-images.githubusercontent.com/115237/195666451-55771595-0525-42b8-be1b-d03cc1cb2961.png ">
After:
<img width="1280" alt="image"
src="https://user-images.githubusercontent.com/115237/195666385-c91fd0de-6dcc-4d9c-89ff-7581828fcf14.png ">
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2022-10-14 17:43:25 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yarden Shoham 
								
							 
						 
						
							
							
								
							
							
	
	
	c4f7c96903 
 
						 
						
							
							
								
								
								Run make fmt ( #21437 )  
							
							... 
							
							
							
							
							The only change is what `make fmt` did, I am merely a vessel for its
glorious function
Signed-off-by: Yarden Shoham <hrsi88@gmail.com> 
							
						 
						
							2022-10-13 21:33:54 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	f40833d1f0 
 
						 
						
							
							
								
								
								Remove useless appVer from JS window.config ( #21445 )  
							
							... 
							
							
							
							
							The only usage of `appVer` was in serviceworker.js, while indeed it
needs the asset version. 
							
						 
						
							2022-10-14 01:16:27 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Neel 
								
							 
						 
						
							
							
								
							
							
	
	
	c35531dd11 
 
						 
						
							
							
								
								
								Fix   #21406 : Hide repo information from file view/blame mode ( #21420 )  
							
							... 
							
							
							
							
							# Summary
The repo information such as description, stats and topics are getting
displayed in the top-bar when viewing a file. This has been fixed to
display the repo information only while navigating the repo and not
while viewing or blaming a file from the repo
## Before fix
Screenshot from the issue

## After the fix
- **Repo homepage**
The repo description, topics and summary will be displayed

- **When opening a file**
The repo description, topic and summary has been conditionally hidden
from the view
<img width="1311" alt="image"
src="https://user-images.githubusercontent.com/47709856/195278964-9479231c-62ad-4c0e-b438-2018f22289db.png ">
- **When running blame on a file**
> This was originally not part of the issue #21406 . However the fix
seems relevant for the blame view as well.
<img width="1312" alt="image"
src="https://user-images.githubusercontent.com/47709856/195279619-02010775-aec3-4c8d-a184-d2d838c797e8.png ">
- **From within a directory**
The repo description, topics and summary will not be displayed

Supporting integration tests have also been added. 
							
						 
						
							2022-10-13 11:31:10 +03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yarden Shoham 
								
							 
						 
						
							
							
								
							
							
	
	
	6a6dc97b0f 
 
						 
						
							
							
								
								
								Respect user's locale when rendering the date range in the repo activity page ( #21410 )  
							
							... 
							
							
							
							
							# Description
Previously, to make the date range understood by all, we used the format
"2006-01-02" for the dates as it's locale-generic.
This commit changes the rendering logic. Instead of rendering the date
on the server, we send a formatted computer-readable timestamp. The
client's javascript then renders it according to the user's locale.
This approach is reusable across the codebase, any `<time></time>` tag
with the data-format="date" attribute would get rendered according to
the user's chosen locale.
## Previous View

## New View
### English

### French

### Portuguese

### Italian

# References
* #21380  
* #21387 
* #21396 
Inspiration:
I think either differentiating by class, or probably better by a custom
attribute such as `data-format` or similar, is the best course of
action.
_Originally posted by @delvh in
https://github.com/go-gitea/gitea/issues/21396#issuecomment-1274424788_ 
      
Resolves  #21380 
Signed-off-by: Yarden Shoham <hrsi88@gmail.com>
Co-authored-by: silverwind <me@silverwind.io> 
							
						 
						
							2022-10-13 00:14:14 +03:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									qwerty287 
								
							 
						 
						
							
							
								
							
							
	
	
	a902af75f4 
 
						 
						
							
							
								
								
								Support instance-wide OAuth2 applications ( #21335 )  
							
							... 
							
							
							
							
							Support OAuth2 applications created by admins on the admin panel, they
aren't owned by anybody.
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: Lauris BH <lauris@nix.lv> 
							
						 
						
							2022-10-12 22:08:29 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yarden Shoham 
								
							 
						 
						
							
							
								
							
							
	
	
	9b7675d0cf 
 
						 
						
							
							
								
								
								Remove cancel button in repo creation page ( #21381 )  
							
							
							
							
						 
						
							2022-10-11 22:47:35 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Lauris BH 
								
							 
						 
						
							
							
								
							
							
	
	
	b59b0cad0a 
 
						 
						
							
							
								
								
								Add user/organization code search ( #19977 )  
							
							... 
							
							
							
							
							Fixes  #19925  
Screenshots:
 
						
							2022-10-11 00:12:03 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	23b6827151 
 
						 
						
							
							
								
								
								Fix calls to i18n in templates ( #21394 )  
							
							... 
							
							
							
							
							Although the `.i18n` has been refactored to `.locale`, some PRs using
`.i18n` were still merged.
* #20219 
* #21246 
This PR fixes the calls to `.i18n`.
At the moment, `{{.nosuch.nosuch "..."}}` won't cause template error so
these mistakes don't cause 500 and haven't been found. 
							
						 
						
							2022-10-10 15:05:32 +01:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									qwerty287 
								
							 
						 
						
							
							
								
							
							
	
	
	a813c9d8f3 
 
						 
						
							
							
								
								
								Allow creation of OAuth2 applications for orgs ( #18084 )  
							
							... 
							
							
							
							
							Adds the settings pages to create OAuth2 apps also to the org settings
and allows to create apps for orgs.
Refactoring: the oauth2 related templates are shared for
instance-wide/org/user, and the backend code uses `OAuth2CommonHandlers`
to share code for instance-wide/org/user.
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2022-10-09 20:07:41 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Michael Horstmann 
								
							 
						 
						
							
							
								
							
							
	
	
	6c53cf852f 
 
						 
						
							
							
								
								
								Removed one extra whitespace in footer after "Template" ( #21364 )  
							
							
							
							
						 
						
							2022-10-08 11:53:42 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Andrew Imeson 
								
							 
						 
						
							
							
								
							
							
	
	
	d94f15c2fd 
 
						 
						
							
							
								
								
								Make external issue tracker regexp configurable via API ( #21338 )  
							
							... 
							
							
							
							
							Fixes  #21336  
Signed-off-by: Andrew Imeson <andrew@andrewimeson.com> 
						
							2022-10-07 20:49:30 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									rock2dust 
								
							 
						 
						
							
							
								
							
							
	
	
	1294f6c511 
 
						 
						
							
							
								
								
								Fix default theme-auto selector when nologin ( #21346 )  
							
							... 
							
							
							
							
							the bug is theme selector is `theme-` when not login to Gitea

Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: zeripath <art27@cantab.net>
Co-authored-by: delvh <dev.lh@web.de>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2022-10-06 11:52:43 +08:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Gennady Kovshenin 
								
							 
						 
						
							
							
								
							
							
	
	
	fd2d5f06b0 
 
						 
						
							
							
								
								
								Add stat to ToCommit function for speed ( #21337 )  
							
							... 
							
							
							
							
							Calls to ToCommit are very slow due to fetching diffs, analyzing files.
This patch lets us supply `stat` as false to speed fetching a commit
when we don't need the diff.
/v1/repo/commits has a default `stat` set as true now. Set to false to
experience fetching thousands of commits per second instead of 2-5 per
second. 
							
						 
						
							2022-10-06 11:21:04 +08:00