0
0
mirror of https://github.com/anthonyaxenov/iptv.git synced 2024-11-21 13:04:43 +00:00

Эскиз для отсутствующего логотипа

This commit is contained in:
Anthony Axenov 2024-09-25 09:01:16 +08:00
parent 688ffc547e
commit 4e659c0abf
Signed by: anthony
GPG Key ID: EA9EC32FF7CCD4EC
2 changed files with 4 additions and 2 deletions

BIN
src/public/no-tvg-logo.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

@ -3,7 +3,7 @@
{% block title %}{{ name }} - {{ config('app.title') }}{% endblock %}
{% block head %}
<style>.tvg-logo{max-width:100px;max-height:100px;background:white;padding:2px;border-radius:5px}</style>
<style>.tvg-logo{max-width:100px;max-height:100px;background:white;padding:2px;border-radius:5px}.tvg-logo{background:unset}</style>
{% endblock %}
{% block header %}
@ -85,9 +85,11 @@
<td class="p-1" class="chindex">{{ loop.index }}</td>
<td class="p-1">
{% if (channel.logo.base64) %}
<img class="tvg-logo" src="{{ channel.logo.base64 }}" />
<img class="tvg-logo yes" src="{{ channel.logo.base64 }}" />
{% elseif (channel.attributes['tvg-logo']) %}
<img loading="lazy" class="tvg-logo" src="{{ base_url('logo?url=' ~ channel.attributes['tvg-logo']) }}" />
{% else %}
<img class="tvg-logo.empty" src="{{ base_url('no-tvg-logo.png') }}"/>
{% endif %}
</td>
<td class="p-1 chname">{{ channel.name }}</td>