mirror of
https://codeberg.org/rimu/pyfedi
synced 2025-01-23 19:36:56 -08:00
masonry tile - hide if not used
This commit is contained in:
parent
f658ca4a9f
commit
4eb250ba10
2 changed files with 2 additions and 2 deletions
|
@ -106,7 +106,7 @@ def show_community(community: Community):
|
|||
page = request.args.get('page', 1, type=int)
|
||||
sort = request.args.get('sort', '' if current_user.is_anonymous else current_user.default_sort)
|
||||
low_bandwidth = request.cookies.get('low_bandwidth', '0') == '1'
|
||||
post_layout = request.args.get('layout', community.default_layout if not low_bandwidth else '')
|
||||
post_layout = request.args.get('layout', community.default_layout if not low_bandwidth else None)
|
||||
|
||||
# If nothing has changed since their last visit, return HTTP 304
|
||||
current_etag = f"{community.id}{sort}_{hash(community.last_active)}"
|
||||
|
|
|
@ -15,7 +15,7 @@
|
|||
{{ _('Active') }}
|
||||
</a>
|
||||
</div>
|
||||
{% if post_layout != '' %}
|
||||
{% if post_layout != '' and post_layout is not none %}
|
||||
<div class="btn-group mt-1 mb-2 layout_switcher">
|
||||
<a href="?layout=list" class="btn {{ 'btn-primary' if post_layout == '' or post_layout == 'list' else 'btn-outline-secondary' }}" rel="nofollow">
|
||||
{{ _('List') }}
|
||||
|
|
Loading…
Add table
Reference in a new issue