Remove speaker pictures from schedule.
This commit is contained in:
parent
4ad568bb97
commit
91519e8b43
|
@ -46,8 +46,6 @@ speakerDecoder =
|
||||||
|> required "name" string
|
|> required "name" string
|
||||||
|> required "slug" string
|
|> required "slug" string
|
||||||
|> required "biography" string
|
|> required "biography" string
|
||||||
|> optional "large_picture_url" (nullable string) Nothing
|
|
||||||
|> optional "small_picture_url" (nullable string) Nothing
|
|
||||||
|
|
||||||
|
|
||||||
eventDecoder : Decoder Event
|
eventDecoder : Decoder Event
|
||||||
|
|
|
@ -69,8 +69,6 @@ type alias Speaker =
|
||||||
{ name : String
|
{ name : String
|
||||||
, slug : SpeakerSlug
|
, slug : SpeakerSlug
|
||||||
, biography : String
|
, biography : String
|
||||||
, largePictureUrl : Maybe String
|
|
||||||
, smallPictureUrl : Maybe String
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -22,24 +22,11 @@ speakerDetailView speakerSlug model =
|
||||||
model.speakers
|
model.speakers
|
||||||
|> List.filter (\speaker -> speaker.slug == speakerSlug)
|
|> List.filter (\speaker -> speaker.slug == speakerSlug)
|
||||||
|> List.head
|
|> List.head
|
||||||
|
|
||||||
image =
|
|
||||||
case speaker of
|
|
||||||
Just speaker ->
|
|
||||||
case speaker.smallPictureUrl of
|
|
||||||
Just smallPictureUrl ->
|
|
||||||
[ img [ src smallPictureUrl ] [] ]
|
|
||||||
|
|
||||||
Nothing ->
|
|
||||||
[]
|
|
||||||
|
|
||||||
Nothing ->
|
|
||||||
[]
|
|
||||||
in
|
in
|
||||||
case speaker of
|
case speaker of
|
||||||
Just speaker ->
|
Just speaker ->
|
||||||
div []
|
div []
|
||||||
([ a [ onClick BackInHistory, classList [ ( "btn", True ), ( "btn-default", True ) ] ]
|
[ a [ onClick BackInHistory, classList [ ( "btn", True ), ( "btn-default", True ) ] ]
|
||||||
[ i [ classList [ ( "fa", True ), ( "fa-chevron-left", True ) ] ] []
|
[ i [ classList [ ( "fa", True ), ( "fa-chevron-left", True ) ] ] []
|
||||||
, text " Back"
|
, text " Back"
|
||||||
]
|
]
|
||||||
|
@ -47,8 +34,6 @@ speakerDetailView speakerSlug model =
|
||||||
, div [] [ Markdown.toHtml [] speaker.biography ]
|
, div [] [ Markdown.toHtml [] speaker.biography ]
|
||||||
, speakerEvents speaker model
|
, speakerEvents speaker model
|
||||||
]
|
]
|
||||||
++ image
|
|
||||||
)
|
|
||||||
|
|
||||||
Nothing ->
|
Nothing ->
|
||||||
div [] [ text "Unknown speaker..." ]
|
div [] [ text "Unknown speaker..." ]
|
||||||
|
|
|
@ -659,10 +659,6 @@ class Speaker(CampRelatedModel):
|
||||||
'biography': self.biography,
|
'biography': self.biography,
|
||||||
}
|
}
|
||||||
|
|
||||||
if self.picture_small and self.picture_large:
|
|
||||||
data['large_picture_url'] = self.get_large_picture_url()
|
|
||||||
data['small_picture_url'] = self.get_small_picture_url()
|
|
||||||
|
|
||||||
return data
|
return data
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue