mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-02-18 08:33:41 +00:00
Signed-off-by: Joseph Nuthalapati <njoseph@riseup.net> [sunil: Move style to CSS] [sunil: Allow upto three lines of tags] [sunil: Adjust width and padding for app cards] Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: Sunil Mohan Adapa <sunil@medhas.org>
27 lines
750 B
HTML
27 lines
750 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.app.info.tags|slice:":3" %}{% trans tag %}{% if not forloop.last %}・{% endif %}{% endfor %}
|
|
</div>
|
|
</a>
|
|
</div>
|