Compare commits

...

2 Commits

Author SHA1 Message Date
Brian Picciano
c06dd5c587 make button vs link usage consistent 2022-08-16 22:04:57 -06:00
Brian Picciano
7bd7af44a9 remove target:_blanks 2022-08-16 22:01:25 -06:00
3 changed files with 11 additions and 8 deletions

View File

@ -27,7 +27,7 @@
{{ range .Payload.IDs }} {{ range .Payload.IDs }}
<tr> <tr>
<td><a href="{{ AssetURL . }}" target="_blank">{{ . }}</a></td> <td><a href="{{ AssetURL . }}">{{ . }}</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 }}" 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 }}" /> <input name="id" type="hidden" value="{{ .Payload.Post.ID }}" />
{{ end }} {{ end }}
</td> </td>
@ -104,12 +104,15 @@
<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">
<button>New Post</button> New Post
</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 }}" target="_blank">{{ .Title }}</a></td> <td><a href="{{ PostURL .ID }}">{{ .Title }}</a></td>
<td> <td>
<a href="{{ PostURL .ID }}?edit"> <a href="{{ PostURL .ID }}?edit">
<button>Edit</button> Edit
</a> </a>
</td> </td>
<td> <td>