mirror of
				https://github.com/caddyserver/caddy.git
				synced 2025-11-04 03:27:23 -05:00 
			
		
		
		
	Added "go up" link to browse template
In order to have directly a link within the browse listing I have added a link to the top of the table to get one level up in the tree. Added that after a chat with @mholt. Signed-off-by: Thomas Boerger <thomas@webhippie.de>
This commit is contained in:
		
							parent
							
								
									0a7ca64f53
								
							
						
					
					
						commit
						c86c26a056
					
				@ -210,7 +210,8 @@ td:first-child svg {
 | 
				
			|||||||
	position: absolute;
 | 
						position: absolute;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
td .name {
 | 
					td .name,
 | 
				
			||||||
 | 
					td .goup {
 | 
				
			||||||
	margin-left: 1.75em;
 | 
						margin-left: 1.75em;
 | 
				
			||||||
	word-break: break-all;
 | 
						word-break: break-all;
 | 
				
			||||||
	overflow-wrap: break-word;
 | 
						overflow-wrap: break-word;
 | 
				
			||||||
@ -342,6 +343,17 @@ footer {
 | 
				
			|||||||
							{{end}}
 | 
												{{end}}
 | 
				
			||||||
						</th>
 | 
											</th>
 | 
				
			||||||
					</tr>
 | 
										</tr>
 | 
				
			||||||
 | 
										{{if .CanGoUp}}
 | 
				
			||||||
 | 
										<tr>
 | 
				
			||||||
 | 
											<td>
 | 
				
			||||||
 | 
												<a href="..">
 | 
				
			||||||
 | 
													<span class="goup">Go up</span>
 | 
				
			||||||
 | 
												</a>
 | 
				
			||||||
 | 
											</td>
 | 
				
			||||||
 | 
											<td>—</td>
 | 
				
			||||||
 | 
											<td>—</td>
 | 
				
			||||||
 | 
										</tr>
 | 
				
			||||||
 | 
										{{end}}
 | 
				
			||||||
					{{range .Items}}
 | 
										{{range .Items}}
 | 
				
			||||||
					<tr>
 | 
										<tr>
 | 
				
			||||||
						<td>
 | 
											<td>
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user