From 980eb3b831ce6933459285e96cca87cef1be31c5 Mon Sep 17 00:00:00 2001 From: Henne Vogelsang Date: Mon, 14 Apr 2014 16:39:45 +0200 Subject: [PATCH] Only show the conf media if it's set --- app/views/proposal/show.html.haml | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/app/views/proposal/show.html.haml b/app/views/proposal/show.html.haml index 16de394b..02173839 100644 --- a/app/views/proposal/show.html.haml +++ b/app/views/proposal/show.html.haml @@ -27,9 +27,12 @@ .col-md-12 - if @event.media_id.blank? %h5.text-warning - No video of the event yet, sorry! Meanwhile... - .flexvideo - = render partial: "shared/media_item", locals: {media_type: @conference.media_type, media_id: @conference.media_id} + No video of the event yet, sorry! + - unless @conference.media_id.blank? + Meanwhile... + - unless @conference.media_id.blank? + .flexvideo + = render partial: "shared/media_item", locals: {media_type: @conference.media_type, media_id: @conference.media_id} - else .flexvideo = render partial: "shared/media_item", locals: {media_type: @event.media_type, media_id: @event.media_id}