From 3c46ad2c41cb6e9a6d124434d91e2cb46549deb4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz> Date: Tue, 25 Mar 2025 00:38:19 +0100 Subject: [PATCH] Uprava textu pro prihlasene --- VERSION | 2 +- templates/live.html.ep | 8 +++++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/VERSION b/VERSION index 3f684d2..cc6c9a4 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -2.3.4 +2.3.5 diff --git a/templates/live.html.ep b/templates/live.html.ep index 78c3686..34fe18b 100644 --- a/templates/live.html.ep +++ b/templates/live.html.ep @@ -20,7 +20,13 @@ $('#Streams').bootstrapTable({ onClickCell: function (field, value, row, $element) { window.location.href = '/play/' + row.key; }, - formatNoMatches: function() { return '<p class="text-4xl">AktuálnÄ› neprobĂhá žádnĂ© veĹ™ejnĂ© ĹľivĂ© vysĂlánĂ.<br/>Pro zobrazenĂ neveĹ™ejnĂ˝ch vysĂlánĂ se prosĂm <a href="<%= $c->oauth2->authorize %>">pĹ™ihlaste</a></p>' }, + formatNoMatches: function() { return +% if ( $c->is_user_authenticated ) { + '<p class="text-4xl">AktuálnÄ› neprobĂhá žádnĂ© ĹľivĂ© vysĂlánĂ</p>' +% } else { + '<p class="text-4xl">AktuálnÄ› neprobĂhá žádnĂ© veĹ™ejnĂ© ĹľivĂ© vysĂlánĂ.<br/>Pro zobrazenĂ neveĹ™ejnĂ˝ch vysĂlánĂ se prosĂm <a href="<%= $c->oauth2->authorize %>">pĹ™ihlaste</a></p>' +% } + }, }); function rowStyle(row, index) { -- GitLab