diff --git a/components/Search/templates/search/show.html.twig b/components/Search/templates/search/show.html.twig index ddb63beb96..b113ea4791 100644 --- a/components/Search/templates/search/show.html.twig +++ b/components/Search/templates/search/show.html.twig @@ -1,12 +1,5 @@ -{% extends 'stdgrid.html.twig' %} -{% import '/cards/note/view.html.twig' as noteView %} +{% extends 'feeds/feed.html.twig' %} -{% block title %}{% if page_title is defined %}{{ page_title | trans }}{% endif %}{% endblock %} - -{% block stylesheets %} - {{ parent() }} - -{% endblock stylesheets %} {% block body %} {% if error is defined %} @@ -87,21 +80,7 @@ {# Backwards compatibility with hAtom 0.1 #} -
-
- {% if notes is defined and notes is not empty %} - {% for note in notes %} - {% block current_note %} -
- {{ noteView.macro_note(note['note'], []) }} -
- {% endblock current_note %} - {% endfor %} - {% else %} -

{% trans %}No notes here.{% endtrans %}

- {% endif %} -
-
+ {{ parent() }} {% for actor in actors %} {% include 'cards/profile/view.html.twig' with {'actor': actor} %} diff --git a/templates/actor/view.html.twig b/templates/actor/view.html.twig index bbb9a2b464..8ae5d19d76 100644 --- a/templates/actor/view.html.twig +++ b/templates/actor/view.html.twig @@ -1,36 +1,13 @@ -{% extends 'stdgrid.html.twig' %} -{% import '/cards/note/view.html.twig' as noteView %} +{% extends 'feeds/feed.html.twig' %} {% set nickname = nickname|escape %} {% block title %}{% trans %}%nickname%'s profile{% endtrans %}{% endblock %} -{% block stylesheets %} - {{ parent() }} - -{% endblock stylesheets %} - {% block body %} {% block profile_view %} {% include 'cards/profile/view.html.twig' %} {% endblock profile_view %} -
-
- {% if notes is defined and notes is not empty %} - {% for conversation in notes %} - {% block current_note %} - {% if conversation is instanceof('array') %} - {{ noteView.macro_note(conversation['note'], conversation['replies']) }} - {% else %} - {{ noteView.macro_note(conversation) }} - {% endif %} -
- {% endblock current_note %} - {% endfor %} - {% else %} -

{% trans %}No notes here.{% endtrans %}

- {% endif %} -
-
+ {{ parent() }} {% endblock body %}