Sha256: c1024584ac3f07f60a7087fcd3f1902fb04cee9e2e101d871216c8edcd029c43

Contents?: true

Size: 1.51 KB

Versions: 5

Compression:

Stored size: 1.51 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| %>
      <%= render_hcard_address(address) %>
    <% 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

5 entries across 5 versions & 1 rubygems

Version Path
govspeak-5.9.1 lib/templates/contact.html.erb
govspeak-5.9.0 lib/templates/contact.html.erb
govspeak-5.8.0 lib/templates/contact.html.erb
govspeak-5.7.1 lib/templates/contact.html.erb
govspeak-5.7.0 lib/templates/contact.html.erb