<!--
  insert_after 'code[erb-loud]:contains("continue")'
-->
<% if @current_user and @current_user.has_role? "dibs_referral" %>
  <%= mail_to t(:friend), t(:send_referral), subject: t(:cart_referral_subject), body: "http://#{Spree::Config[:site_url]}/dibs_referral?dibs_referral=#{URI::encode_www_form_component @current_user.email}&#{@order.dibs_referral_line_items.to_param}", class: 'button gray' %>
<% end %>

<!--
  insert_after 'code[erb-loud]:contains("continue")'
-->
<% if @current_user and @current_user.has_spree_role? "dibs_referral" %>
  <%= mail_to t(:friend), t(:send_referral), subject: t(:cart_referral_subject), body: "http://#{Spree::Config[:site_url]}/dibs_referral?dibs_referral=#{URI::encode_www_form_component @current_user.email}&#{@order.dibs_referral_line_items.to_param}", class: 'button gray' %>
<% end %>

Fix has_role to has_spree_role for 1.2
Fix has_role to has_spree_role for 1.2
