aboutsummaryrefslogtreecommitdiff
path: root/templates/settings.tmpl
diff options
context:
space:
mode:
authorr <r@freesoftwareextremist.com>2021-05-30 07:00:39 +0000
committerr <r@freesoftwareextremist.com>2021-05-30 07:01:54 +0000
commit5d42e59c7f797deb6f461df564cecfc4643fa002 (patch)
treed92d8fb6a3b15e99805d3f77c506b4d49c447335 /templates/settings.tmpl
parent07978649f151fe2a9daa85441400215edf7d50fc (diff)
downloadbloat-5d42e59c7f797deb6f461df564cecfc4643fa002.tar.gz
bloat-5d42e59c7f797deb6f461df564cecfc4643fa002.zip
Hide post format setting in case of empty list
Diffstat (limited to 'templates/settings.tmpl')
-rw-r--r--templates/settings.tmpl2
1 files changed, 2 insertions, 0 deletions
diff --git a/templates/settings.tmpl b/templates/settings.tmpl
index 8aee4e2..500aea8 100644
--- a/templates/settings.tmpl
+++ b/templates/settings.tmpl
@@ -5,6 +5,7 @@
<form id="settings-form" action="/settings" method="POST">
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
+ {{if .PostFormats}}
<div class="settings-form-field">
<label for="visibility"> Default format </label>
{{$defFormat := .Settings.DefaultFormat}}
@@ -14,6 +15,7 @@
{{end}}
</select>
</div>
+ {{end}}
<div class="settings-form-field">
<label for="visibility"> Default scope </label>
<select id="visibility" name="visibility">