restyle #9

Merged
anthony merged 7 commits from restyle into master 2025-07-19 16:22:22 +03:00
2 changed files with 23 additions and 13 deletions
Showing only changes of commit 0b41503131 - Show all commits

View File

@@ -34,8 +34,9 @@ class BasicController
*/ */
public function notFound(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface public function notFound(ServerRequestInterface $request, ResponseInterface $response): ResponseInterface
{ {
$code = $request->getAttributes()['code'];
$response->withStatus(404); $response->withStatus(404);
$this->view($request, $response, 'notfound.twig'); $this->view($request, $response, 'notfound.twig', ['code' => $code]);
return $response; return $response;
} }

View File

@@ -6,19 +6,28 @@
{% extends "template.twig" %} {% extends "template.twig" %}
{% block header %}
<h2>Плейлист не найден</h2>
{% endblock %}
{% block content %} {% block content %}
<div class="row"> <div class="row justify-content-center">
<div class="col-md-12"> <div class="col-md-8 col-lg-6 text-center">
<p> <div class="card bg-dark border-secondary">
Плейлист {{ id }} не найден <div class="card-body">
</p> <ion-icon name="warning-outline" class="display-1 text-warning mb-3"></ion-icon>
<a class="btn btn-outline-light" href="{{ base_url() }}" title="На главную"> <h2 class="card-title">Плейлист не найден</h2>
Перейти к списку <p class="card-text">
</a> Плейлист с кодом <code>{{ code }}</code> не найден в системе.
</p>
<p class="text-muted small">
Возможно, его здесь никогда не было, либо он уже был удалён.
<br />
Если хочешь, чтобы здесь был плейлист, предложи его к добавлению.
<br />
<a href="https://iptv.axenov.dev/docs/support.html#participate">Как это сделать?</a>
</p>
<a class="btn btn-outline-light" href="/" title="На главную">
<ion-icon name="list-outline" class="me-1"></ion-icon>Перейти к списку плейлистов
</a>
</div>
</div>
</div> </div>
</div> </div>
{% endblock %} {% endblock %}