File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change 29
29
<div class="inline field {{if .Err_Visibility}}error{{end}}">
30
30
<span class="inline required field"><label for="visibility">{{.locale.Tr "settings.visibility"}}</label></span>
31
31
<div class="ui selection type dropdown">
32
- <input type="hidden" id="visibility" name="visibility" value="{{.Form.Visibility}}">
32
+ {{if .Form.Visibility.IsPublic}}<input type="hidden" id="visibility" name="visibility" value="0">{{end}}
33
+ {{if .Form.Visibility.IsLimited}}<input type="hidden" id="visibility" name="visibility" value="1">{{end}}
34
+ {{if .Form.Visibility.IsPrivate}}<input type="hidden" id="visibility" name="visibility" value="2">{{end}}
33
35
<div class="text">
34
36
{{if .Form.Visibility.IsPublic}}{{.locale.Tr "settings.visibility.public"}}{{end}}
35
37
{{if .Form.Visibility.IsLimited}}{{.locale.Tr "settings.visibility.limited"}}{{end}}
You can’t perform that action at this time.
0 commit comments