2021-12-23 13:27:31 +00:00
|
|
|
{% extends 'feed/feed.html.twig' %}
|
2021-11-28 21:07:29 +00:00
|
|
|
|
2021-12-02 16:37:17 +00:00
|
|
|
|
2021-11-28 21:07:29 +00:00
|
|
|
{% block body %}
|
2021-12-02 19:17:37 +00:00
|
|
|
{% if error is defined %}
|
2021-12-02 16:37:17 +00:00
|
|
|
<label class="alert alert-danger">
|
|
|
|
{{ error.getMessage() }}
|
|
|
|
</label>
|
|
|
|
{% endif %}
|
|
|
|
|
2021-12-23 21:29:46 +00:00
|
|
|
<div class="section-padding">
|
2021-12-11 17:38:34 +00:00
|
|
|
{{ form_start(search_form) }}
|
|
|
|
<div>
|
|
|
|
{{ form_row(search_form.search_query) }}
|
|
|
|
{{ form_row(search_form.submit_search) }}
|
|
|
|
</div>
|
2021-12-21 16:44:42 +00: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-11 17:38:34 +00:00
|
|
|
{{ form_end(search_form)}}
|
2021-12-10 13:52:18 +00:00
|
|
|
<hr>
|
2021-12-11 17:38:34 +00:00
|
|
|
<details class="section-widget">
|
2021-12-10 13:52:18 +00:00
|
|
|
<summary>
|
|
|
|
<h3>
|
|
|
|
{% trans %}Build a search query{% endtrans %}
|
|
|
|
{{ icon('arrow-down', 'icon icon-details-open') | raw }}
|
|
|
|
</h3>
|
|
|
|
</summary>
|
2021-12-11 17:38:34 +00: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 13:52:18 +00:00
|
|
|
</details>
|
|
|
|
<hr>
|
2021-12-07 20:36:25 +00:00
|
|
|
</div>
|
|
|
|
|
2021-12-02 16:37:17 +00:00
|
|
|
{# Backwards compatibility with hAtom 0.1 #}
|
2021-12-21 14:39:39 +00:00
|
|
|
{{ parent() }}
|
2021-11-28 21:07:29 +00:00
|
|
|
|
2021-12-02 16:37:17 +00:00
|
|
|
{% for actor in actors %}
|
2021-12-08 21:49:27 +00:00
|
|
|
{% include 'cards/profile/view.html.twig' with {'actor': actor} %}
|
2021-12-02 16:37:17 +00:00
|
|
|
{% endfor %}
|
2021-11-28 21:07:29 +00:00
|
|
|
|
2021-12-02 16:37:17 +00:00
|
|
|
{{ "Page: " ~ page }}
|
|
|
|
{% endblock body %}
|
2021-10-10 05:44:10 +01:00
|
|
|
|