From 3a2e811183c3f65c0067e19ba0c1701ff94fa6bd Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Andrej=20Rama=C5=A1euski?= <andrej@x2.cz>
Date: Wed, 12 May 2021 22:18:11 +0200
Subject: [PATCH] Optimalizace templatu

---
 templates/calendar.html.ep        | 2 --
 templates/layouts/default.html.ep | 2 ++
 templates/streams.html.ep         | 2 --
 3 files changed, 2 insertions(+), 4 deletions(-)

diff --git a/templates/calendar.html.ep b/templates/calendar.html.ep
index fca8da3..6ee6ffe 100644
--- a/templates/calendar.html.ep
+++ b/templates/calendar.html.ep
@@ -1,7 +1,6 @@
 % layout 'default';
 % title 'Kalendar vysílání';
 
-<div class="container pt-2 lg:pb-2 ">
 <table id="Calendar"
     class="table table--bordered"
     data-url="/api/calendar">
@@ -14,7 +13,6 @@
     </tr>
   </thead>
 </table>
-</div>
 
 <script>
 $('#Calendar').bootstrapTable({});
diff --git a/templates/layouts/default.html.ep b/templates/layouts/default.html.ep
index 675b239..a5b89d8 100644
--- a/templates/layouts/default.html.ep
+++ b/templates/layouts/default.html.ep
@@ -74,7 +74,9 @@
 
   <section class="content">
  <h1 class="container container--default pt-4 lg:pb-4 text-grey-r500 head-alt-base"><%= title %></h1>
+ <div class="container pt-2 lg:pb-2 ">
 <%= content %>
+  </div>
   </section>
 
   <footer class="footer bg-grey-700 text-white __js-root">
diff --git a/templates/streams.html.ep b/templates/streams.html.ep
index 89bebe4..4a1de05 100644
--- a/templates/streams.html.ep
+++ b/templates/streams.html.ep
@@ -1,7 +1,6 @@
 % layout 'default';
 % title 'Seznam streamů';
 
-<div class="container pt-2 lg:pb-2 ">
 <table id="Streams"
     class="table table--bordered"
     data-detail-view="true"
@@ -17,7 +16,6 @@
     </tr>
   </thead>
 </table>
-</div>
 
 <script>
 $('#Streams').bootstrapTable({});
-- 
GitLab