gitshow

Log | Files | Refs

tree.html (647B)


      1 {{template "header" .}}
      2 
      3 {{block "tree_content" .}}
      4 <div id="tab-list" role="tablist" hx-push-url="true">
      5   <button hx-get="/repos/{{.Name}}">about</button>
      6   <button hx-get="/repos/{{.Name}}/log">log</button>
      7   <button hx-get="/repos/{{.Name}}/tree/{{.Ref}}/" class="selected">tree</button>
      8 </div>
      9 {{$repoName:=.Name}}
     10 {{$branchName:=.Ref}}
     11 	<table>
     12 	{{range .Entries}}
     13 		<tr>
     14       <td class="tree-kind">{{if isFile .}}F{{else}}D{{end}}</div>
     15 			<td{{if isFile .}} hx-push-url="true" class="tree-file" hx-get="/repos/{{$repoName}}/file/{{$branchName}}/{{.Name}}"{{end}}>{{.Name}}</td>
     16 		</tr>
     17 	{{end}}
     18 	</table>
     19 {{end}}
     20 
     21 {{template "footer" .}}