internetee/registry

View on GitHub
app/views/admin/contacts/partials/_address.haml

Summary

Maintainability
Test Coverage
.panel.panel-default
  .panel-heading
    %h3.panel-title= t(:address)
  .panel-body
    %dl.dl-horizontal
      - if @contact.org_name.present?
        %dt= t(:org_name)
        %dd= @contact.org_name

      %dt= t(:street)
      %dd= @contact.street.to_s.gsub("\n", '<br>').html_safe

      %dt= t(:city)
      %dd= @contact.city

      %dt= t(:zip)
      %dd= @contact.zip

      %dt= t(:state)
      %dd= @contact.state

      %dt= t(:country)
      %dd= @contact.country