Story#105314040 define contact partial's variable

This commit is contained in:
Vladimir Krylov 2015-11-11 14:34:31 +02:00
parent 484a3034b1
commit dc7b5f481c
2 changed files with 2 additions and 2 deletions

View file

@ -1,4 +1,4 @@
- domains = (contact || @contact).all_domains(page: params[:domain_page], per: 20, params: params)
- domains = contact.all_domains(page: params[:domain_page], per: 20, params: params)
#contacts.panel.panel-default
.panel-heading
.pull-left

View file

@ -8,7 +8,7 @@
.row
.col-md-12= render 'admin/contacts/partials/statuses', contact: @contact
.row
.col-md-12= render 'admin/contacts/partials/domains'
.col-md-12= render 'admin/contacts/partials/domains', contact: @contact
- if @contact.legal_documents.present?
.row