Hide homepage setting when it's disabled site-wide

This commit is contained in:
redmt 2022-06-10 22:21:54 +02:00
parent d6b2e0700a
commit d368acac29
1 changed files with 7 additions and 6 deletions

View File

@ -105,12 +105,13 @@ html
input(type="checkbox", name="show_upvotes", id="show_upvotes", checked="checked")
else
input(type="checkbox", name="show_upvotes", id="show_upvotes")
.setting
label(for="prefer_frontpage")
if(user_preferences.prefer_frontpage == 'true')
input(type="checkbox", name="prefer_frontpage", id="prefer_frontpage", checked="true")
else
input(type="checkbox", name="prefer_frontpage", id="prefer_frontpage")
if instance_config.clean_homepage
.setting
label(for="prefer_frontpage") Prefer reddit-style frontpage as homepage:
if(user_preferences.prefer_frontpage == 'true')
input(type="checkbox", name="prefer_frontpage", id="prefer_frontpage", checked="true")
else
input(type="checkbox", name="prefer_frontpage", id="prefer_frontpage")
legend Media
.setting
label(for="videos_muted") Mute videos by default: