Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

adding a more stable null check for pages

  • Loading branch information...
commit 99e4cfe360c157f71c03acd860b0ebc95c052d36 1 parent 5eab69c
erik authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 app/views/pages/show.html.erb
View
4 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>
Please sign in to comment.
Something went wrong with that request. Please try again.