use space instead of slash as separator between test-name and metric (in tables)
so that the hear could be wrapped in a more narrow column if needed (e.g. if the number of test sets/metric is large)
This commit is contained in:
parent
d9a3d56d3d
commit
fac5d451d6
@ -353,6 +353,9 @@ formatParameter param = parameterName param ++ "=" ++ parameterValue param
|
|||||||
formatTest :: Test -> Text
|
formatTest :: Test -> Text
|
||||||
formatTest test = (testName test) ++ "/" ++ (T.pack $ show $ testMetric test)
|
formatTest test = (testName test) ++ "/" ++ (T.pack $ show $ testMetric test)
|
||||||
|
|
||||||
|
formatTestForHtml :: Test -> Text
|
||||||
|
formatTestForHtml test = (testName test) ++ " " ++ (T.pack $ show $ testMetric test)
|
||||||
|
|
||||||
findFilePossiblyCompressed :: FilePath -> IO (Maybe FilePath)
|
findFilePossiblyCompressed :: FilePath -> IO (Maybe FilePath)
|
||||||
findFilePossiblyCompressed baseFilePath = do
|
findFilePossiblyCompressed baseFilePath = do
|
||||||
let possibleFiles = [baseFilePath] ++ (map (baseFilePath <.>) ["gz", "bz2", "xz"])
|
let possibleFiles = [baseFilePath] ++ (map (baseFilePath <.>) ["gz", "bz2", "xz"])
|
||||||
|
@ -112,7 +112,7 @@ statusCell :: Text -> RepoScheme -> Repo -> (a -> (SubmissionId, Submission, Var
|
|||||||
statusCell challengeName repoScheme challengeRepo fun = Table.widget "" (statusCellWidget challengeName repoScheme challengeRepo . fun)
|
statusCell challengeName repoScheme challengeRepo fun = Table.widget "" (statusCellWidget challengeName repoScheme challengeRepo . fun)
|
||||||
|
|
||||||
resultCell :: Test -> (a -> Maybe Evaluation) -> Table App a
|
resultCell :: Test -> (a -> Maybe Evaluation) -> Table App a
|
||||||
resultCell test fun = hoverTextCell (formatTest test) (formatTruncatedScore (testPrecision test) . fun) (formatFullScore . fun)
|
resultCell test fun = hoverTextCell (formatTestForHtml test) (formatTruncatedScore (testPrecision test) . fun) (formatFullScore . fun)
|
||||||
|
|
||||||
statusCellWidget :: Eq a => Text -> RepoScheme -> Repo -> (SubmissionId, Submission, VariantId, Variant, a, Maybe a) -> WidgetFor App ()
|
statusCellWidget :: Eq a => Text -> RepoScheme -> Repo -> (SubmissionId, Submission, VariantId, Variant, a, Maybe a) -> WidgetFor App ()
|
||||||
statusCellWidget challengeName repoScheme challengeRepo (submissionId, submission, variantId, _, userId, mauthId) = $(widgetFile "submission-status")
|
statusCellWidget challengeName repoScheme challengeRepo (submissionId, submission, variantId, _, userId, mauthId) = $(widgetFile "submission-status")
|
||||||
|
Loading…
Reference in New Issue
Block a user