diff --git a/files/templates/sidebar_WPD.html b/files/templates/sidebar_WPD.html index d5edac703..08e77e990 100644 --- a/files/templates/sidebar_WPD.html +++ b/files/templates/sidebar_WPD.html @@ -53,15 +53,17 @@ Submit Marseys & Art | Info Megathreads - {% if v and hole and v.mods_hole(hole.name) %} - /h/{{hole}} SETTINGS - /h/{{hole}} LOG - /h/{{hole}} FOLLOWERS - /h/{{hole}} BLOCKERS - {% endif %} + {% if hole %} + {% if v and v.mods_hole(hole.name) %} + /h/{{hole}} SETTINGS + /h/{{hole}} LOG + /h/{{hole}} FOLLOWERS + /h/{{hole}} BLOCKERS + {% endif %} - {% if hole and hole.sidebar_html %} -
{{hole.sidebar_html|safe}}
+ {% if hole.sidebar_html %} +
{{hole.sidebar_html|safe}}
+ {% endif %} {% endif %}