communities list layout

This commit is contained in:
rimu 2024-02-14 09:29:17 +13:00
parent f7fea98dff
commit 8a46d694d9

View file

@ -18,9 +18,12 @@
<a href="/communities/subscribed" class="btn {{ 'btn-primary' if request.path == '/communities/subscribed' else 'btn-outline-secondary' }}"> <a href="/communities/subscribed" class="btn {{ 'btn-primary' if request.path == '/communities/subscribed' else 'btn-outline-secondary' }}">
{{ _('Joined') }} {{ _('Joined') }}
</a> </a>
</div>
</div>
<div class="col-auto">
{% if topics %} {% if topics %}
<span class="mt-1 pl-4"> <form method="get" style="display:inline;">Topic:
<form method="get">Topic:
<select name="topic_id" class="form-control-sm submit_on_change" aria-label="{{ _('Choose a topic to filter communities by') }}"> <select name="topic_id" class="form-control-sm submit_on_change" aria-label="{{ _('Choose a topic to filter communities by') }}">
<option value="0">All</option> <option value="0">All</option>
{% for topic in topics %} {% for topic in topics %}
@ -28,13 +31,8 @@
{% endfor %} {% endfor %}
</select> </select>
</form> </form>
</span>
{% endif %} {% endif %}
<span class="mt-1 pl-4"> <form method="get" style="display:inline;"><input type="search" name="search" placeholder="{{ _('Search') }}" value="{{ search }}"></form>
<form method="get"><input type="search" name="search" placeholder="{{ _('Search') }}" value="{{ search }}"></form>
</span>
</div>
</div> </div>
<div class="col-auto"> <div class="col-auto">
<div class="btn-group"> <div class="btn-group">