@@ -41,7 +41,7 @@ type alias Flags =
41 , dirs : List String
41 , dirs : List String
42 , files : List File
42 , files : List File
43 , readme : Maybe String
43 , readme : Maybe String
44− , project : Project.Project
44+ , project : Maybe Project.Project
45 , exactDeps : Dict.Dict String Version.Version
45 , exactDeps : Dict.Dict String Version.Version
@@ -64,7 +64,7 @@ decoder =
64 (D.field "dirs" (D.list D.string))
64 (D.field "dirs" (D.list D.string))
65 (D.field "files" (D.list fileDecoder))
65 (D.field "files" (D.list fileDecoder))
66 (D.field "readme" (D.nullable D.string))
66 (D.field "readme" (D.nullable D.string))
67− (D.field "project" Project.decoder)
67+ (D.field "project" (D.nullable Project.decoder))
68 (D.field "exactDeps" (D.dict Version.decoder))
68 (D.field "exactDeps" (D.dict Version.decoder))
@@ -103,21 +103,35 @@ view model =
103 [ header [ class "header" ] []
103 [ header [ class "header" ] []
104 , div [ class "content" ]
104 , div [ class "content" ]
105 [ Navigator.view root pwd
105 [ Navigator.view root pwd
106− , section [ class "left-column" ]
106+ , viewLeftColumn dirs files readme
107− [ viewFiles dirs files
110− , section [ class "right-column" ]
111− [ viewProjectSummary project
112− , viewDeps exactDeps project
113− , viewTestDeps exactDeps project
107+ , viewRightColumn exactDeps project
115 , div [ style "clear" "both" ] []
108 , div [ style "clear" "both" ] []
114+viewLeftColumn : List String -> List File -> Maybe String -> Html msg
115+viewLeftColumn dirs files readme =
116+ section [ class "left-column" ]
117+ [ viewFiles dirs files
122+viewRightColumn : ExactDeps -> Maybe Project.Project -> Html msg
123+viewRightColumn exactDeps maybeProject =
124+ section [ class "right-column" ] <|
125+ case maybeProject of
130+ [ viewProjectSummary project
131+ , viewDeps exactDeps project
132+ , viewTestDeps exactDeps project
122-- VIEW README
136-- VIEW README