Fec-cms: Broken image link for commissioners without bio photos

Created on 21 Feb 2018  路  5Comments  路  Source: fecgov/fec-cms

On the commissioners page, it shows a broken image link icon: https://www.fec.gov/about/leadership-and-structure/commissioners/
screen shot 2018-02-20 at 6 30 45 pm

On his bio page, nothing shows up: https://www.fec.gov/about/leadership-and-structure/donald-f-mcgahn/
screen shot 2018-02-20 at 6 31 38 pm

High priority Front-end

Most helpful comment

Oh! @rhoughfec do you mean we don't have an image for this commissioner at all? It's not just broken?

All 5 comments

@jenniferthibault maybe we just need an icon for when we don't have a headshot rather than the text?

Oh! @rhoughfec do you mean we don't have an image for this commissioner at all? It's not just broken?

In those cases, we could definitely use the placeholder grey circle that we use on the homepage for vacant seats without an image. Looking at the code, it looks like that's actually what's _supposed to be_ showing up on the All commissioners page, but isn't! So it is a broken image link there that needs to be repaired.

After a little poking around, it looks like the cause of this is that the page is trying to find a .png image, but that circle is a .jpg. This should be a quick HTML fix for anyone looking for practice with pull requests of HTML!

img/headshot--no-photo.png should be changed to img/headshot--no-photo.jpg in the following places:

In a weird bit of history, it looks like part of this was fixed before by @johnnyporkchops , as you can see in this commit history so I'm not sure how/when/why it was overwritten. That just makes him a great person to pair with if the person who picks up this issue gets stuck :)

I'm going to stop working on this issue now that I've gone down the rabbit hole 馃惏 馃暢 , but glad to help with any more grooming needed whenever it gets moved into a sprint

Thanks @jenniferthibault !

Merged, so closing

Was this page helpful?
0 / 5 - 0 ratings