We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 97d7216 commit 9566352Copy full SHA for 9566352
1 file changed
templates/store/snap-details/_snap_heading_data.html
@@ -1,15 +1,19 @@
1
{% if icon_url %}
2
- {{
3
- image(
4
- url=icon_url,
5
- alt=snap_title,
6
- width=60,
7
- height=60,
8
- hi_def=True,
9
- loading="eager",
10
- attrs={"class": "p-snap-heading__icon", "data-live": "icon"}
11
- ) | safe
12
- }}
+ {% if icon_url.startswith("blob") %}
+ <img class="p-snap-heading__icon" src="{{ icon_url | safe }}" width="60" height="60" data-live="icon" />
+ {% else %}
+ {{
+ image(
+ url=icon_url,
+ alt=snap_title,
+ width=60,
+ height=60,
+ hi_def=True,
+ loading="eager",
13
+ attrs={"class": "p-snap-heading__icon", "data-live": "icon"}
14
+ ) | safe
15
+ }}
16
+ {% endif %}
17
{% else %}
18
<img class="p-snap-heading__icon" src="https://assets.ubuntu.com/v1/be6eb412-snapcraft-missing-icon.svg" alt="" data-live="icon" />
19
{% endif %}
0 commit comments