From cb48ba9b7068302414b18435505a041d22bd9e4b Mon Sep 17 00:00:00 2001 From: MaZderMind Date: Sun, 8 Mar 2015 13:42:58 +0100 Subject: Introduce Models abstracting the Config away from Views & Templates --- template/overview.phtml | 67 +++++++++++++++++++++++++++++-------------------- 1 file changed, 40 insertions(+), 27 deletions(-) (limited to 'template/overview.phtml') diff --git a/template/overview.phtml b/template/overview.phtml index 37fb154..7916cdb 100644 --- a/template/overview.phtml +++ b/template/overview.phtml @@ -7,7 +7,7 @@ - $rooms): ?> + getGroups() as $group => $rooms): ?>

@@ -16,49 +16,60 @@ $room): ?>
+ narrow + hasPreview() && $room->hasSchedule()): ?> col-md-6 col-sm-6 - narrow - + hasPreview()): ?> has-preview - + hasSchedule()): ?> has-schedule "> +
- - - .png" alt="" width="213" height="120" /> + hasPreview()): ?> + + + <?=h($room->getDisplay())?> + - - + + getDisplay())?> - + hasSchedule()): ?>
Now: @@ -78,18 +89,25 @@
- - + hasReleases() || $overview->hasRelive()): ?> + hasReleases() && $overview->hasRelive()) ? + // both enabled + 'col-sm-6 col-xs-12' : + + // only one of both enabled + 'col-xs-12'; + ?>

Recordings

- + hasReleases()): ?>
@@ -97,16 +115,11 @@
- + hasRelive()): ?>
-- cgit v1.2.3