summaryrefslogtreecommitdiff
path: root/got
diff options
context:
space:
mode:
authorLuke Shumaker <lukeshu@sbcglobal.net>2016-11-15 00:39:41 -0500
committerLuke Shumaker <lukeshu@sbcglobal.net>2016-11-15 00:39:41 -0500
commit17b0b282a2a17da1ed54c028fdf18b6760c7b129 (patch)
tree664aea81c28415d8092a58bdc56c5de86428547d /got
parent06001af5fe64466bb2f26897ca2d72152d9ac06b (diff)
add support for creating files
Diffstat (limited to 'got')
-rw-r--r--got/view_blob.got4
1 files changed, 4 insertions, 0 deletions
diff --git a/got/view_blob.got b/got/view_blob.got
index 752d5c7..16d7ff1 100644
--- a/got/view_blob.got
+++ b/got/view_blob.got
@@ -1,6 +1,10 @@
<!-- -*- Mode: HTML -*- -->
<h1>{{.path | html}}</h1>
<p>Content-Type: {{.ctype | html}}</p>
+{{if not .exists}}
+<aside><p>This file does not exist, but it can be created by
+ submitting this page.</p></aside>
+{{end}}
{{if istext .ctype}}
<form method="POST" enctype="multipart/form-data">
<input type="hidden" name="_method" value="PUT">