1
0
mirror of https://github.com/microsoft/TypeScript-Node-Starter.git synced 2025-11-08 20:27:37 +00:00

Merge pull request #75 from peterblazejewicz/fix/alts-attr

Add missing alt attr to non-decorative images
This commit is contained in:
Bowden Kelly
2018-01-09 10:56:51 -08:00
committed by GitHub
4 changed files with 5 additions and 5 deletions

View File

@@ -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