mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-01-21 07:55:00 +00:00
We were using the Unicode point "Katakana middle dot" which was not showing up on some systems. Separators may not show up the same on all machines depending on the font used. So, use an SVG image instead. Tests: - On the front page and apps page, the separators appears as expected. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
27 lines
798 B
HTML
27 lines
798 B
HTML
{% comment %}
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
{% endcomment %}
|
|
|
|
{% load i18n %}
|
|
{% load static %}
|
|
|
|
<div class="card">
|
|
<a href="{{ item.url }}">
|
|
<div class="card-icon">
|
|
{% if 'fa-' in item.icon %}
|
|
<span class="fa {{ item.icon }}"></span>
|
|
{% else %}
|
|
{% if item.app_id %}
|
|
<img src="{% static item.app_id %}/icons/{{ item.icon }}.svg"/>
|
|
{% else %}
|
|
<img src="{% static 'theme/icons/' %}{{ item.icon }}.svg"/>
|
|
{% endif %}
|
|
{% endif %}
|
|
</div>
|
|
<div class="card-title">{{ item.name }}</div>
|
|
<div class="card-tags">
|
|
{% for tag in item.tags|slice:":3" %}<span class="tag">{% trans tag %}</span>{% if not forloop.last %}<span class="tag-separator"></span>{% endif %}{% endfor %}
|
|
</div>
|
|
</a>
|
|
</div>
|