From c71c77fd5cadfaed5c58116daa3a61f0abac6dc6 Mon Sep 17 00:00:00 2001 From: Zack Scholl Date: Thu, 23 Mar 2017 16:28:19 -0600 Subject: [PATCH] Better UI for locking/encrypting Former-commit-id: a4d999be67331667d085f4d21e76c36248d4de6d [formerly e0ea851e54280d1299e3c8285412b3df421682a7] [formerly 011d5bf0194d46ee5e2f07cb6ef16a28554235b5 [formerly 17f856fdde59ddf045a116cb85af6f7b79f9d4a5]] Former-commit-id: b8a3b6ed199e3c06aeb6f365e4b05572a28bd852 [formerly 1998dce4d8b98ccd1586748b26d32935c9b3d78d] Former-commit-id: 81aa00298e9fe22a5017c726b772a4a34dd53acf --- bindata.go.REMOVED.git-id | 2 +- handlers.go | 1 + templates/index.tmpl | 5 +++-- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/bindata.go.REMOVED.git-id b/bindata.go.REMOVED.git-id index b7bf748..0c94d5c 100644 --- a/bindata.go.REMOVED.git-id +++ b/bindata.go.REMOVED.git-id @@ -1 +1 @@ -5c9e26680d9e507e2c4fe676ac97c5785f72de79 \ No newline at end of file +fd955de49d216362dc44c184a1484ec07072d3a0 \ No newline at end of file diff --git a/handlers.go b/handlers.go index f4c2024..1240c6d 100755 --- a/handlers.go +++ b/handlers.go @@ -128,6 +128,7 @@ func handlePageRequest(c *gin.Context) { command[0:2] != "/v" && command[0:2] != "/l" && command[0:2] != "/h") + c.HTML(http.StatusOK, "index.tmpl", gin.H{ "EditPage": command[0:2] == "/e", // /edit "ViewPage": command[0:2] == "/v", // /view diff --git a/templates/index.tmpl b/templates/index.tmpl index 17eca06..b47245b 100755 --- a/templates/index.tmpl +++ b/templates/index.tmpl @@ -397,6 +397,7 @@ CowYo