gnu-social/components/Collection/templates/collection/actors.html.twig

34 lines
1.3 KiB
Twig
Raw Normal View History

{% extends 'stdgrid.html.twig' %}
{% block title %}{{ title }}{% endblock %}
{% block body %}
2021-12-26 02:59:49 +09:00
<section class="section-widget section-padding">
<h2 class="section-title">{{ title }}</h2>
<div>
<p>{% trans %}Sort by:{% endtrans %}</p>
<form method="GET">
{% for field in sort_form_fields %}
<label for="order_by_{{ field.value }}">{{ field.label }}</label>
<input id="order_by_{{ field.value }}" type="radio" name="order_by" value="{{ field.value }}" {% if field.checked %}checked="checked"{% endif %}>
{% endfor %}
<button type="submit" name="order_op" value="ASC">{% trans %}Ascending{% endtrans %}</button>
<button type="submit" name="order_op" value="DESC">{% trans %}Descending{% endtrans %}</button>
</form>
</div>
2021-12-26 02:59:49 +09:00
<div class="section-padding">
{% if actors is defined and actors is not empty %}
{% for actor in actors %}
{% block profile_view %}{% include 'cards/profile/view.html.twig' %}{% endblock profile_view %}
2021-12-26 02:59:49 +09:00
<hr>
{% endfor %}
<p>{% trans %}Page: %page%{% endtrans %}</p>
{% else %}
<h3>{{ empty_message }}</h3>
{% endif %}
</div>
</section>
{% endblock body %}