Giteabot 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							8885108c42 
							
						 
					 
					
						
						
							
							Improve feed icons and feed merge text color ( #27498 ) ( #27716 )  
						
						... 
						
						
						
						Backport #27498  by @silverwind
1. Improve various feed icons
2. Fix merge message color
<img width="763" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/3f5bcb23-6d90-4c63-85f2-46bd7e1c96d6 ">
<img width="769" alt="image"
src="https://github.com/go-gitea/gitea/assets/115237/466c37b4-e2f4-42bb-922d-b86596cdc6d0 ">
Fixes: https://github.com/go-gitea/gitea/issues/27495 
Continues: https://github.com/go-gitea/gitea/pull/27356 
Co-authored-by: silverwind <me@silverwind.io> 
						
						
					 
					
						2023-10-21 12:29:06 +02:00 
						 
				 
			
				
					
						
							
							
								Giteabot 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							f13a294b47 
							
						 
					 
					
						
						
							
							More db.DefaultContext refactor ( #27265 ) ( #27347 )  
						
						... 
						
						
						
						Backport #27265  by @JakobDev
Part of #27065 
This PR touches functions used in templates. As templates are not static
typed, errors are harder to find, but I hope I catch it all. I think
some tests from other persons do not hurt.
Co-authored-by: JakobDev <jakobdev@gmx.de> 
						
						
					 
					
						2023-09-29 13:35:01 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							4fc4f6e634 
							
						 
					 
					
						
						
							
							Refactor "editorconfig" ( #26391 )  
						
						... 
						
						
						
						There are 2 kinds of ".Editorconfig" in code, one is `JSON string` for
the web edtior, another is `*editorconfig.Editorconfig` for the file
rendering (used by `TabSizeClass`)
This PR distinguish them with different names.
And by the way, change the default tab size from 8 to 4, I think few
people would like to use 8-size tabs nowadays. 
						
						
					 
					
						2023-08-08 10:44:19 +00:00 
						 
				 
			
				
					
						
							
							
								silverwind 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							88f835192d 
							
						 
					 
					
						
						
							
							Replace interface{} with any ( #25686 )  
						
						... 
						
						
						
						Result of running `perl -p -i -e 's#interface\{\}#any#g' **/*` and `make fmt`.
Basically the same [as golang did](2580d0e08d 
						
						
					 
					
						2023-07-04 18:36:08 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							56ae853ca0 
							
						 
					 
					
						
						
							
							Simplify template helper functions ( #24570 )  
						
						... 
						
						
						
						To avoid bloating the template helper functions, some functions could be
provided by type methods.
And the new code `data-line-type="{{.GetHTMLDiffLineType}}"` reads
better than `data-line-type="{{DiffLineTypeToStr .GetType}}"`
After the fix, screenshots (the same as before):
<details>


</details> 
						
						
					 
					
						2023-05-07 09:49:46 +00:00 
						 
				 
			
				
					
						
							
							
								wxiaoguang 
							
						 
					 
					
						
						
							
							
						
						
						
							
						
						
							241b74f6c5 
							
						 
					 
					
						
						
							
							Improve template helper ( #24417 )  
						
						... 
						
						
						
						It seems that we really need the "context function" soon. So we should
clean up the helper functions first.
Major changes:
* Improve StringUtils and add JsonUtils
* Remove one-time-use helper functions like CompareLink
* Move other code (no change) to util_avatar/util_render/util_misc (no
need to propose changes for them)
I have tested the changed templates:




---------
Co-authored-by: Giteabot <teabot@gitea.io> 
						
						
					 
					
						2023-04-29 08:02:29 -04:00