link released relive-streams to media

This commit is contained in:
MaZderMind 2014-12-28 18:11:31 +01:00
parent 574feed16e
commit 249a86a414
4 changed files with 14 additions and 2 deletions

View file

@ -5696,6 +5696,8 @@ a.inverted {
clear: both;
height: 120px;
color: black; }
.event-previews .event-preview.released {
background-color: #96d600; }
.event-previews .event-preview.live {
background-color: #d87500; }
.event-previews .event-preview.live .metadata li, .event-previews .event-preview.live h3 {

File diff suppressed because one or more lines are too long

View file

@ -571,6 +571,10 @@ a.inverted {
height: 120px;
color: black;
&.released {
background-color: #96d600;
}
&.live {
background-color: $brand-primary;
.metadata li, h3 {

View file

@ -5,7 +5,13 @@
<div class="event-previews relive">
<? foreach ($talks as $talk): ?>
<a class="event-preview <?=h($talk['status'])?>" href="<?=h(link_vod($talk['id']))?>">
<a class="event-preview <?=h($talk['status'])?>"
<? if($talk['status'] == 'released'): ?>
href="<?=h($talk['release_url'])?>"
<? else: ?>
href="<?=h(link_vod($talk['id']))?>"
<? endif ?>
>
<img alt="<?=h($talk['title'])?>" class="video-thumbnail" src="http://vod.c3voc.de/relive/<?=h($talk['thumbnail'])?>">
<div class="caption">
<ul class="metadata">