2021-12-02 16:37:17 +00:00
|
|
|
{% extends 'stdgrid.html.twig' %}
|
2021-11-28 21:07:29 +00:00
|
|
|
{% import '/cards/note/view.html.twig' as noteView %}
|
|
|
|
|
2021-12-02 16:37:17 +00:00
|
|
|
{% block title %}{% if page_title is defined %}{{ page_title | trans }}{% endif %}{% endblock %}
|
|
|
|
|
|
|
|
{% block stylesheets %}
|
|
|
|
{{ parent() }}
|
|
|
|
<link rel="stylesheet" href="{{ asset('assets/default_theme/css/pages/feeds.css') }}" type="text/css">
|
|
|
|
{% endblock stylesheets %}
|
|
|
|
|
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-07 20:36:25 +00:00
|
|
|
<div class="section-widget-padded">
|
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>
|
|
|
|
<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>
|
|
|
|
{{ 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 #}
|
|
|
|
<main class="feed" tabindex="0" role="feed">
|
|
|
|
<div class="h-feed hfeed notes">
|
|
|
|
{% if notes is defined and notes is not empty %}
|
|
|
|
{% for note in notes %}
|
2021-12-08 21:49:27 +00:00
|
|
|
{% block current_note %}
|
2021-12-02 16:37:17 +00:00
|
|
|
<div class="section-widget">
|
2021-12-10 13:52:18 +00:00
|
|
|
{{ noteView.macro_note(note['note'], []) }}
|
2021-12-02 16:37:17 +00:00
|
|
|
</div>
|
2021-12-08 21:49:27 +00:00
|
|
|
{% endblock current_note %}
|
2021-12-02 16:37:17 +00:00
|
|
|
{% endfor %}
|
|
|
|
{% else %}
|
|
|
|
<div id="empty-notes"><h1>{% trans %}No notes here.{% endtrans %}</h1></div>
|
|
|
|
{% endif %}
|
|
|
|
</div>
|
|
|
|
</main>
|
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
|
|
|
|