From 1c57f58936368e8c74ecfd9134dc3ddee9542b8a Mon Sep 17 00:00:00 2001 From: AnthonyAxenov Date: Wed, 25 Sep 2024 11:56:17 +0800 Subject: [PATCH] =?UTF-8?q?=D0=A4=D0=B8=D0=BA=D1=81=20=D0=BF=D0=BE=D0=B4?= =?UTF-8?q?=D0=B3=D1=80=D1=83=D0=B7=D0=BA=D0=B8=20=D0=BB=D0=BE=D0=B3=D0=BE?= =?UTF-8?q?=D1=82=D0=B8=D0=BF=D0=B0=20=D0=B8=D0=B7=20=D0=BA=D1=8D=D1=88?= =?UTF-8?q?=D0=B0=20+=20=D0=BA=D0=BE=D1=81=D0=BC=D0=B5=D1=82=D0=B8=D0=BA?= =?UTF-8?q?=D0=B0=20=D0=B2=20=D0=BF=D0=BE=D0=B4=D1=80=D0=BE=D0=B1=D0=BD?= =?UTF-8?q?=D0=BE=D1=81=D1=82=D1=8F=D1=85?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/Core/ChannelLogo.php | 2 +- src/views/details.twig | 32 +++++++++++++++++++++++--------- 2 files changed, 24 insertions(+), 10 deletions(-) diff --git a/src/app/Core/ChannelLogo.php b/src/app/Core/ChannelLogo.php index a3429b5..36a3de1 100644 --- a/src/app/Core/ChannelLogo.php +++ b/src/app/Core/ChannelLogo.php @@ -19,7 +19,7 @@ class ChannelLogo implements \Stringable /** * @var string|null Путь к файлу изображению на диске */ - protected ?string $path; + protected ?string $path = ''; /** * @var string|null MIME-тип изображения diff --git a/src/views/details.twig b/src/views/details.twig index 8e8b872..ff36fcf 100644 --- a/src/views/details.twig +++ b/src/views/details.twig @@ -3,7 +3,13 @@ {% block title %}{{ name }} - {{ config('app.title') }}{% endblock %} {% block head %} - + {% endblock %} {% block header %} @@ -76,23 +82,31 @@

Список каналов ({{ content.channelCount ?? 0 }})

{% if (content.channelCount > 0) %}
- -
+ +
{% for channel in content.channels %} - - + - + {% endfor %}
{{ loop.index }} + {{ loop.index }}{{ channel.name }}{{ channel.name }}