Update part4 and part5

This commit is contained in:
Richard Feldman
2018-05-05 05:36:30 -04:00
parent 4ad5a6d7c9
commit e6ec9a6584
359 changed files with 161 additions and 44513 deletions

View File

@@ -39,7 +39,15 @@ photoToUrl : UserPhoto -> String
photoToUrl (UserPhoto maybeUrl) =
case maybeUrl of
Nothing ->
"https://static.productionready.io/images/smiley-cyrus.jpg"
defaultPhotoUrl
Just "" ->
defaultPhotoUrl
Just url ->
url
defaultPhotoUrl : String
defaultPhotoUrl =
"/assets/images/smiley-cyrus.jpg"