mirror of
https://github.com/mastodon/mastodon.git
synced 2024-11-26 22:36:21 +01:00
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.
This commit is contained in:
parent
feadf7553d
commit
f91284d230
@ -147,9 +147,13 @@
|
|||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
|
|
||||||
a {
|
a,
|
||||||
|
span {
|
||||||
font-weight: 400;
|
font-weight: 400;
|
||||||
color: lighten($ui-base-color, 34%);
|
color: lighten($ui-base-color, 34%);
|
||||||
|
}
|
||||||
|
|
||||||
|
a {
|
||||||
text-decoration: none;
|
text-decoration: none;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,10 @@
|
|||||||
.panel-header
|
.panel-header
|
||||||
= succeed ':' do
|
= succeed ':' do
|
||||||
= t 'about.contact'
|
= 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
|
.panel-body
|
||||||
- if contact.contact_account
|
- if contact.contact_account
|
||||||
.owner
|
.owner
|
||||||
|
Loading…
Reference in New Issue
Block a user