From cdf49c74efba26860a44118f6567b0cc173afa2b Mon Sep 17 00:00:00 2001
From: tvluke <tvluke@chaotikum.org>
Date: Sun, 7 Jan 2024 16:59:33 +0100
Subject: [PATCH] also, no subtitles or slides for unpublished stuff

---
 _layouts/video.html | 16 +++++++++-------
 1 file changed, 9 insertions(+), 7 deletions(-)

diff --git a/_layouts/video.html b/_layouts/video.html
index d8503004..1c6cf9e3 100644
--- a/_layouts/video.html
+++ b/_layouts/video.html
@@ -110,13 +110,15 @@ layout: default
 		{% endif -%}
 		<div style="width: 100%; background-color:#f2f2f2; border-radius: 10px;">
 			<p style="padding: 5px; margin-left: 10px; margin-top: 10px: text-align: justify"><spann class="fa fa-eye" aria-hidden="true"></spann><i> {{ recording_date | date: "%-d.%m.%Y" }}</i><br><spann class="fa fa-upload" aria-hidden="true"></spann><i> {{ page.release_date | date: "%-d.%m.%Y" }}</i><br>{{content | replace: "<p>", "" | replace: "</p>", "<br>" }}
-			{% if page.slides and page.slides != '' -%}
-				<br><b><a href="{{page.slides}}"> Download Slides</a></b><br>
-			{% endif -%}
-			{% if page.closedcaption and page.closedcaption != '' -%}
-				<br><b><a href="{{page.closedcaption}}"> Download Untertitel
-			{% if page.cccomputergen and page.cccomputergen != '' -%}
-				(automatisch erstellt)
+			{% if release_date < nowunix and page.optout != true %}
+				{% if page.slides and page.slides != '' -%}
+					<br><b><a href="{{page.slides}}"> Download Slides</a></b><br>
+				{% endif -%}
+				{% if page.closedcaption and page.closedcaption != '' -%}
+					<br><b><a href="{{page.closedcaption}}"> Download Untertitel
+				{% if page.cccomputergen and page.cccomputergen != '' -%}
+					(automatisch erstellt)
+				{% endif -%}
 			{% endif -%}
 			</a></b></p>
 			{% endif -%}
-- 
GitLab