Hide empty sidebar

This commit is contained in:
spikecodes 2022-03-24 21:19:21 -07:00
parent f0a6bdc21b
commit 9eb42932df
No known key found for this signature in database
GPG Key ID: 004CECFF9B463BCB
3 changed files with 4 additions and 4 deletions

2
Cargo.lock generated
View File

@ -540,7 +540,7 @@ checksum = "1bf2e165bb3457c8e098ea76f3e3bc9db55f87aa90d52d0e6be741470916aaa4"
[[package]] [[package]]
name = "libreddit" name = "libreddit"
version = "0.22.1" version = "0.22.3"
dependencies = [ dependencies = [
"askama", "askama",
"async-recursion", "async-recursion",

View File

@ -3,7 +3,7 @@ name = "libreddit"
description = " Alternative private front-end to Reddit" description = " Alternative private front-end to Reddit"
license = "AGPL-3.0" license = "AGPL-3.0"
repository = "https://github.com/spikecodes/libreddit" repository = "https://github.com/spikecodes/libreddit"
version = "0.22.2" version = "0.22.3"
authors = ["spikecodes <19519553+spikecodes@users.noreply.github.com>"] authors = ["spikecodes <19519553+spikecodes@users.noreply.github.com>"]
edition = "2021" edition = "2021"

View File

@ -74,12 +74,12 @@
</footer> </footer>
</div> </div>
{% endif %} {% endif %}
{% if is_filtered || (sub.name != "all" && sub.name != "popular" && !sub.name.contains("+")) %} {% if is_filtered || (!sub.name.is_empty() && sub.name != "all" && sub.name != "popular" && !sub.name.contains("+")) %}
<aside> <aside>
{% if is_filtered %} {% if is_filtered %}
<center>(Content from r/{{ sub.name }} has been filtered)</center> <center>(Content from r/{{ sub.name }} has been filtered)</center>
{% endif %} {% endif %}
{% if sub.name != "all" && sub.name != "popular" && !sub.name.contains("+") %} {% if !sub.name.is_empty() && sub.name != "all" && sub.name != "popular" && !sub.name.contains("+") %}
<div class="panel" id="subreddit"> <div class="panel" id="subreddit">
{% if sub.wiki %} {% if sub.wiki %}
<div id="top"> <div id="top">