[Plugins][FAVOURITE] Redirect added. Only redirects from the route the user came from, not the anchored note. To be added. Further corner cases fixed.

This commit is contained in:
2021-10-24 15:12:18 +01:00
committed by Diogo Peralta Cordeiro
parent 56ba7bd845
commit ebf675ec59
6 changed files with 37 additions and 31 deletions

View File

@@ -1,24 +1,17 @@
{% extends 'stdgrid.html.twig' %}
{% block meta %}
{{ parent() }}
{% endblock %}
{% block title %}{{ 'Favourite ' | trans }}{{ note.getActorNickname() }}{{ '\'s note.' | trans }}{% endblock %}
{% block header %}
{% block stylesheets %}
{{ parent() }}
{% endblock %}
{% block left %}
{{ parent() }}
{% endblock %}
<link rel="stylesheet" href="{{ asset('assets/default_theme/css/pages/feeds.css') }}" type="text/css">
{% endblock stylesheets %}
{% block body %}
{{ parent() }}
<div class="page">
<div class="main">
{% include '/cards/note/view.html.twig' with {'note': note} only %}
{% include '/cards/note/view.html.twig' with {'note': note, 'note_actions_show': false} only %}
{{ form(add_favourite) }}
</div>
</div>

View File

@@ -1,24 +1,17 @@
{% extends 'stdgrid.html.twig' %}
{% block meta %}
{{ parent() }}
{% endblock %}
{% block title %}{{ 'Remove favourite from ' | trans }}{{ note.getActorNickname() }}{{ '\'s note.' | trans }}{% endblock %}
{% block header %}
{% block stylesheets %}
{{ parent() }}
{% endblock %}
{% block left %}
{{ parent() }}
{% endblock %}
<link rel="stylesheet" href="{{ asset('assets/default_theme/css/pages/feeds.css') }}" type="text/css">
{% endblock stylesheets %}
{% block body %}
{{ parent() }}
<div class="page">
<div class="main">
{% include '/cards/note/view.html.twig' with {'note': note} only %}
{% include '/cards/note/view.html.twig' with {'note': note, 'note_actions_show': false} only %}
{{ form(remove_favourite) }}
</div>
</div>