Merge pull request #75 from peterblazejewicz/fix/alts-attr
Add missing alt attr to non-decorative images
This commit is contained in:
Коммит
11275979eb
|
@ -37,7 +37,7 @@ block content
|
|||
.form-group
|
||||
label.col-sm-3.control-label Gravatar
|
||||
.col-sm-4
|
||||
img(src=user.gravatar(), class='profile', width='100', height='100')
|
||||
img(src=user.gravatar(), class='profile', width='100', height='100', alt=((user.profile.name || user.email || user.id)))
|
||||
.form-group
|
||||
.col-sm-offset-3.col-sm-4
|
||||
button.btn.btn.btn-primary(type='submit')
|
||||
|
|
|
@ -19,7 +19,7 @@ block content
|
|||
h3
|
||||
i.fa.fa-user
|
||||
| My Profile
|
||||
img.thumbnail(src=`https://graph.facebook.com/${profile.id}/picture?type=large`, width='90', height='90')
|
||||
img.thumbnail(src=`https://graph.facebook.com/${profile.id}/picture?type=large`, width='90', height='90', alt=(profile.name || profile.username))
|
||||
h4= profile.name
|
||||
h6 First Name: #{profile.first_name}
|
||||
h6 Last Name: #{profile.last_name}
|
||||
|
|
|
@ -9,5 +9,5 @@ block content
|
|||
a(href='/api/facebook', style='color: #fff')
|
||||
.panel.panel-default(style='background-color: #3b5998')
|
||||
.panel-body
|
||||
img(src='http://i.imgur.com/jiztYCH.png', height=40)
|
||||
img(src='http://i.imgur.com/jiztYCH.png', height=40, alt='Facebook')
|
||||
| Facebook
|
||||
|
|
|
@ -27,9 +27,9 @@
|
|||
li.dropdown(class=(title == 'Account Management') ? 'active' : undefined)
|
||||
a.dropdown-toggle(href='#', data-toggle='dropdown')
|
||||
if user.profile.picture
|
||||
img(src=user.profile.picture)
|
||||
img(src=user.profile.picture, alt=(user.profile.name || user.email || user.id))
|
||||
else
|
||||
img(src=user.gravatar(60))
|
||||
img(src=user.gravatar(60), alt=(user.profile.name || user.email || user.id))
|
||||
span= user.profile.name || user.email || user.id
|
||||
i.caret
|
||||
ul.dropdown-menu
|
||||
|
|
Загрузка…
Ссылка в новой задаче