mirror of
				https://gitee.com/gitea/gitea
				synced 2025-11-04 08:30:25 +08:00 
			
		
		
		
	Improve Wiki TOC (#24137)
The old code has a lot of technical debts, eg: `repo/wiki/view.tmpl` / `Iterate` This PR improves the Wiki TOC display and improves the code. --------- Co-authored-by: delvh <dev.lh@web.de>
This commit is contained in:
		@@ -171,13 +171,6 @@ func NewFuncMap() []template.FuncMap {
 | 
			
		||||
			}
 | 
			
		||||
			return false
 | 
			
		||||
		},
 | 
			
		||||
		"Iterate": func(arg interface{}) (items []int64) {
 | 
			
		||||
			count, _ := util.ToInt64(arg)
 | 
			
		||||
			for i := int64(0); i < count; i++ {
 | 
			
		||||
				items = append(items, i)
 | 
			
		||||
			}
 | 
			
		||||
			return items
 | 
			
		||||
		},
 | 
			
		||||
 | 
			
		||||
		// -----------------------------------------------------------------
 | 
			
		||||
		// setting
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user