From c1473ac9ef0d7092cce61659f7c74a5cad03d035 Mon Sep 17 00:00:00 2001 From: Sergey Grebenshchikov Date: Wed, 21 Nov 2018 13:38:02 +0100 Subject: [PATCH] Update CSS --- Makefile | 2 +- README.md | 8 ++++---- server.go | 13 +++++++------ 3 files changed, 12 insertions(+), 11 deletions(-) diff --git a/Makefile b/Makefile index bb4caa3..d1f96ea 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -VERSION = 1.3.1 +VERSION = 1.3.2 APP := http-file-server PACKAGES := $(shell go list -f {{.Dir}} ./...) diff --git a/README.md b/README.md index 476619b..e7d0f0b 100644 --- a/README.md +++ b/README.md @@ -60,14 +60,14 @@ Or [download a binary](https://github.com/sgreben/http-file-server/releases/late ```sh # Linux -curl -L https://github.com/sgreben/http-file-server/releases/download/1.3.1/http-file-server_1.3.1_linux_x86_64.tar.gz | tar xz +curl -L https://github.com/sgreben/http-file-server/releases/download/1.3.2/http-file-server_1.3.2_linux_x86_64.tar.gz | tar xz # OS X -curl -L https://github.com/sgreben/http-file-server/releases/download/1.3.1/http-file-server_1.3.1_osx_x86_64.tar.gz | tar xz +curl -L https://github.com/sgreben/http-file-server/releases/download/1.3.2/http-file-server_1.3.2_osx_x86_64.tar.gz | tar xz # Windows -curl -LO https://github.com/sgreben/http-file-server/releases/download/1.3.1/http-file-server_1.3.1_windows_x86_64.zip -unzip versions_1.3.1_windows_x86_64.zip +curl -LO https://github.com/sgreben/http-file-server/releases/download/1.3.2/http-file-server_1.3.2_windows_x86_64.zip +unzip versions_1.3.2_windows_x86_64.zip ``` ## Use it diff --git a/server.go b/server.go index 9ecabb2..cd8334d 100644 --- a/server.go +++ b/server.go @@ -26,7 +26,7 @@ const directoryListingTemplateText = ` {{ .Title }} - +

{{ .Title }}

@@ -34,18 +34,19 @@ const directoryListingTemplateText = ` - + - - + + {{- range .Files }} {{ if (not .IsDir) }} - + + {{ else }} - + {{ end }} {{end -}}
Size (bytes)Size (bytes)
.tar.gz of all files
.zip of all files
.tar.gz of all files
.zip of all files
{{ .Name }}{{.Size.String }} ({{ .Size | printf "%d" }}){{.Size.String }}({{ .Size | printf "%d" }}){{ .Name }}{{ .Name }}