summaryrefslogtreecommitdiff
path: root/src/http/tpl/post-assets-manage.html
diff options
context:
space:
mode:
authorBrian Picciano <mediocregopher@gmail.com>2024-05-18 18:29:19 +0200
committerBrian Picciano <mediocregopher@gmail.com>2024-05-18 18:29:19 +0200
commit0665d0c65974533fbd313f4e0b062b5103057aeb (patch)
tree5287795eed9767bd959a5139b77ef78b4024216d /src/http/tpl/post-assets-manage.html
parentffa26298c95451639a6e01db6692d02d50b3d518 (diff)
Replace all URL rendering within templates by a URLConstructor
Diffstat (limited to 'src/http/tpl/post-assets-manage.html')
-rw-r--r--src/http/tpl/post-assets-manage.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/http/tpl/post-assets-manage.html b/src/http/tpl/post-assets-manage.html
index a0b0da0..7e01ff4 100644
--- a/src/http/tpl/post-assets-manage.html
+++ b/src/http/tpl/post-assets-manage.html
@@ -3,7 +3,7 @@
{{ $assetIDs := .GetPostAssetIDs }}
<p>
- <a href="{{ BlogURL "admin" }}">Back to Admin</a>
+ <a href="{{ .RootURL.Path "admin" }}">Back to Admin</a>
</p>
<h1>Assets</h1>
@@ -15,7 +15,7 @@
overwritten.
</p>
-<form action="{{ BlogURL "assets/" }}" method="POST" enctype="multipart/form-data">
+<form action="{{ .RootURL.Assets }}" method="POST" enctype="multipart/form-data">
<div class="row">
<div class="four columns">
<input type="text" placeholder="Unique ID" name="id" />
@@ -37,10 +37,10 @@
{{ range $assetIDs }}
<tr>
- <td><a href="{{ AssetURL . }}">{{ . }}</a></td>
+ <td><a href="{{ $.RootURL.Asset . }}">{{ . }}</a></td>
<td>
<form
- action="{{ AssetURL . }}?method=delete"
+ action="{{ ($.RootURL.Asset .).MethodDelete }}"
method="POST"
style="margin-bottom: 0;"
>