pyfedi/app/templates/community/_community_nav.html

17 lines
824 B
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-03 20:14:39 +13:00
</div>