Remove speaker pictures from schedule.
This commit is contained in:
parent
4ad568bb97
commit
91519e8b43
|
@ -46,8 +46,6 @@ speakerDecoder =
|
|||
|> required "name" string
|
||||
|> required "slug" string
|
||||
|> required "biography" string
|
||||
|> optional "large_picture_url" (nullable string) Nothing
|
||||
|> optional "small_picture_url" (nullable string) Nothing
|
||||
|
||||
|
||||
eventDecoder : Decoder Event
|
||||
|
|
|
@ -69,8 +69,6 @@ type alias Speaker =
|
|||
{ name : String
|
||||
, slug : SpeakerSlug
|
||||
, biography : String
|
||||
, largePictureUrl : Maybe String
|
||||
, smallPictureUrl : Maybe String
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -22,24 +22,11 @@ speakerDetailView speakerSlug model =
|
|||
model.speakers
|
||||
|> List.filter (\speaker -> speaker.slug == speakerSlug)
|
||||
|> List.head
|
||||
|
||||
image =
|
||||
case speaker of
|
||||
Just speaker ->
|
||||
case speaker.smallPictureUrl of
|
||||
Just smallPictureUrl ->
|
||||
[ img [ src smallPictureUrl ] [] ]
|
||||
|
||||
Nothing ->
|
||||
[]
|
||||
|
||||
Nothing ->
|
||||
[]
|
||||
in
|
||||
case speaker of
|
||||
Just speaker ->
|
||||
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 ) ] ] []
|
||||
, text " Back"
|
||||
]
|
||||
|
@ -47,8 +34,6 @@ speakerDetailView speakerSlug model =
|
|||
, div [] [ Markdown.toHtml [] speaker.biography ]
|
||||
, speakerEvents speaker model
|
||||
]
|
||||
++ image
|
||||
)
|
||||
|
||||
Nothing ->
|
||||
div [] [ text "Unknown speaker..." ]
|
||||
|
|
|
@ -659,10 +659,6 @@ class Speaker(CampRelatedModel):
|
|||
'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
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue