app/views/components/_general_content.html.erb in noodall-components-general-content-0.0.1 vs app/views/components/_general_content.html.erb in noodall-components-general-content-0.0.2
- old
+ new
@@ -1,6 +1,6 @@
<div id="<%= slot_code %>" class="component general-content <%= 'double' if expand %> <%= additional_classes %>">
<h2><%= component.title %></h2>
<%= link_to(image_tag(component.asset.url('200x108#', :jpg)), component.link) unless component.asset.nil? %>
- <div><%= component.content %></div>
- <%= link_to component.link_label, component.link, :class => "more" %>
+ <div><%= component.content.html_safe %></div>
+ <%= link_to component.link_label, component.link, :class => "more" unless component.link.blank? %>
</div>