Skip to content

Commit

Permalink
Revamp submission details: more compact general info (#524)
Browse files Browse the repository at this point in the history
  • Loading branch information
fushar authored Oct 12, 2023
1 parent 5d02f7e commit 17d825b
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,19 +66,20 @@ export function SubmissionDetails({

return (
<div className="general-info">
{grading && <GradingVerdictTag grading={grading} />} {separator} <UserRef profile={profile} />
{(containerName || problemName) && (
<>
{' '}
{separator} {containerName && <>{containerName} / </>}
<h4>
{containerName && <>{containerName} / </>}
{problemName && !!problemUrl ? (
<Link to={problemUrl}>{constructProblemName(problemName, problemAlias)}</Link>
) : (
constructProblemName(problemName, problemAlias)
)}
</>
)}{' '}
{separator} {getGradingLanguageName(gradingLanguage)} {separator} <FormattedDate value={time} showSeconds />
</h4>
)}
<p>
{grading && <GradingVerdictTag grading={grading} />} {separator} <UserRef profile={profile} />
{separator} {getGradingLanguageName(gradingLanguage)} {separator} <FormattedDate value={time} showSeconds />
</p>
</div>
);
};
Expand Down

0 comments on commit 17d825b

Please sign in to comment.