From c1335fdd9e3b7df6bba7393685e977686817c8a2 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Valenta?= <git@imaniti.org>
Date: Fri, 26 May 2023 00:39:31 +0200
Subject: [PATCH] styling, file urls

---
 lectures/templates/lectures/view_lecture.html | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/lectures/templates/lectures/view_lecture.html b/lectures/templates/lectures/view_lecture.html
index b53fae6..1477c0d 100644
--- a/lectures/templates/lectures/view_lecture.html
+++ b/lectures/templates/lectures/view_lecture.html
@@ -63,7 +63,7 @@
                                     {% if material.link %}
                                         href="{{ material.link }}"
                                     {% elif material.file %}
-                                        href="{{ material.file }}"
+                                        href="{{ material.file.url }}"
                                     {% endif %}
                                     class="text-lg"
                                 >{{ material.name }}</a>
@@ -71,7 +71,9 @@
                         {% endfor %}
                     </ul>
                 {% else %}
-                    <span class="text-gray-200">Žádné materiály.</span>
+                    <span
+                        class="text-gray-200 my-3 py-3 border-y border-gray-200"
+                    >Žádné materiály.</span>
                 {% endif %}
             {% endwith %}
         </section>
@@ -94,7 +96,9 @@
                         {% endfor %}
                     </ul>
                 {% else %}
-                    <span class="text-gray-200">Žádné nahrávky.</span>
+                    <span
+                        class="text-gray-200 my-3 py-3 border-y border-gray-200"
+                    >Žádné nahrávky.</span>
                 {% endif %}
             {% endwith %}
         </section>
-- 
GitLab