summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--template.html27
1 files changed, 15 insertions, 12 deletions
diff --git a/template.html b/template.html
index e37ee98..ad1811c 100644
--- a/template.html
+++ b/template.html
@@ -194,20 +194,23 @@
</form>
{{end}}
- {{if .TextLink }}
- <fieldset>
- <legend>Text Link</legend>
- <a href="{{ .Host }}{{ .TextLink }}">{{ .Host }}{{ .TextLink }}</a>
- </fieldset>
- {{end}}
+ {{if not .Form }}
+ {{if .TextLink }}
+ <fieldset>
+ <legend>Text Link</legend>
+ <a href="{{ .Host }}{{ .TextLink }}">{{ .Host }}{{ .TextLink }}</a>
+ </fieldset>
+ {{end}}
- {{if .FileLink }}
- <fieldset>
- <legend>File Link</legend>
- <a href="{{ .Host }}{{ .FileLink }}">{{ .Host }}{{ .FileLink }}</a>
- </fieldset>
- {{end}}
+ {{if .FileLink }}
+ <fieldset>
+ <legend>File Link</legend>
+ <a href="{{ .Host }}{{ .FileLink }}">{{ .Host }}{{ .FileLink }}</a>
+ </fieldset>
+ {{end}}
+ <a href="/">↩ Back to New Post</a>
+ {{end}}
</div>
</div>