[Favourite][TWIG][CSS] Favourite shows alt-text and properly sets colours. Titles translated on the right panel.

This commit is contained in:
2021-08-11 18:42:15 +01:00
committed by Diogo Peralta Cordeiro
parent ae7516c893
commit c14718e8dd
9 changed files with 61 additions and 129 deletions

View File

@@ -14,10 +14,15 @@
{% endif %}
<div class="note-actions">
{% if have_user %}
{% for act in get_note_actions(note) %}
{{ form(act) }}
{% for current_action in get_note_actions(note) %}
{{ form_start(current_action) }}
{% if current_action.submit_fav is defined %}
<span title="Favourite this note." class="favourite-button-container">
{{ form_widget(current_action.submit_fav) }}
</span>
{% endif %}
{{ form_end(current_action) }}
{% endfor %}
{% endif %}
</div>