aboutsummaryrefslogtreecommitdiffstats
path: root/internal/web/templates/dashboard/settings.html
diff options
context:
space:
mode:
Diffstat (limited to 'internal/web/templates/dashboard/settings.html')
-rw-r--r--internal/web/templates/dashboard/settings.html15
1 files changed, 9 insertions, 6 deletions
diff --git a/internal/web/templates/dashboard/settings.html b/internal/web/templates/dashboard/settings.html
index 53a24c4..9685360 100644
--- a/internal/web/templates/dashboard/settings.html
+++ b/internal/web/templates/dashboard/settings.html
@@ -1,13 +1,16 @@
-{{define "title"}}Settings · {{.Blog.Title}}{{end}}
+{{define "title"}}{{t "Settings"}} · {{.Blog.Title}}{{end}}
{{define "content"}}
<div class="card narrow">
- <h1>Blog settings</h1>
+ <h1>{{t "Blog settings"}}</h1>
<form method="post" action="/b/{{.Blog.Subdomain}}/settings">
<input type="hidden" name="_csrf" value="{{.CSRF}}">
- <label>Blog title<br><input name="title" value="{{.Blog.Title}}" required maxlength="120"></label>
- <label>Tagline <span class="muted">(shown under the title)</span><br><input name="tagline" value="{{.Blog.Tagline}}" maxlength="300"></label>
- <p class="muted">Address: <code>{{.BlogURL}}</code>{{if ne .Blog.Subdomain "www"}} — only the administrator can change this{{end}}.</p>
- <p class="actionrow"><button type="submit">Save</button></p>
+ <label>{{t "Blog title"}}<br><input name="title" value="{{.Blog.Title}}" required maxlength="120"></label>
+ <label>{{t "Tagline"}} <span class="muted">({{t "shown under the title"}})</span><br><input name="tagline" value="{{.Blog.Tagline}}" maxlength="300"></label>
+ <label>{{t "Language"}} <span class="muted">({{t "of the dashboard, dates and the blog's fixed text"}})</span><br><select name="language">
+ {{range .Data.languages}}<option value="{{.Code}}"{{if eq .Code $.Blog.Language}} selected{{end}}>{{.Name}}</option>{{end}}
+ </select></label>
+ <p class="muted">{{t "Address:"}} <code>{{.BlogURL}}</code>{{if ne .Blog.Subdomain "www"}} — {{t "only the administrator can change this"}}{{end}}.</p>
+ <p class="actionrow"><button type="submit">{{t "Save"}}</button></p>
</form>
</div>
{{end}}