From 98d80e03ee5b5c1d6941af440ca33a8793cd84dc Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 12 Apr 2016 17:28:52 +0200 Subject: Enable delete --- tmpl/edit | 3 +++ tmpl/index | 1 + tmpl/root | 5 +---- tmpl/view | 3 +++ 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tmpl/edit b/tmpl/edit index 2034f47..f4c5f2c 100644 --- a/tmpl/edit +++ b/tmpl/edit @@ -7,3 +7,6 @@ {{end}} +{{define "action"}} + +{{end}} diff --git a/tmpl/index b/tmpl/index index e69a07d..7979e14 100644 --- a/tmpl/index +++ b/tmpl/index @@ -15,3 +15,4 @@ {{end}} {{end}} +{{define "action"}}{{end}} diff --git a/tmpl/root b/tmpl/root index 093ad19..c357ad1 100644 --- a/tmpl/root +++ b/tmpl/root @@ -10,10 +10,7 @@ diff --git a/tmpl/view b/tmpl/view index 68a4c4f..c816e34 100644 --- a/tmpl/view +++ b/tmpl/view @@ -1,2 +1,5 @@ {{define "title"}}{{.Title}}{{end}} {{define "content"}}{{.HTML}}{{end}} +{{define "action"}} + +{{end}} -- cgit v1.2.3 From 910f3461f9bf7b8f032e0681dc2675d06cc99296 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Tue, 12 Apr 2016 17:35:22 +0200 Subject: Keep container size small --- .dockerignore | 1 + .gitignore | 1 + Makefile | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 .dockerignore diff --git a/.dockerignore b/.dockerignore new file mode 100644 index 0000000..6b8710a --- /dev/null +++ b/.dockerignore @@ -0,0 +1 @@ +.git diff --git a/.gitignore b/.gitignore index 8eebda4..e9f83c9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ cert/* data/* gowiki +*.swp diff --git a/Makefile b/Makefile index 2cd2ee2..4b87331 100644 --- a/Makefile +++ b/Makefile @@ -2,7 +2,7 @@ TAG = registry.moccu/gowiki all: push -build: +build: clean docker build -t ${TAG} --rm --no-cache . push: build -- cgit v1.2.3