From 8828450d71abbd4bebc81024ddcd3a061948d88e Mon Sep 17 00:00:00 2001 From: jo-elimu <1451036+jo-elimu@users.noreply.github.com> Date: Wed, 1 Nov 2023 17:17:37 +0700 Subject: [PATCH] refactor: Upgrade to model-2.0.62 - letter-sound peer reviews ref #1627 --- ...rSoundPeerReviewEventCreateController.java | 10 ++--- .../letter-sound/peer-reviews/pending.jsp | 40 +++++++++---------- 2 files changed, 25 insertions(+), 25 deletions(-) diff --git a/src/main/java/ai/elimu/web/content/peer_review/LetterSoundPeerReviewEventCreateController.java b/src/main/java/ai/elimu/web/content/peer_review/LetterSoundPeerReviewEventCreateController.java index de15cc3ae..1450125ab 100644 --- a/src/main/java/ai/elimu/web/content/peer_review/LetterSoundPeerReviewEventCreateController.java +++ b/src/main/java/ai/elimu/web/content/peer_review/LetterSoundPeerReviewEventCreateController.java @@ -75,7 +75,7 @@ public String handleSubmit( ); } - // Update the letterSoundCorrespondence's peer review status + // Update the peer review status int approvedCount = 0; int notApprovedCount = 0; for (LetterSoundCorrespondencePeerReviewEvent peerReviewEvent : letterSoundPeerReviewEventDao.readAll(letterSoundContributionEvent)) { @@ -87,13 +87,13 @@ public String handleSubmit( } logger.info("approvedCount: " + approvedCount); logger.info("notApprovedCount: " + notApprovedCount); - LetterSoundCorrespondence letterSoundCorrespondence = letterSoundContributionEvent.getLetterSoundCorrespondence(); + LetterSoundCorrespondence letterSound = letterSoundContributionEvent.getLetterSoundCorrespondence(); if (approvedCount >= notApprovedCount) { - letterSoundCorrespondence.setPeerReviewStatus(PeerReviewStatus.APPROVED); + letterSound.setPeerReviewStatus(PeerReviewStatus.APPROVED); } else { - letterSoundCorrespondence.setPeerReviewStatus(PeerReviewStatus.NOT_APPROVED); + letterSound.setPeerReviewStatus(PeerReviewStatus.NOT_APPROVED); } - letterSoundDao.update(letterSoundCorrespondence); + letterSoundDao.update(letterSound); return "redirect:/content/letter-sound/edit/" + letterSoundContributionEvent.getLetterSoundCorrespondence().getId() + "#contribution-events"; } diff --git a/src/main/webapp/WEB-INF/jsp/content/letter-sound/peer-reviews/pending.jsp b/src/main/webapp/WEB-INF/jsp/content/letter-sound/peer-reviews/pending.jsp index 2a6d85191..3d9372c17 100644 --- a/src/main/webapp/WEB-INF/jsp/content/letter-sound/peer-reviews/pending.jsp +++ b/src/main/webapp/WEB-INF/jsp/content/letter-sound/peer-reviews/pending.jsp @@ -1,15 +1,15 @@ - (${fn:length(letterSoundCorrespondenceContributionEventsPendingPeerReview)}) + (${fn:length(letterSoundContributionEventsPendingPeerReview)}) - +
- +

You have no pending peer-reviews 🎉

- +

Press "Peer-review" to peer-review a letter-sound correspondence:

@@ -24,51 +24,51 @@ - - + + - " ${letter.text} " + " ${letter.text} " âžž - / ${sound.valueIpa} / + / ${sound.valueIpa} / - +
- - + + - - " /> + + " /> - -   + +   - - ${fn:substring(letterSoundCorrespondenceContributionEvent.contributor.providerIdWeb3, 0, 6)}...${fn:substring(letterSoundCorrespondenceContributionEvent.contributor.providerIdWeb3, 38, 42)} + + ${fn:substring(letterSoundContributionEvent.contributor.providerIdWeb3, 0, 6)}...${fn:substring(letterSoundContributionEvent.contributor.providerIdWeb3, 38, 42)}
- #${letterSoundCorrespondenceContributionEvent.revisionNumber} ( min) + #${letterSoundContributionEvent.revisionNumber} ( min) - + - +