mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-17 11:10:23 +00:00
- .nav-link classes are meant to be used in navbars and tab navigations. Don't use them incorrectly in .card to avoid potential breakages and readability. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Veiko Aasa <veiko17@disroot.org>
24 lines
656 B
HTML
24 lines
656 B
HTML
{% comment %}
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
{% endcomment %}
|
|
|
|
{% 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-description">{{ item.short_description|default:'' }}</div>
|
|
</a>
|
|
</div>
|