aboutsummaryrefslogtreecommitdiffstats
path: root/internal/web/templates/dashboard/images.html
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/templates/dashboard/images.html')
-rw-r--r--internal/web/templates/dashboard/images.html14
1 files changed, 7 insertions, 7 deletions
diff --git a/internal/web/templates/dashboard/images.html b/internal/web/templates/dashboard/images.html
index 2e39531..8b9faa3 100644
--- a/internal/web/templates/dashboard/images.html
+++ b/internal/web/templates/dashboard/images.html
@@ -1,14 +1,14 @@
-{{define "title"}}Images · {{.Blog.Title}}{{end}}
+{{define "title"}}{{t "Images"}} · {{.Blog.Title}}{{end}}
{{define "content"}}
<div class="pagehead">
- <h1>Images</h1>
- <p class="lead muted">Images are stored with your blog. Put one in a post with <em>Insert image</em> in the editor, or copy its line from below.</p>
+ <h1>{{t "Images"}}</h1>
+ <p class="lead muted">{{t "Images are stored with your blog. Put one in a post with"}} <em>{{t "Insert image"}}</em> {{t "in the editor, or copy its line from below."}}</p>
</div>
<div class="card">
<form method="post" action="/b/{{.Blog.Subdomain}}/images/upload" enctype="multipart/form-data">
<input type="hidden" name="_csrf" value="{{.CSRF}}">
- <label>Upload an image <span class="muted">(PNG, JPEG, GIF, WebP or ICO)</span><br><input type="file" name="file" accept="image/*" required></label>
- <p class="actionrow"><button type="submit">Upload</button></p>
+ <label>{{t "Upload an image"}} <span class="muted">({{t "PNG, JPEG, GIF, WebP or ICO"}})</span><br><input type="file" name="file" accept="image/*" required></label>
+ <p class="actionrow"><button type="submit">{{t "Upload"}}</button></p>
</form>
</div>
<div class="gallery">
@@ -17,8 +17,8 @@
<a href="/b/{{$.Blog.Subdomain}}/media/{{.ID}}" target="_blank"><img src="/b/{{$.Blog.Subdomain}}/media/{{.ID}}" alt="{{.Filename}}"></a>
<div class="meta">{{.Filename}} <span class="muted">({{kb .Size}})</span></div>
<input class="copy" readonly value="![{{.Filename}}](/media/{{.ID}})" onclick="this.select()">
- <form method="post" action="/b/{{$.Blog.Subdomain}}/images/{{.ID}}/delete" class="inline"><input type="hidden" name="_csrf" value="{{$.CSRF}}"><button class="mini danger">delete</button></form>
+ <form method="post" action="/b/{{$.Blog.Subdomain}}/images/{{.ID}}/delete" class="inline"><input type="hidden" name="_csrf" value="{{$.CSRF}}"><button class="mini danger">{{t "delete"}}</button></form>
</div>
-{{else}}<p class="muted">No images yet.</p>{{end}}
+{{else}}<p class="muted">{{t "No images yet."}}</p>{{end}}
</div>
{{end}}