Skip to content

Commit

Permalink
show lemmy back end version
Browse files Browse the repository at this point in the history
  • Loading branch information
rystaf committed Jul 28, 2023
1 parent 669749c commit c5a53c7
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions routes.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"} {
Expand Down
2 changes: 1 addition & 1 deletion templates/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -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>
Expand Down

0 comments on commit c5a53c7

Please sign in to comment.