From 7a5c8ff018936ed7328042c88a2edae3c29d91be Mon Sep 17 00:00:00 2001 From: Florian Larysch Date: Wed, 2 Sep 2015 12:56:32 +0200 Subject: Automatically open/close conference based on time. Toggle the 'closed' bit based on the current time, rather than manually setting it in the config. This patch also adds a distinction between the time before the conference and after: Different pages will be displayed as to not confuse the user. --- template/assemblies/header.phtml | 2 +- template/assemblies/recordings.phtml | 41 ++++++++++++++++++++++++++++++++++++ template/not_started.phtml | 3 +++ 3 files changed, 45 insertions(+), 1 deletion(-) create mode 100644 template/assemblies/recordings.phtml create mode 100644 template/not_started.phtml (limited to 'template') diff --git a/template/assemblies/header.phtml b/template/assemblies/header.phtml index 68f4b6d..f57054c 100644 --- a/template/assemblies/header.phtml +++ b/template/assemblies/header.phtml @@ -15,7 +15,7 @@ - isClosed() && $feedback->isEnabled()): ?> + hasEnded() && $feedback->isEnabled()): ?> diff --git a/template/assemblies/recordings.phtml b/template/assemblies/recordings.phtml new file mode 100644 index 0000000..71b7866 --- /dev/null +++ b/template/assemblies/recordings.phtml @@ -0,0 +1,41 @@ +hasReleases() || $conference->hasRelive()): ?> + hasReleases() && $conference->hasRelive()) ? + // both enabled + 'col-sm-6 col-xs-12' : + + // only one of both enabled + 'col-xs-12'; + ?> +
+ +
+

Recordings

+
+ + hasReleases()): ?> +
+ +
+ + + hasRelive()): ?> +
+
+ +
+
+ + +
+ diff --git a/template/not_started.phtml b/template/not_started.phtml new file mode 100644 index 0000000..a434f02 --- /dev/null +++ b/template/not_started.phtml @@ -0,0 +1,3 @@ +
+

getTitle())?> has not started yet!

+
-- cgit v1.2.3