diff --git a/lectures/templates/lectures/view_lecture.html b/lectures/templates/lectures/view_lecture.html
index b53fae6f1b8efaeabf0ceddc238991ade50fda54..1477c0d2271576c679a7775dcf19bd73b9c74b56 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>