diff options
Diffstat (limited to 'templates/repo_tree_dir.html')
-rw-r--r-- | templates/repo_tree_dir.html | 80 |
1 files changed, 40 insertions, 40 deletions
diff --git a/templates/repo_tree_dir.html b/templates/repo_tree_dir.html index aa96b5d..ffdb64d 100644 --- a/templates/repo_tree_dir.html +++ b/templates/repo_tree_dir.html @@ -1,45 +1,45 @@ {{- define "repo_tree_dir" -}} <!DOCTYPE html> <html> -<head> -<link rel="stylesheet" href="/static/style.css" /> -<title>{{ .category_name }}/repos/{{ .repo_name }}/{{ .path_spec }}</title> -</head> -<body class="repo-tree-dir"> -<div class="padding-wrapper"> -<p> -/{{ .path_spec }}/ -</p> -<table id="file-tree"> -<thead> -<tr> -<th scope="col">Mode</th> -<th scope="col">Name</th> -<th scope="col">Size</th> -</tr> -</thead> -<tbody> -{{- $ref := .ref }} -{{- $path_spec := .path_spec }} -{{- range .files }} -<tr> -<td class="file-mode">{{ .Mode }}</td> -<td class="file-name"><a href="{{ $path_spec }}/{{ .Name }}">{{ .Name }}</a>{{ if not .Is_file }}/{{ end }}</td> -<td class="file-size">{{ .Size }}</td> -</tr> -{{- end }} -</tbody> -</table> -</div> -<div class="padding-wrapper"> -<div id="refs"> -</div> -</div> -<div class="padding-wrapper"> -<div id="readme"> -{{ .readme -}} -</div> -</div> -</body> + <head> + <link rel="stylesheet" href="/static/style.css" /> + <title>{{ .category_name }}/repos/{{ .repo_name }}/{{ .path_spec }}</title> + </head> + <body class="repo-tree-dir"> + <div class="padding-wrapper"> + <p> + /{{ .path_spec }}/ + </p> + <table id="file-tree"> + <thead> + <tr> + <th scope="col">Mode</th> + <th scope="col">Name</th> + <th scope="col">Size</th> + </tr> + </thead> + <tbody> + {{- $ref := .ref }} + {{- $path_spec := .path_spec }} + {{- range .files }} + <tr> + <td class="file-mode">{{ .Mode }}</td> + <td class="file-name"><a href="{{ $path_spec }}/{{ .Name }}">{{ .Name }}</a>{{ if not .Is_file }}/{{ end }}</td> + <td class="file-size">{{ .Size }}</td> + </tr> + {{- end }} + </tbody> + </table> + </div> + <div class="padding-wrapper"> + <div id="refs"> + </div> + </div> + <div class="padding-wrapper"> + <div id="readme"> + {{ .readme -}} + </div> + </div> + </body> </html> {{- end -}} |