Remove speaker pictures from schedule.

This commit is contained in:
Víðir Valberg Guðmundsson 2018-05-06 22:09:19 +02:00
parent 4ad568bb97
commit 91519e8b43
4 changed files with 5 additions and 28 deletions

View file

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

View file

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

View file

@ -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..." ]

View file

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