From 90fa5e229c8e25b0371cfd916f3463f9ea50d881 Mon Sep 17 00:00:00 2001
From: MaZderMind
Date: Wed, 30 Dec 2015 23:08:19 +0100
Subject: show last conference & relive on startpage

---
 template/allclosed.phtml | 29 ++++++++++++++++++++++++++---
 1 file changed, 26 insertions(+), 3 deletions(-)

(limited to 'template')

diff --git a/template/allclosed.phtml b/template/allclosed.phtml
index f999ddc..4d4ff38 100644
--- a/template/allclosed.phtml
+++ b/template/allclosed.phtml
@@ -1,9 +1,32 @@
 <div class="container about">
 	<? include("$assemblies/countdown.phtml") ?>
 
-	<p>
-		You can watch most of our Recordings at <a href="<?=h($conference->getReleasesUrl())?>"><?=h($conference->getReleasesUrl())?></a>.
-	</p>
+	<? if($last): ?>
+
+		<div class="well">
+			<? // FIXME when $last would be a Conference object, this code could be shared with clodes.phtml ?>
+			<h1><?=h($last['title'])?> is over!</h1>
+
+			<? if($last['releases']): ?>
+				Recordings will be released at <a href="<?=h($last['releases'])?>"><?=h($last['releases'])?></a>.
+			<? endif ?>
+
+			<? if($last['relive']): ?>
+				<? if($last['releases']): ?>
+					Until all recordings are released, <a href="<?=h($last['relive'])?>">ReLive</a> remains available.
+				<? else: ?>
+					You can still watch stream dumps <a href="<?=h($last['relive'])?>">here</a>.
+				<? endif ?>
+			<? endif ?>
+		</div>
+
+	<? else: ?>
+
+		<p>
+			You can watch most of our Recordings at <a href="<?=h($conference->getReleasesUrl())?>"><?=h($conference->getReleasesUrl())?></a>.
+		</p>
+
+	<? endif ?>
 
 	<br><br><br>
 
-- 
cgit v1.2.3