Skip to content

Commit

Permalink
adding a more stable null check for pages
Browse files Browse the repository at this point in the history
  • Loading branch information
erik committed Jul 27, 2012
1 parent 5eab69c commit 99e4cfe
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/views/pages/show.html.erb
@@ -1,9 +1,9 @@
<div class="contentContainer" style=" width:700px; float:left; padding: 20px 20px 40px 0;">
<% unless @page.embed_code.blank? %>
<% if !@page.embed_code.blank? %>
<div class="videoContainer">
<%= transform_embed_code(@page.embed_code, 700, 350) %>
</div>
<% else %>
<% elsif @page.featured_image? %>
<div style="clear:both;display:block;">
<%= image_tag(@page.featured_image.url(:featured_image)) %>
</div>
Expand Down

0 comments on commit 99e4cfe

Please sign in to comment.