diff options
Diffstat (limited to 'pages')
-rw-r--r-- | pages/index.html | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/pages/index.html b/pages/index.html index 4509570..3ffe8e4 100644 --- a/pages/index.html +++ b/pages/index.html @@ -21,16 +21,14 @@ <input type="submit" value="Submit"> </form> - {{ with .Result }} - <ul id="upload-filelist" {{ if or .Files .Description }}class="{{ if .Description }}error {{ else }}completed{{ end }}"{{ end }}> + {{ with .Result }}<ul id="upload-filelist" {{ if or .Files .Description }}class="{{ if .Description }}error {{ else }}completed{{ end }}"{{ end }}> {{ range .Files }} <li class="file" data-filename="{{ .Name }}"> <span class="file-name">{{ .Name }}</span> <span class="file-url"><a href="{{ .Url }}" target="_blank">{{ .Url }}</a></span> </li> {{ end }} - </ul> - {{ end }} + </ul>{{ end }} </div> @@ -39,9 +37,7 @@ <li><a href="/">{{ .SiteName }}</a></li> <li><a href="mailto:{{ .Contact }}">Contact</a></li> <li><a href="mailto:{{ .Abuse }}">Report abuse</a></li> - {{ range $name, $path := .Pages }}{{ if ne $path "index.html" }} - <li><a href="{{ $path }}">{{ $name }}</a></li> - {{ end }}{{ end }} + {{ range $name, $path := .Pages }}{{ if ne $path "index.html" }}<li><a href="{{ $path }}">{{ $name }}</a></li>{{ end }}{{ end }} </ul> </nav> </div> |