mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-06-03 10:50:20 +00:00
index: Generalize showing custom shortcut icons
Instead of detecting 'custom' in the name of the icons (which can happen if the icon basename itself contains the word 'custom'), check if the icon is already an absolute URL path. Tests: - Add a custom shortcut and provide a custom icon for it in /var/www/plinth/custom/static/icons/. Visit the frontpage and ensure that the icon is visible. Signed-off-by: Sunil Mohan Adapa <sunil@medhas.org> Reviewed-by: James Valleroy <jvalleroy@mailbox.org>
This commit is contained in:
parent
ced83a31e9
commit
729690792f
@ -62,7 +62,7 @@
|
||||
<a href="{{ shortcut.url }}">
|
||||
{% endif %}
|
||||
<div class="card-icon">
|
||||
{% if "custom" in shortcut.icon %}
|
||||
{% if shortcut.icon|first == "/" %}
|
||||
<img src="{{ shortcut.icon }}"/>
|
||||
{% else %}
|
||||
{% if shortcut.app_id %}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user