Compare commits

..

No commits in common. "c06dd5c5873f7d2c96946dd2414687e8b0eb71f3" and "2144e9f2f113ff2e3ff6d1df96bb766fd8b79b94" have entirely different histories.

3 changed files with 8 additions and 11 deletions

View File

@ -27,7 +27,7 @@
{{ range .Payload.IDs }} {{ range .Payload.IDs }}
<tr> <tr>
<td><a href="{{ AssetURL . }}">{{ . }}</a></td> <td><a href="{{ AssetURL . }}" target="_blank">{{ . }}</a></td>
<td> <td>
<form <form
action="{{ AssetURL . }}?method=delete" action="{{ AssetURL . }}?method=delete"

View File

@ -27,7 +27,7 @@
placeholder="e.g. how-to-fly-a-kite" placeholder="e.g. how-to-fly-a-kite"
value="{{ .Payload.Post.ID }}" /> value="{{ .Payload.Post.ID }}" />
{{ else }} {{ else }}
<a href="{{ PostURL .Payload.Post.ID }}">{{ .Payload.Post.ID }}</a> <a href="{{ PostURL .Payload.Post.ID }}" target="_blank">{{ .Payload.Post.ID }}</a>
<input name="id" type="hidden" value="{{ .Payload.Post.ID }}" /> <input name="id" type="hidden" value="{{ .Payload.Post.ID }}" />
{{ end }} {{ end }}
</td> </td>
@ -104,15 +104,12 @@
<input type="submit" value="Update" formaction="{{ BlogURL "posts/" }}" /> <input type="submit" value="Update" formaction="{{ BlogURL "posts/" }}" />
{{ end }} {{ end }}
<a href="{{ BlogURL "posts/" }}">
<button type="button">Back</button>
</a>
</p> </p>
</form> </form>
<p>
<a href="{{ BlogURL "posts/" }}">
Back to Posts
</a>
</p>
{{ end }} {{ end }}
{{ template "base.html" . }} {{ template "base.html" . }}

View File

@ -2,7 +2,7 @@
<p> <p>
<a href="{{ BlogURL "posts/" }}?edit"> <a href="{{ BlogURL "posts/" }}?edit">
New Post <button>New Post</button>
</a> </a>
</p> </p>
@ -17,10 +17,10 @@
{{ range .Payload.Posts }} {{ range .Payload.Posts }}
<tr> <tr>
<td>{{ .PublishedAt.Local.Format "2006-01-02 15:04:05 MST" }}</td> <td>{{ .PublishedAt.Local.Format "2006-01-02 15:04:05 MST" }}</td>
<td><a href="{{ PostURL .ID }}">{{ .Title }}</a></td> <td><a href="{{ PostURL .ID }}" target="_blank">{{ .Title }}</a></td>
<td> <td>
<a href="{{ PostURL .ID }}?edit"> <a href="{{ PostURL .ID }}?edit">
Edit <button>Edit</button>
</a> </a>
</td> </td>
<td> <td>