@@ -89,71 +89,73 @@ export default function Submission() {
8989 </ tr >
9090 </ thead >
9191 < tbody >
92- < tr key = { submission . id } >
93- < th scope = "row" > { submission . id } </ th >
94- < td > < Link to = { `/admin/problem/${ submission . problem_id } ` } > { submission . problem_id } </ Link > </ td >
95- < td > { submission . language } </ td >
96- < td > { submission . score } </ td >
97- < td > { SubmissionVerdict ( submission ) } </ td >
98- </ tr >
92+ < tr key = { submission . id } >
93+ < th scope = "row" > { submission . id } </ th >
94+ < td > < Link to = { `/admin/problem/${ submission . problem_id } ` } > { submission . problem_id } </ Link > </ td >
95+ < td > { submission . language } </ td >
96+ < td > { submission . score } </ td >
97+ < td > { SubmissionVerdict ( submission ) } </ td >
98+ </ tr >
9999 </ tbody >
100100 </ table >
101+ < p > Время начала тестирования: { submission . created_at } </ p >
102+ < p > Время окончания тестирования: { submission . updated_at } </ p >
101103 { RenderCompilationData ( compilationData , submission , changeCompilationData ) }
102104 { submission . group_results ? (
103105 < >
104- < h5 className = "mb-3" > Group results</ h5 >
105- < div className = "row" >
106- < div className = "col-12 col-md-10 col-lg-8" >
107- < table className = "table mb-3" >
108- < thead >
109- < tr >
110- < th scope = "row" > Name</ th >
111- < th scope = "row" > Score</ th >
112- < th scope = "row" > Passed</ th >
113- </ tr >
114- </ thead >
115- < tbody >
116- { submission . group_results . map ( ( group , index ) => (
117- < tr key = { index } >
118- < td > { group . group_name } </ td >
119- < td > { group . points } </ td >
120- < td > { group . passed ? (
121- < span className = "text-success" > Yes</ span >
122- ) : (
123- < span className = "text-danger" > No</ span >
124- ) } </ td >
106+ < h5 className = "mb-3" > Group results</ h5 >
107+ < div className = "row" >
108+ < div className = "col-12 col-md-10 col-lg-8" >
109+ < table className = "table mb-3" >
110+ < thead >
111+ < tr >
112+ < th scope = "row" > Name</ th >
113+ < th scope = "row" > Score</ th >
114+ < th scope = "row" > Passed</ th >
125115 </ tr >
126- ) ) }
127- </ tbody >
128- </ table >
116+ </ thead >
117+ < tbody >
118+ { submission . group_results . map ( ( group , index ) => (
119+ < tr key = { index } >
120+ < td > { group . group_name } </ td >
121+ < td > { group . points } </ td >
122+ < td > { group . passed ? (
123+ < span className = "text-success" > Yes</ span >
124+ ) : (
125+ < span className = "text-danger" > No</ span >
126+ ) } </ td >
127+ </ tr >
128+ ) ) }
129+ </ tbody >
130+ </ table >
131+ </ div >
129132 </ div >
130- </ div >
131133 </ >
132134 ) : null }
133135 { submission . test_results ? (
134136 < >
135- < h5 className = "mb-3" > Test results</ h5 >
136- < table className = "table mb-3" >
137- < thead >
138- < tr >
139- < th scope = "row" > #</ th >
140- < th scope = "row" > Verdict</ th >
141- < th scope = "row" > Points</ th >
142- < th scope = "row" > Time</ th >
143- < th scope = "row" > Memory</ th >
144- < th scope = "row" > Wall time</ th >
145- < th scope = "row" > Exit code</ th >
146- < th scope = "row" > More info</ th >
147- </ tr >
148- </ thead >
149- < tbody >
150- {
151- submission . test_results . map ( testResult => (
152- RenderTest ( tests [ testResult . test_number - 1 ] , testResult , changeTests )
153- ) )
154- }
155- </ tbody >
156- </ table >
137+ < h5 className = "mb-3" > Test results</ h5 >
138+ < table className = "table mb-3" >
139+ < thead >
140+ < tr >
141+ < th scope = "row" > #</ th >
142+ < th scope = "row" > Verdict</ th >
143+ < th scope = "row" > Points</ th >
144+ < th scope = "row" > Time</ th >
145+ < th scope = "row" > Memory</ th >
146+ < th scope = "row" > Wall time</ th >
147+ < th scope = "row" > Exit code</ th >
148+ < th scope = "row" > More info</ th >
149+ </ tr >
150+ </ thead >
151+ < tbody >
152+ {
153+ submission . test_results . map ( testResult => (
154+ RenderTest ( tests [ testResult . test_number - 1 ] , testResult , changeTests )
155+ ) )
156+ }
157+ </ tbody >
158+ </ table >
157159 </ >
158160 ) : null }
159161 </ div >
0 commit comments