summaryrefslogtreecommitdiff
path: root/srv/src/http/tpl/edit-post.html
diff options
context:
space:
mode:
Diffstat (limited to 'srv/src/http/tpl/edit-post.html')
-rw-r--r--srv/src/http/tpl/edit-post.html24
1 files changed, 10 insertions, 14 deletions
diff --git a/srv/src/http/tpl/edit-post.html b/srv/src/http/tpl/edit-post.html
index 9376f2e..5db0600 100644
--- a/srv/src/http/tpl/edit-post.html
+++ b/srv/src/http/tpl/edit-post.html
@@ -1,16 +1,5 @@
{{ define "body" }}
-{{ if gt (len .Payload.Tags) 0 }}
-<p>
- Existing tags:
- <em>
- {{ range $i, $tag := .Payload.Tags }}
- {{ if ne $i 0 }} {{ end }}{{ $tag }}
- {{ end }}
- </em>
-</p>
-{{ end }}
-
<form method="POST" action="{{ BlogURL "posts/" }}">
<table>
@@ -34,9 +23,7 @@
</tr>
<tr>
- <td>
- <p>Tags (space separated)</p>
- </td>
+ <td>Tags (space separated)</td>
<td>
<input
name="tags"
@@ -45,6 +32,15 @@
{{- if ne $i 0 }} {{ end }}{{ $tag -}}
{{- end -}}
"/>
+
+ {{ if gt (len .Payload.Tags) 0 }}
+ <em>
+ Existing tags:
+ {{ range $i, $tag := .Payload.Tags }}
+ {{ if ne $i 0 }} {{ end }}{{ $tag }}
+ {{ end }}
+ </em>
+ {{ end }}
</td>
</tr>