Sha256: 273dc6555af49ab920a112215e3f745663571b7d30e298e043675d72790849b7
Contents?: true
Size: 1.52 KB
Versions: 20
Compression:
Stored size: 1.52 KB
Contents
<% extra_class = [] extra_class << 'postal-address' if contact.post_addresses.any? %> <div id="contact_<%= contact.content_id %>" class="<%= ['contact', extra_class].flatten.join(' ') %>"> <div class="content"> <h3><%= contact.title %></h3> <div class="vcard contact-inner"> <% contact.post_addresses.each do |address| %> <%= Govspeak::HCardPresenter.new(address).render %> <% end %> <% if contact.email_addresses.any? || contact.phone_numbers.any? || contact.contact_form_links.any? %> <div class="email-url-number"> <% contact.email_addresses.each do |email| %> <p class="email"> <span class="type"><%= t('govspeak.contact.email') %></span> <a href="mailto:<%= email[:email] %>" class="email"><%= email[:title].present? ? email[:title] : email[:email] %></a> </p> <% end %> <% contact.contact_form_links.each do |form_link| %> <p class="contact_form_url"> <span class="type"><%= t('govspeak.contact.contact_form') %></span> <a href="<%= form_link[:link] %>"><%= form_link[:link].truncate(25) %></a> </p> <% end %> <% contact.phone_numbers.each do |number| %> <p class="tel"> <span class="type"><%= number[:title] %></span> <%= number[:number] %> </p> <% end %> </div> <% end %> <% if contact.description.present? %> <p class="comments"><%= Rinku.auto_link(format_with_html_line_breaks(contact.description)) %></p> <% end %> </div> </div> </div>
Version data entries
20 entries across 20 versions & 1 rubygems