0
0
mirror of https://github.com/anthonyaxenov/iptv.git synced 2024-11-21 21:14:46 +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 title %}{{ name }} - {{ config('app.title') }}{% endblock %}
{% block head %} {% 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 %} {% endblock %}
{% block header %} {% block header %}
@ -85,9 +85,11 @@
<td class="p-1" class="chindex">{{ loop.index }}</td> <td class="p-1" class="chindex">{{ loop.index }}</td>
<td class="p-1"> <td class="p-1">
{% if (channel.logo.base64) %} {% 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']) %} {% elseif (channel.attributes['tvg-logo']) %}
<img loading="lazy" class="tvg-logo" src="{{ base_url('logo?url=' ~ 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 %} {% endif %}
</td> </td>
<td class="p-1 chname">{{ channel.name }}</td> <td class="p-1 chname">{{ channel.name }}</td>