We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 4cee60b + b47c24f commit ad9c46bCopy full SHA for ad9c46b
server.go
@@ -36,15 +36,17 @@ const directoryListingTemplateText = `
36
</head>
37
<body>
38
<h1>{{ .Title }}</h1>
39
-{{ if .Files }}
+{{ if or .Files .AllowUpload }}
40
<table>
41
<thead>
42
<th></th>
43
<th colspan=2 class=number>Size (bytes)</th>
44
</thead>
45
<tbody>
46
+ {{- if .Files }}
47
<tr><td colspan=3><a href="{{ .TarGzURL }}">.tar.gz of all files</a></td></tr>
48
<tr><td colspan=3><a href="{{ .ZipURL }}">.zip of all files</a></td></tr>
49
+ {{- end }}
50
{{- range .Files }}
51
<tr>
52
{{ if (not .IsDir) }}
0 commit comments