Skip to content

Commit eb104f3

Browse files
committed
Display generic tasks with their own icon
In a future commit we'll display those on the judgehost pages as a simple way to run some shell commands on judgehosts.
1 parent 11e59ff commit eb104f3

File tree

2 files changed

+9
-4
lines changed

2 files changed

+9
-4
lines changed

webapp/src/Controller/Jury/ExecutableController.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -142,6 +142,9 @@ public function indexAction(Request $request): Response
142142
case 'debug':
143143
$execdata['icon']['icon'] = 'bug';
144144
break;
145+
case 'generic_task':
146+
$execdata['icon']['icon'] = 'check-double';
147+
break;
145148
case 'run':
146149
$execdata['icon']['icon'] = 'person-running';
147150
break;

webapp/src/DataFixtures/DefaultData/ExecutableFixture.php

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,10 +23,12 @@ public function load(ObjectManager $manager): void
2323
{
2424
$data = [
2525
// ID, description, type
26-
['compare', 'default compare script', 'compare'],
27-
['full_debug', 'default full debug script', 'debug'],
28-
['java_javac', 'java_javac', 'compile'],
29-
['run', 'default run script', 'run'],
26+
['compare', 'default compare script', 'compare'],
27+
['full_debug', 'default full debug script', 'debug'],
28+
['java_javac', 'java_javac', 'compile'],
29+
['judgehost_info', 'generic information about the judgehost', 'generic_task'],
30+
['chroot_upgrade', 'upgrade chroot packages', 'generic_task'],
31+
['run', 'default run script', 'run'],
3032
];
3133

3234
foreach ($data as $item) {

0 commit comments

Comments
 (0)