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 }}