mirror of
https://github.com/rystaf/mlmym.git
synced 2025-01-04 21:46:07 +00:00
show lemmy back end version
This commit is contained in:
parent
669749c12e
commit
c5a53c79da
|
@ -687,6 +687,7 @@ func Settings(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
|
||||||
Render(w, "index.html", state)
|
Render(w, "index.html", state)
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
|
state.GetSite()
|
||||||
switch r.Method {
|
switch r.Method {
|
||||||
case "POST":
|
case "POST":
|
||||||
for _, name := range []string{"DefaultSortType", "DefaultListingType", "DefaultCommentSortType"} {
|
for _, name := range []string{"DefaultSortType", "DefaultListingType", "DefaultCommentSortType"} {
|
||||||
|
|
|
@ -125,7 +125,7 @@
|
||||||
<input type="checkbox" name="hideInstanceNames" {{ if .HideInstanceNames }}checked{{end}}>
|
<input type="checkbox" name="hideInstanceNames" {{ if .HideInstanceNames }}checked{{end}}>
|
||||||
</div>
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<label>mlmym: {{ .Version }}</label>
|
<label>lemmy: {{ .Site.Version }}<br>mlmym: {{ .Version }}</label>
|
||||||
<input type="submit" value="save">
|
<input type="submit" value="save">
|
||||||
{{ if .XHR }}<input id="closesettings" type="submit" value="close">{{ end }}
|
{{ if .XHR }}<input id="closesettings" type="submit" value="close">{{ end }}
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue