<%
  guidance ||= nil
%>
<%= 
  if guidance.present? && guidance["links"].present?
    guidance_links = guidance["links"]
    content_tag :p, :class => 'govuk-body' do
      concat(guidance["text"] + " ")
      guidance_links.each do | link |
        elem =  link_to(link["label"],link["url"])
        if  link.equal? guidance_links.last
          concat(elem)
        elsif link.equal? guidance_links[guidance_links.length - 2]
          concat(elem + " and ")
        else
          concat(elem + ", ")
        end
      end
    end
  end 
%>

<%
  guidance ||= nil
%>
<%= 
  if guidance.present? && guidance["links"].present?
    guidance_links = guidance["links"]
    content_tag :p, :class => 'govuk-body' do
      concat(guidance["text"] + " ")
      guidance_links.each do | link |
        elem =  link_to(link["label"],link["url"], class: "govuk-link")
        if  link.equal? guidance_links.last
          concat(elem)
        elsif link.equal? guidance_links[guidance_links.length - 2]
          concat(elem + " and ")
        else
          concat(elem + ", ")
        end
      end
    end
  end 
%>

Add govuk-link class to country guidance links
Add govuk-link class to country guidance links
