0ko 
								
							 
						 
						
							
							
								
							
							
	29cc80d849  
						 
						
							
							
								
								
								Provide a way to translate data units  
							
							
							
							
						 
						
							2024-03-30 21:10:47 +05:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	3c05986fcf 
 
						 
						
							
							
								
								
								Fix incorrect package link method calls in templates ( #29580 )  
							
							... 
							
							
							
							
							Fix  #29562 
Follow  #29531 
(cherry picked from commit 7ec4c65ea5d5a3765d24ee68ae421f2f911b6b5d) 
						
							2024-03-11 23:36:57 +07:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									delvh 
								
							 
						 
						
							
							
								
							
							
	
	
	7960ba7e2b 
 
						 
						
							
							
								
								
								Always use ctx.Locale.Tr inside templates ( #27231 )  
							
							
							
							
						 
						
							2023-09-25 08:56:50 +00:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									wxiaoguang 
								
							 
						 
						
							
							
								
							
							
	
	
	0e8045d8ea 
 
						 
						
							
							
								
								
								Fix template function DateTime ( #24317 )  
							
							... 
							
							
							
							
							Before, 500 error
 
							
						 
						
							2023-04-25 15:48:30 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yarden Shoham 
								
							 
						 
						
							
							
								
							
							
	
	
	70bb4984cd 
 
						 
						
							
							
								
								
								Allow using localized absolute date times within phrases with place holders and localize issue due date events ( #24275 )  
							
							... 
							
							
							
							
							This refactors the `shared/datetime/short|long|full` templates into a
template helper function, which allows us to render absolute date times
within translatable phrases.
- Follows #23988 
- The first attempt was in #24055 
- This should help #22664  
Changes:
1. Added the `DateTime` template helper that replaces the
`shared/datetime/short|long|full` templates
2. Used find-and-replace with varying regexes to replace the templates
from step 1 (for example, `\{\{template "shared/datetime/(\S+) \(dict
"Datetime" ([^"]+) "Fallback" ([^\)]+\)?) ?\)?\}\}` -> `{{DateTime "$1
$2 $3}}`)
3. Used the new `DateTime` helper in the issue due date timestamp
rendering
# Before

# After

---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com> 
							
						 
						
							2023-04-23 15:12:33 -04:00 
							
								 
							
							
								 
							
						 
					 
				
					
						
							
								
								
									Yarden Shoham 
								
							 
						 
						
							
							
								
							
							
	
	
	b7b5834831 
 
						 
						
							
							
								
								
								Use auto-updating, natively hoverable, localized time elements ( #23988 )  
							
							... 
							
							
							
							
							- Added [GitHub's `relative-time` element](https://github.com/github/relative-time-element )
- Converted all formatted timestamps to use this element
- No more flashes of unstyled content around time elements
- These elements are localized using the `lang` property of the HTML file
- Relative (e.g. the activities in the dashboard) and duration (e.g.
server uptime in the admin page) time elements are auto-updated to keep
up with the current time without refreshing the page
- Code that is not needed anymore such as `formatting.js` and parts of `since.go` have been deleted
Replaces #21440 
Follows #22861 
## Screenshots
### Localized


### Tooltips
#### Native for dates

#### Interactive for relative

### Auto-update

---------
Signed-off-by: Yarden Shoham <git@yardenshoham.com>
Co-authored-by: wxiaoguang <wxiaoguang@gmail.com>
Co-authored-by: silverwind <me@silverwind.io>
Co-authored-by: delvh <dev.lh@web.de> 
							
						 
						
							2023-04-11 01:01:20 +02: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