aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaZderMind2015-03-02 17:20:22 +0100
committerMaZderMind2015-03-02 17:20:22 +0100
commit949bb96fc4a1e4d2e0384017841d63e987a768ef (patch)
treed3b15a84faba7c7e41ee3f5303efa711656411b4
parent8c5bb09af4f88154755feec6753a6bc48eabfc26 (diff)
nice error msg
Diffstat (limited to '')
-rw-r--r--template/relive.phtml80
1 files changed, 45 insertions, 35 deletions
diff --git a/template/relive.phtml b/template/relive.phtml
index aa605d8..b26dd20 100644
--- a/template/relive.phtml
+++ b/template/relive.phtml
@@ -12,44 +12,54 @@
<div class="row">
- <? foreach ($talks as $talk): ?>
- <? $url = ($talk['status'] == 'released') ? $talk['release_url'] : link_vod($talk['id']) ?>
- <div class="col-xs-12 recording">
- <div class="panel panel-default">
- <div class="panel-heading">
-
- <h3 class="panel-title">
- <a href="<?=h($url)?>">
- <?=h($talk['title'])?>
- </a>
- </h3>
-
+ <? if(!$talks): ?>
+ <div class="col-xs-10 col-xs-offset-1">
+ <div class="alert alert-warning" role="alert">
+ <i class="fa fa-bug"></i>
+ No ReLive-Talks avaiable, check your config!
</div>
- <div class="panel-body">
- <a href="<?=h($url)?>">
- <img class="preview" alt="<?=h($talk['title'])?>" class="video-thumbnail" src="<?=h($talk['thumbnail'])?>" width="213" height="120" />
- </a>
-
-
- <ul class="metadata">
- <li>
- <span class="fa fa-clock-o"></span>
- <?=h(round($talk['duration']/60))?> min
- </li>
- <li>
- <span class="fa fa-cogs"></span>
- <?=h($talk['status'])?>
- </li>
- <li>
- <span class="fa fa-sign-in"></span>
- <?=h($talk['room'])?>
- </li>
- </ul>
+ </div>
+ <? else: ?>
+ <? foreach ($talks as $talk): ?>
+ <? $url = ($talk['status'] == 'released') ? $talk['release_url'] : link_vod($talk['id']) ?>
+ <div class="col-xs-12 recording">
+ <div class="panel panel-default">
+ <div class="panel-heading">
+
+ <h3 class="panel-title">
+ <a href="<?=h($url)?>">
+ <?=h($talk['title'])?>
+ </a>
+ </h3>
+
+ </div>
+ <div class="panel-body">
+ <a href="<?=h($url)?>">
+ <img class="preview" alt="<?=h($talk['title'])?>" class="video-thumbnail" src="<?=h($talk['thumbnail'])?>" width="213" height="120" />
+ </a>
+
+ <ul class="metadata">
+ <li>
+ <span class="fa fa-clock-o"></span>
+ <?=h(round($talk['duration']/60))?> min
+ </li>
+ <li>
+ <span class="fa fa-cogs"></span>
+ <?=h($talk['status'])?>
+ </li>
+ <li>
+ <span class="fa fa-sign-in"></span>
+ <?=h($talk['room'])?>
+ </li>
+ </ul>
+
+ </div>
+ </div>
</div>
- </div>
- </div>
- <? endforeach ?>
+ <? endforeach ?>
+ <? endif ?>
+ </div>
</div>