| 
						
						
							
								
							
						
						
					 | 
					 | 
					@ -5,6 +5,7 @@ | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					package repo | 
					 | 
					 | 
					 | 
					package repo | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					import ( | 
					 | 
					 | 
					 | 
					import ( | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
						"fmt" | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						"strings" | 
					 | 
					 | 
					 | 
						"strings" | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						"github.com/codegangsta/martini" | 
					 | 
					 | 
					 | 
						"github.com/codegangsta/martini" | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -87,6 +88,11 @@ func Single(ctx *middleware.Context, params martini.Params) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							for i, _ := range treenames { | 
					 | 
					 | 
					 | 
							for i, _ := range treenames { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
								Paths = append(Paths, strings.Join(treenames[0:i+1], "/")) | 
					 | 
					 | 
					 | 
								Paths = append(Paths, strings.Join(treenames[0:i+1], "/")) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							} | 
					 | 
					 | 
					 | 
							} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
							ctx.Data["HasParentPath"] = true | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
							if len(Paths)-2 >= 0 { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
								ctx.Data["ParentPath"] = "/" + Paths[len(Paths)-2] | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
							} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						} | 
					 | 
					 | 
					 | 
						} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						// Get latest commit according username and repo name
 | 
					 | 
					 | 
					 | 
						// Get latest commit according username and repo name
 | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
							
								
							
						
						
					 | 
					 | 
					@ -126,6 +132,8 @@ func Single(ctx *middleware.Context, params martini.Params) { | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
							} | 
					 | 
					 | 
					 | 
							} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						} | 
					 | 
					 | 
					 | 
						} | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					
 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
						fmt.Println(Paths) | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					 | 
					
 | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						ctx.Data["Paths"] = Paths | 
					 | 
					 | 
					 | 
						ctx.Data["Paths"] = Paths | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						ctx.Data["Treenames"] = treenames | 
					 | 
					 | 
					 | 
						ctx.Data["Treenames"] = treenames | 
				
			
			
		
	
		
		
			
				
					
					 | 
					 | 
					 | 
						ctx.Data["IsRepoToolbarSource"] = true | 
					 | 
					 | 
					 | 
						ctx.Data["IsRepoToolbarSource"] = true | 
				
			
			
		
	
	
		
		
			
				
					| 
						
							
								
							
						
						
						
					 | 
					 | 
					
  |