diff --git a/src/ServicesTable.elm b/src/ServicesTable.elm index bd884a7..3b331c0 100644 --- a/src/ServicesTable.elm +++ b/src/ServicesTable.elm @@ -105,7 +105,7 @@ mkSourceLink mod = a [ href <| "https://github.com/NixOS/nixpkgs/blob/" ++ pinne renderLine : Int -> { name : String, fields : List String, tests : List String, mod : String } -> Html Msg renderLine i {name, fields, tests, mod} = tr [] - <| [ th [] [ mkSourceLink mod ], th [] [ text <| fromInt i ], th [] [ text name ] ] + <| [ th [] [ mkSourceLink mod ], th [] [ text <| fromInt (i + 1) ], th [] [ text name ] ] ++ (List.map (\b -> td [class (if b then "cell-good" else "cell-bad")] [text (if b then "✓" else "✗")]) <| List.map (\field -> not <| List.member field fields) watchedFields)