Skip to content

Commit

Permalink
spotless
Browse files Browse the repository at this point in the history
  • Loading branch information
Feuermagier committed Sep 20, 2024
1 parent 818103f commit 8b8e86f
Showing 1 changed file with 5 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -328,11 +328,12 @@ private void updateBacklog() {
// Submission Date
String dateText = submission
.getSubmissionDate()
.format(DateTimeFormatter.ofLocalizedDateTime(FormatStyle.SHORT, FormatStyle.SHORT));
.format(DateTimeFormatter.ofLocalizedDateTime(
FormatStyle.SHORT, FormatStyle.SHORT));
backlogList.add(new JBLabel(dateText), "alignx right");

// Correction Round
backlogList.add(new JBLabel( "Round " + (submission.getCorrectionRound() + 1)));
backlogList.add(new JBLabel("Round " + (submission.getCorrectionRound() + 1)));

// Score in percent
var latestResult = submission.getLatestResult();
Expand All @@ -348,7 +349,8 @@ private void updateBacklog() {
JButton reopenButton;
if (submission.isSubmitted()) {
reopenButton = new JButton("Reopen Assessment");
} else if (latestResult.isPresent() && latestResult.get().assessmentType() != AssessmentType.AUTOMATIC) {
} else if (latestResult.isPresent()
&& latestResult.get().assessmentType() != AssessmentType.AUTOMATIC) {
reopenButton = new JButton("Continue Assessment");
reopenButton.setForeground(JBColor.ORANGE);
} else {
Expand Down

0 comments on commit 8b8e86f

Please sign in to comment.