<div class="greed_advertisment">
  <% unless campaign.filename.blank? %>
    <a href="<%= campaign.link %>" title="<%= campaign.name %>" class="greed_img"><img src="<%= host_with_port + campaign.filename %>" /></a>
    <% unless campaign.description.blank? %>
      <p class="greed_description"><%= campaign.description %></p>
    <% end %>
  <% else %>
    <h4 class="greed_title"><a href="<%= campaign.link %>"><%=h campaign.name %></a></h4>
    <% unless campaign.description.blank? %>
      <p class="greed_description"><%= campaign.description %></p>
    <% end %>
  <% end %>
</div>
<div class="greed_advertisment">
  <% unless campaign.filename.blank? %>
    <a href="<%= campaign.link %>" title="<%= campaign.name %>" class="greed_img"><img src="<%= host_with_port + campaign.filename %>" /></a>
    <% unless campaign.description.blank? %>
      <div class="greed_description"><%= campaign.description %></div>
    <% end %>
  <% else %>
    <h4 class="greed_title"><a href="<%= campaign.link %>"><%=h campaign.name %></a></h4>
    <% unless campaign.description.blank? %>
      <div class="greed_description"><%= campaign.description %></div>
    <% end %>
  <% end %>
</div>
Modify the ad HTML to be a little more flexible
Modify the ad HTML to be a little more flexible
