소스 검색

Do not create empty a element when there is no e-mail (#4455)

Empty a element is created when there is no business e-mail input.
master
Yamagishi Kazutoshi 6 년 전
committed by Eugen Rochko
부모
커밋
f91284d230
2개의 변경된 파일9개의 추가작업 그리고 2개의 파일을 삭제
  1. +5
    -1
      app/javascript/styles/about.scss
  2. +4
    -1
      app/views/about/_contact.html.haml

+ 5
- 1
app/javascript/styles/about.scss 파일 보기

@@ -147,9 +147,13 @@
white-space: nowrap;
overflow: hidden;

a {
a,
span {
font-weight: 400;
color: lighten($ui-base-color, 34%);
}

a {
text-decoration: none;
}
}


+ 4
- 1
app/views/about/_contact.html.haml 파일 보기

@@ -2,7 +2,10 @@
.panel-header
= succeed ':' do
= t 'about.contact'
= mail_to contact.site_contact_email.presence, nil, :title => contact.site_contact_email.presence
- if contact.site_contact_email.present?
= mail_to contact.site_contact_email, nil, title: contact.site_contact_email
- else
%span= t 'about.contact_unavailable'
.panel-body
- if contact.contact_account
.owner


불러오는 중...
취소
저장