diff --git a/views/list.twig b/views/list.twig index 5574b4f..bf29f37 100644 --- a/views/list.twig +++ b/views/list.twig @@ -10,119 +10,127 @@ {% block metakeywords %}самообновляемые,бесплатные,iptv-плейлисты,iptv,плейлисты{% endblock %} +{% block head %} + + +{% endblock %} + {% block header %} -
-
- Список изменён: {{ updatedAt }} МСК
- Плейлистов в списке: {{ count }} +
+
+

Список плейлистов ({{ count }})

+
Изменён {{ updatedAt }} МСК
-
- Состояние проверки:
- - online{{ onlineCount }} - - - offline{{ offlineCount }} - - - unknown{{ uncheckedCount }} - +
+ online: {{ onlineCount }} + offline: {{ offlineCount }} + unknown: {{ uncheckedCount }}
-
{% endblock %} {% block content %} -
- - - - - - - - - - +
{% for code, playlist in playlists %} -
- - - - - +
+ + {{ mirror_url(playlist.code) }} + + +
+ + + + + {% endfor %} - -
КодИнформация о плейлистеКаналовСсылка для ТВ
{{ code }} - {% if playlist.isOnline is same as(true) %} - online - {% elseif playlist.isOnline is same as(false) %} - offline - {% elseif playlist.isOnline is same as(null) %} - unknown - {% endif %} - {% if "adult" in playlist.tags %} - 18+ - {% endif %} - {{ playlist.name }} -
-

+ {% set statusClass = 'secondary' %} + {% if playlist.isOnline is same as(true) %} + {% set statusClass = 'success' %} + {% elseif playlist.isOnline is same as(false) %} + {% set statusClass = 'danger' %} + {% endif %} + +

+
+ +
+ {{ code }} + + {% if playlist.isOnline is same as(true) %}online + {% elseif playlist.isOnline is same as(false) %}offline + {% elseif playlist.isOnline is same as(null) %}unknown + {% endif %} + + {% if "adult" in playlist.tags %} + 18+ + {% endif %} +
+
+ +
+ +
{{ playlist.name }}
+
+

{{ playlist.description }}

+
+ + + {% if playlist.isOnline is not same as(null) %} + {{ playlist.channels|length }} каналов + {% endif %} + {% if playlist.groups|length > 0 %} - + +  {{ playlist.groups|length }} групп + {% endif %} {% if playlist.hasTvg %} - + +  ТВ-программа + {% endif %} {% if playlist.hasCatchup %} - + +  Архив + {% endif %} - {{ playlist.description }} -

- {% if playlist.tags|length > 0 %} -

- - {% for tag in playlist.tags %} - #{{ tag }} - {% endfor %} -

- {% endif %} - Подробнее... +
-
- {% if (playlist.isOnline is not same as(null)) %} - {{ playlist.channels|length }} - {% else %} - ? - {% endif %} - - - {{ mirror_url(playlist.code) }} - -
- {% if pageCount > 1 %} -
-
    - {% for page in range(1, pageCount) %} - {% if page == pageCurrent %} -
  • - {{ page }} -
  • - {% else %} -
  • - {{ page }} -
  • - {% endif %} - {% endfor %} -
+ + {% if pageCount > 1 %} + {% endif %} -
{% endblock %} {% block footer %} diff --git a/views/template.twig b/views/template.twig index 81bf47f..3acc477 100644 --- a/views/template.twig +++ b/views/template.twig @@ -5,7 +5,7 @@ ###########################################################################} - + {% block title %}{{ config('app.title') }}{% endblock %} @@ -30,67 +30,107 @@ {% block head %}{% endblock %} - - + - -
+ + {% block footer %}{% endblock %} {% include("custom.twig") ignore missing %}