2021-12-23 22:27:31 +09:00
|
|
|
{% extends 'feed/feed.html.twig' %}
|
2021-11-29 06:07:29 +09:00
|
|
|
|
2021-12-03 01:37:17 +09:00
|
|
|
|
2021-11-29 06:07:29 +09:00
|
|
|
{% block body %}
|
2021-12-03 04:17:37 +09:00
|
|
|
{% if error is defined %}
|
2021-12-03 01:37:17 +09:00
|
|
|
<label class="alert alert-danger">
|
|
|
|
{{ error.getMessage() }}
|
|
|
|
</label>
|
|
|
|
{% endif %}
|
|
|
|
|
2021-12-24 06:29:46 +09:00
|
|
|
<div class="section-padding">
|
2021-12-12 02:38:34 +09:00
|
|
|
{{ form_start(search_form) }}
|
|
|
|
<div>
|
|
|
|
{{ form_row(search_form.search_query) }}
|
|
|
|
{{ form_row(search_form.submit_search) }}
|
|
|
|
</div>
|
2021-12-22 01:44:42 +09:00
|
|
|
{% if actor is not null %}
|
|
|
|
<details class="section-widget">
|
|
|
|
<summary>
|
|
|
|
<h3>
|
|
|
|
{% trans %}Save this search as a feed{% endtrans %}
|
|
|
|
{{ icon('arrow-down', 'icon icon-details-open') | raw }}
|
|
|
|
</h3>
|
|
|
|
</summary>
|
|
|
|
{{ form_row(search_form.title) }}
|
|
|
|
{{ form_row(search_form.subscribe_to_search) }}
|
|
|
|
</details>
|
|
|
|
{% endif %}
|
2021-12-12 02:38:34 +09:00
|
|
|
{{ form_end(search_form)}}
|
2021-12-10 22:52:18 +09:00
|
|
|
<hr>
|
2021-12-12 02:38:34 +09:00
|
|
|
<details class="section-widget">
|
2021-12-10 22:52:18 +09:00
|
|
|
<summary>
|
|
|
|
<h3>
|
|
|
|
{% trans %}Build a search query{% endtrans %}
|
|
|
|
{{ icon('arrow-down', 'icon icon-details-open') | raw }}
|
|
|
|
</h3>
|
|
|
|
</summary>
|
2021-12-12 02:38:34 +09:00
|
|
|
|
|
|
|
{{ form_start(search_builder_form) }}
|
|
|
|
|
|
|
|
{# actor options, display if first checked, with checkbox trick #}
|
|
|
|
<details class="section-widget">
|
|
|
|
<summary>
|
|
|
|
<h3>
|
|
|
|
{% trans %}People search options{% endtrans %}
|
|
|
|
{{ icon('arrow-down', 'icon icon-details-open') | raw }}
|
|
|
|
</h3>
|
|
|
|
</summary>
|
|
|
|
{{ form_row(search_builder_form.include_actors) }}
|
|
|
|
{{ form_row(search_builder_form.include_actors_people) }}
|
|
|
|
{{ form_row(search_builder_form.include_actors_groups) }}
|
|
|
|
{{ form_row(search_builder_form.include_actors_lists) }}
|
|
|
|
{{ form_row(search_builder_form.include_actors_businesses) }}
|
|
|
|
{{ form_row(search_builder_form.include_actors_organizations) }}
|
|
|
|
{{ form_row(search_builder_form.include_actors_bots) }}
|
|
|
|
{{ form_row(search_builder_form.actor_langs) }}
|
|
|
|
{{ form_row(search_builder_form.actor_tags) }}
|
|
|
|
</details>
|
|
|
|
|
|
|
|
<details class="section-widget">
|
|
|
|
<summary>
|
|
|
|
<h3>
|
|
|
|
{% trans %}Note search options{% endtrans %}
|
|
|
|
{{ icon('arrow-down', 'icon icon-details-open') | raw }}
|
|
|
|
</h3>
|
|
|
|
</summary>
|
|
|
|
{{ form_row(search_builder_form.include_notes) }}
|
|
|
|
{{ form_row(search_builder_form.include_notes_text) }}
|
|
|
|
{{ form_row(search_builder_form.include_notes_media) }}
|
|
|
|
{{ form_row(search_builder_form.include_notes_polls) }}
|
|
|
|
{{ form_row(search_builder_form.include_notes_bookmarks) }}
|
|
|
|
{{ form_row(search_builder_form.note_langs) }}
|
|
|
|
{{ form_row(search_builder_form.note_tags) }}
|
|
|
|
{{ form_row(search_builder_form.note_actor_langs) }}
|
|
|
|
{{ form_row(search_builder_form.note_actor_tags) }}
|
|
|
|
</details>
|
|
|
|
{{ form_end(search_builder_form) }}
|
2021-12-10 22:52:18 +09:00
|
|
|
</details>
|
|
|
|
<hr>
|
2021-12-08 05:36:25 +09:00
|
|
|
</div>
|
|
|
|
|
2021-12-03 01:37:17 +09:00
|
|
|
{# Backwards compatibility with hAtom 0.1 #}
|
2021-12-21 23:39:39 +09:00
|
|
|
{{ parent() }}
|
2021-11-29 06:07:29 +09:00
|
|
|
|
2021-12-03 01:37:17 +09:00
|
|
|
{% for actor in actors %}
|
2021-12-09 06:49:27 +09:00
|
|
|
{% include 'cards/profile/view.html.twig' with {'actor': actor} %}
|
2021-12-03 01:37:17 +09:00
|
|
|
{% endfor %}
|
2021-11-29 06:07:29 +09:00
|
|
|
|
2021-12-03 01:37:17 +09:00
|
|
|
{{ "Page: " ~ page }}
|
|
|
|
{% endblock body %}
|
2021-10-10 13:44:10 +09:00
|
|
|
|