show lemmy back end version

This commit is contained in:
Ryan Stafford 2023-07-28 12:51:17 -04:00
parent 669749c12e
commit c5a53c79da
2 changed files with 2 additions and 1 deletions

View file

@ -687,6 +687,7 @@ func Settings(w http.ResponseWriter, r *http.Request, ps httprouter.Params) {
Render(w, "index.html", state)
return
}
state.GetSite()
switch r.Method {
case "POST":
for _, name := range []string{"DefaultSortType", "DefaultListingType", "DefaultCommentSortType"} {

View file

@ -125,7 +125,7 @@
<input type="checkbox" name="hideInstanceNames" {{ if .HideInstanceNames }}checked{{end}}>
</div>
<div>
<label>mlmym: {{ .Version }}</label>
<label>lemmy: {{ .Site.Version }}<br>mlmym: {{ .Version }}</label>
<input type="submit" value="save">
{{ if .XHR }}<input id="closesettings" type="submit" value="close">{{ end }}
</div>