Add email & nonverified color to contact show

This commit is contained in:
Alex Sherman 2020-06-09 14:05:52 +05:00
parent 3d444c3a04
commit 48036c660d
5 changed files with 10 additions and 5 deletions

View file

@ -85,7 +85,9 @@
%th{class: 'col-xs-2'}
= sort_link(@q, 'ident', t(:ident))
%th{class: 'col-xs-2'}
= sort_link(@q, 'email', t(:created_at))
= sort_link(@q, 'email', t(:email))
%th{class: 'col-xs-2'}
= sort_link(@q, 'created_at', t(:created_at))
%th{class: 'col-xs-2'}
= sort_link(@q, 'registrar_name', t(:registrar_name))
%tbody
@ -94,6 +96,8 @@
%td= link_to(contact, admin_contact_path(contact))
%td= contact.code
%td= ident_for(contact)
%td{class: ('text-danger' unless contact.email_verification.success)}
= contact.email
%td= l(contact.created_at, format: :short)
%td
- if contact.registrar

View file

@ -17,7 +17,8 @@
%dd= ident_for(@contact)
%dt= t(:email)
%dd= @contact.email
%dd{class: ('text-danger' unless @contact.email_verification.success)}
= @contact.email
%dt= t(:phone)
%dd= @contact.phone