diff options
Diffstat (limited to 'srv/src/http/tpl/edit-post.html')
-rw-r--r-- | srv/src/http/tpl/edit-post.html | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/srv/src/http/tpl/edit-post.html b/srv/src/http/tpl/edit-post.html index a585b82..ea1f2c1 100644 --- a/srv/src/http/tpl/edit-post.html +++ b/srv/src/http/tpl/edit-post.html @@ -15,6 +15,9 @@ type="text" placeholder="e.g. how-to-fly-a-kite" value="{{ .Payload.Post.ID }}" /> + {{ else if .Payload.IsDraft }} + {{ .Payload.Post.ID }} + <input name="id" type="hidden" value="{{ .Payload.Post.ID }}" /> {{ else }} <a href="{{ PostURL .Payload.Post.ID }}">{{ .Payload.Post.ID }}</a> <input name="id" type="hidden" value="{{ .Payload.Post.ID }}" /> @@ -107,10 +110,17 @@ </form> <p> + {{ if .Payload.IsDraft }} + <a href="{{ BlogURL "drafts/" }}"> + Back to Drafts + </a> + {{ else }} <a href="{{ BlogURL "posts/" }}"> Back to Posts </a> + {{ end }} </p> + {{ end }} {{ template "base.html" . }} |