Use Star instead of Heart for favourites

This commit is contained in:
rubenwardy 2023-08-19 00:46:27 +01:00
parent c1aa12dc8c
commit e47ea249e7
3 changed files with 4 additions and 4 deletions

@ -33,7 +33,7 @@
<i class="fas fa-lock mr-1" style="color:#ffac33;"></i> <i class="fas fa-lock mr-1" style="color:#ffac33;"></i>
{% endif %} {% endif %}
{% if collection.name == 'favorites' %} {% if collection.name == 'favorites' %}
<i class="fas fa-heart mr-1 text-danger"></i> <i class="fas fa-star mr-1 text-info"></i>
{% endif %} {% endif %}
{% if user != collection.author %} {% if user != collection.author %}
{{ _("%(title)s by %(author)s", title=collection.title, author=collection.author.display_name) }} {{ _("%(title)s by %(author)s", title=collection.title, author=collection.author.display_name) }}

@ -26,7 +26,7 @@
{% endif -%} {% endif -%}
{% if collection.author != current_user %}{{ collection.author.display_name }}: {% endif -%} {% if collection.author != current_user %}{{ collection.author.display_name }}: {% endif -%}
{% if collection.name == 'favorites' %} {% if collection.name == 'favorites' %}
<i class="fas fa-heart mr-1 text-danger"></i> <i class="fas fa-star mr-1 text-info"></i>
{% endif %} {% endif %}
{% if collection.private %} {% if collection.private %}
<i class="fas fa-lock mr-1" style="color:#ffac33;"></i> <i class="fas fa-lock mr-1" style="color:#ffac33;"></i>

@ -352,8 +352,8 @@
<div class="d-flex mt-3 mb-4"> <div class="d-flex mt-3 mb-4">
<form method="POST" action="{{ package.get_url('collections.package_toggle_favorite') }}"> <form method="POST" action="{{ package.get_url('collections.package_toggle_favorite') }}">
<input type="hidden" name="csrf_token" value="{{ csrf_token() }}" /> <input type="hidden" name="csrf_token" value="{{ csrf_token() }}" />
<button type="submit" class="btn {% if is_favorited %}text-danger{% endif %} btn-secondary mr-2" aria-label="{{ _('Favorite') }}"> <button type="submit" class="btn {% if is_favorited %}text-info{% endif %} btn-secondary mr-2" aria-label="{{ _('Favorite') }}">
<i class="fas fa-heart"></i> <i class="fas fa-star"></i>
</button> </button>
</form> </form>
<div class="flex-grow"> <div class="flex-grow">