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

Version Path
govspeak-6.6.0 lib/templates/contact.html.erb
govspeak-6.5.11 lib/templates/contact.html.erb
govspeak-6.5.10 lib/templates/contact.html.erb
govspeak-6.5.9 lib/templates/contact.html.erb
govspeak-6.5.8 lib/templates/contact.html.erb
govspeak-6.5.7 lib/templates/contact.html.erb
govspeak-6.5.6 lib/templates/contact.html.erb
govspeak-6.5.5 lib/templates/contact.html.erb
govspeak-6.5.4 lib/templates/contact.html.erb
govspeak-6.5.3 lib/templates/contact.html.erb
govspeak-6.5.2 lib/templates/contact.html.erb
govspeak-6.5.1 lib/templates/contact.html.erb
govspeak-6.5.0 lib/templates/contact.html.erb
govspeak-6.4.0 lib/templates/contact.html.erb
govspeak-6.3.0 lib/templates/contact.html.erb
govspeak-6.2.1 lib/templates/contact.html.erb
govspeak-6.2.0 lib/templates/contact.html.erb
govspeak-6.1.1 lib/templates/contact.html.erb
govspeak-6.1.0 lib/templates/contact.html.erb
govspeak-6.0.0 lib/templates/contact.html.erb