mirror of
https://gitea.phreedom.club/localhost_frssoft/bloat.git
synced 2024-11-14 16:59:20 +02:00
Hide post format setting in case of empty list
This commit is contained in:
parent
07978649f1
commit
5d42e59c7f
|
@ -15,7 +15,7 @@
|
||||||
<textarea id="post-content" name="content" class="post-content" cols="34" rows="5" accesskey="E" title="Edit post (E)">{{if .ReplyContext}}{{.ReplyContext.ReplyContent}}{{end}}</textarea>
|
<textarea id="post-content" name="content" class="post-content" cols="34" rows="5" accesskey="E" title="Edit post (E)">{{if .ReplyContext}}{{.ReplyContext.ReplyContent}}{{end}}</textarea>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
{{if gt (len .Formats) 0}}
|
{{if .Formats}}
|
||||||
<span class="post-form-field">
|
<span class="post-form-field">
|
||||||
{{$defFormat := .DefaultFormat}}
|
{{$defFormat := .DefaultFormat}}
|
||||||
<select id="post-format" name="format" accesskey="F" title="Format (F)">
|
<select id="post-format" name="format" accesskey="F" title="Format (F)">
|
||||||
|
|
|
@ -5,6 +5,7 @@
|
||||||
<form id="settings-form" action="/settings" method="POST">
|
<form id="settings-form" action="/settings" method="POST">
|
||||||
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
<input type="hidden" name="csrf_token" value="{{$.Ctx.CSRFToken}}">
|
||||||
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
<input type="hidden" name="referrer" value="{{$.Ctx.Referrer}}">
|
||||||
|
{{if .PostFormats}}
|
||||||
<div class="settings-form-field">
|
<div class="settings-form-field">
|
||||||
<label for="visibility"> Default format </label>
|
<label for="visibility"> Default format </label>
|
||||||
{{$defFormat := .Settings.DefaultFormat}}
|
{{$defFormat := .Settings.DefaultFormat}}
|
||||||
|
@ -14,6 +15,7 @@
|
||||||
{{end}}
|
{{end}}
|
||||||
</select>
|
</select>
|
||||||
</div>
|
</div>
|
||||||
|
{{end}}
|
||||||
<div class="settings-form-field">
|
<div class="settings-form-field">
|
||||||
<label for="visibility"> Default scope </label>
|
<label for="visibility"> Default scope </label>
|
||||||
<select id="visibility" name="visibility">
|
<select id="visibility" name="visibility">
|
||||||
|
|
Loading…
Reference in New Issue