Compare commits
2 Commits
2144e9f2f1
...
c06dd5c587
Author | SHA1 | Date | |
---|---|---|---|
|
c06dd5c587 | ||
|
7bd7af44a9 |
@ -27,7 +27,7 @@
|
||||
|
||||
{{ range .Payload.IDs }}
|
||||
<tr>
|
||||
<td><a href="{{ AssetURL . }}" target="_blank">{{ . }}</a></td>
|
||||
<td><a href="{{ AssetURL . }}">{{ . }}</a></td>
|
||||
<td>
|
||||
<form
|
||||
action="{{ AssetURL . }}?method=delete"
|
||||
|
@ -27,7 +27,7 @@
|
||||
placeholder="e.g. how-to-fly-a-kite"
|
||||
value="{{ .Payload.Post.ID }}" />
|
||||
{{ else }}
|
||||
<a href="{{ PostURL .Payload.Post.ID }}" target="_blank">{{ .Payload.Post.ID }}</a>
|
||||
<a href="{{ PostURL .Payload.Post.ID }}">{{ .Payload.Post.ID }}</a>
|
||||
<input name="id" type="hidden" value="{{ .Payload.Post.ID }}" />
|
||||
{{ end }}
|
||||
</td>
|
||||
@ -104,12 +104,15 @@
|
||||
<input type="submit" value="Update" formaction="{{ BlogURL "posts/" }}" />
|
||||
{{ end }}
|
||||
|
||||
<a href="{{ BlogURL "posts/" }}">
|
||||
<button type="button">Back</button>
|
||||
</a>
|
||||
</p>
|
||||
|
||||
</form>
|
||||
|
||||
<p>
|
||||
<a href="{{ BlogURL "posts/" }}">
|
||||
Back to Posts
|
||||
</a>
|
||||
</p>
|
||||
{{ end }}
|
||||
|
||||
{{ template "base.html" . }}
|
||||
|
@ -2,7 +2,7 @@
|
||||
|
||||
<p>
|
||||
<a href="{{ BlogURL "posts/" }}?edit">
|
||||
<button>New Post</button>
|
||||
New Post
|
||||
</a>
|
||||
</p>
|
||||
|
||||
@ -17,10 +17,10 @@
|
||||
{{ range .Payload.Posts }}
|
||||
<tr>
|
||||
<td>{{ .PublishedAt.Local.Format "2006-01-02 15:04:05 MST" }}</td>
|
||||
<td><a href="{{ PostURL .ID }}" target="_blank">{{ .Title }}</a></td>
|
||||
<td><a href="{{ PostURL .ID }}">{{ .Title }}</a></td>
|
||||
<td>
|
||||
<a href="{{ PostURL .ID }}?edit">
|
||||
<button>Edit</button>
|
||||
Edit
|
||||
</a>
|
||||
</td>
|
||||
<td>
|
||||
|
Loading…
Reference in New Issue
Block a user