pyfedi/app/templates/community/_community_nav.html

30 lines
1.4 KiB
HTML
Raw Normal View History

2024-01-07 18:02:52 +13:00
<div class="mobile_create_post d-md-none mt-1">
<a class="btn btn-primary" href="/community/{{ community.link() }}/submit">{{ _('Create post') }}</a>
</div>
2024-01-03 20:14:39 +13:00
<div class="btn-group mt-1 mb-2">
<a href="?sort=hot" class="btn {{ 'btn-primary' if sort == '' or sort == 'hot' else 'btn-outline-secondary' }}" rel="nofollow">
2024-01-03 20:14:39 +13:00
{{ _('Hot') }}
</a>
<a href="?sort=top" class="btn {{ 'btn-primary' if sort == 'top' else 'btn-outline-secondary' }}" rel="nofollow">
2024-01-03 20:14:39 +13:00
{{ _('Top') }}
</a>
<a href="?sort=new" class="btn {{ 'btn-primary' if sort == 'new' else 'btn-outline-secondary' }}" rel="nofollow">
2024-01-03 20:14:39 +13:00
{{ _('New') }}
</a>
<a href="?sort=active" class="btn {{ 'btn-primary' if sort == 'active' else 'btn-outline-secondary' }}" rel="nofollow">
{{ _('Active') }}
</a>
2024-01-21 15:44:13 +13:00
</div>
2024-01-21 17:12:38 +13:00
{% if post_layout != '' and post_layout is not none %}
2024-01-21 15:44:13 +13:00
<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') }}
</a>
<a href="?layout=masonry" class="btn {{ 'btn-primary' if post_layout == 'masonry' else 'btn-outline-secondary' }}" rel="nofollow">
{{ _('Tile') }}
</a>
<a href="?layout=masonry_wide" class="btn {{ 'btn-primary' if post_layout == 'masonry_wide' else 'btn-outline-secondary' }}" rel="nofollow">
{{ _('Wide tile') }}
</a>
</div>
{% endif %}