Show the time that opponents submitted their report

This commit is contained in:
Andreas Svanberg 2025-02-18 14:53:28 +01:00
parent 093dd11c29
commit cbd426be07

@ -6,6 +6,7 @@ import org.apache.wicket.markup.html.panel.Panel;
import org.apache.wicket.model.IModel;
import org.apache.wicket.model.LambdaModel;
import se.su.dsv.scipro.components.DateLabel;
import se.su.dsv.scipro.data.enums.DateStyle;
import se.su.dsv.scipro.grading.ReportPdfResource;
import se.su.dsv.scipro.report.Report;
@ -32,7 +33,11 @@ public class DownloadPdfReportPanel extends Panel {
add(resourceLink);
resourceLink.add(new Label(PDF_LABEL, reportPdfResource.getFileName()));
resourceLink.add(
new DateLabel(PDF_UPLOAD_DATE, LambdaModel.of(report, Report::getLastModified, Report::setLastModified))
new DateLabel(
PDF_UPLOAD_DATE,
LambdaModel.of(report, Report::getLastModified, Report::setLastModified),
DateStyle.DATETIME
)
);
}
}