Skip to content

Commit

Permalink
refactor(jsp): rename to Word#letterSounds
Browse files Browse the repository at this point in the history
refs #1677
  • Loading branch information
jo-elimu committed Jul 12, 2024
1 parent 780a1cd commit 071901b
Show file tree
Hide file tree
Showing 10 changed files with 19 additions and 19 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
<tr>
<td>
<a href="<spring:url value='/content/word/edit/${word.id}#contribution-events' />" target="_blank">"<c:out value="${word.text}" />"</a><br />
/<c:forEach var="lsc" items="${word.letterSoundCorrespondences}">&nbsp;<a href="<spring:url value='/content/letter-sound/edit/${lsc.id}' />"><c:forEach var="sound" items="${lsc.sounds}">${sound.valueIpa}</c:forEach></a>&nbsp;</c:forEach>/
/<c:forEach var="lsc" items="${word.letterSounds}">&nbsp;<a href="<spring:url value='/content/letter-sound/edit/${lsc.id}' />"><c:forEach var="sound" items="${lsc.sounds}">${sound.valueIpa}</c:forEach></a>&nbsp;</c:forEach>/
</td>
<td>
#${wordContributionEvent.revisionNumber}<br />
Expand Down Expand Up @@ -157,7 +157,7 @@
</td>
<td>
<a href="<spring:url value='/content/word/edit/${word.id}#contribution-event_${wordPeerReviewEvent.wordContributionEvent.id}' />" target="_blank">"<c:out value="${word.text}" />"</a><br />
/<c:forEach var="lsc" items="${word.letterSoundCorrespondences}">&nbsp;<a href="<spring:url value='/content/letter-sound/edit/${lsc.id}' />"><c:forEach var="sound" items="${lsc.sounds}">${sound.valueIpa}</c:forEach></a>&nbsp;</c:forEach>/
/<c:forEach var="lsc" items="${word.letterSounds}">&nbsp;<a href="<spring:url value='/content/letter-sound/edit/${lsc.id}' />"><c:forEach var="sound" items="${lsc.sounds}">${sound.valueIpa}</c:forEach></a>&nbsp;</c:forEach>/
</td>
<td>
<a href="<spring:url value='/content/contributor/${wordPeerReviewEvent.wordContributionEvent.contributor.id}' />">
Expand Down
6 changes: 3 additions & 3 deletions src/main/webapp/WEB-INF/jsp/content/letter-sound/edit.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@
<c:forEach var="word" items="${words}">
<%-- Check if the current letter-sound correspondence is used by the word. --%>
<c:set var="isUsedByWord" value="false" />
<c:forEach var="lsc" items="${word.letterSoundCorrespondences}">
<c:forEach var="lsc" items="${word.letterSounds}">
<c:if test="${lsc.id == letterSound.id}">
<c:set var="isUsedByWord" value="true" />
</c:if>
Expand All @@ -350,9 +350,9 @@
<a href="<spring:url value='/content/word/edit/${word.id}' />">
"<c:out value="${word.text}" />"
</a><br />
"<c:forEach var="lsc" items="${word.letterSoundCorrespondences}">&nbsp;<a href="<spring:url value='/content/letter-sound/edit/${lsc.id}' />"><c:if test="${lsc.id == letterSound.id}"><span class='diff-highlight'></c:if><c:forEach var="letter" items="${lsc.letters}">${letter.text}<c:out value=" " /></c:forEach><c:if test="${lsc.id == letterSound.id}"></span></c:if></a>&nbsp;</c:forEach>"<br />
"<c:forEach var="lsc" items="${word.letterSounds}">&nbsp;<a href="<spring:url value='/content/letter-sound/edit/${lsc.id}' />"><c:if test="${lsc.id == letterSound.id}"><span class='diff-highlight'></c:if><c:forEach var="letter" items="${lsc.letters}">${letter.text}<c:out value=" " /></c:forEach><c:if test="${lsc.id == letterSound.id}"></span></c:if></a>&nbsp;</c:forEach>"<br />
<span class="grey-text">
/<c:forEach var="lsc" items="${word.letterSoundCorrespondences}">&nbsp;<a href="<spring:url value='/content/letter-sound/edit/${lsc.id}' />"><c:if test="${lsc.id == letterSound.id}"><span class='diff-highlight'></c:if><c:forEach var="sound" items="${lsc.sounds}">${sound.valueIpa}</c:forEach><c:if test="${lsc.id == letterSound.id}"></span></c:if></a>&nbsp;</c:forEach>/
/<c:forEach var="lsc" items="${word.letterSounds}">&nbsp;<a href="<spring:url value='/content/letter-sound/edit/${lsc.id}' />"><c:if test="${lsc.id == letterSound.id}"><span class='diff-highlight'></c:if><c:forEach var="sound" items="${lsc.sounds}">${sound.valueIpa}</c:forEach><c:if test="${lsc.id == letterSound.id}"></span></c:if></a>&nbsp;</c:forEach>/
</span>
</td>
<td>${word.usageCount}</td>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/jsp/content/number/list.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@

<td style="font-size: 2em;">
<c:forEach var="word" items="${number.words}">
/<c:forEach var="lsc" items="${word.letterSoundCorrespondences}">&nbsp;<a href="<spring:url value='/content/letter-sound/edit/${lsc.id}' />"><c:forEach var="sound" items="${lsc.sounds}">${sound.valueIpa}</c:forEach></a>&nbsp;</c:forEach>/
/<c:forEach var="lsc" items="${word.letterSounds}">&nbsp;<a href="<spring:url value='/content/letter-sound/edit/${lsc.id}' />"><c:forEach var="sound" items="${lsc.sounds}">${sound.valueIpa}</c:forEach></a>&nbsp;</c:forEach>/
</c:forEach>
</td>
<td>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@

<td style="font-size: 2em;">
<c:forEach var="word" items="${number.words}">
/<c:forEach var="lsc" items="${word.letterSoundCorrespondences}">&nbsp;<a href="<spring:url value='/content/letter-sound/edit/${lsc.id}' />"><c:forEach var="sound" items="${lsc.sounds}">${sound.valueIpa}</c:forEach></a>&nbsp;</c:forEach>/
/<c:forEach var="lsc" items="${word.letterSounds}">&nbsp;<a href="<spring:url value='/content/letter-sound/edit/${lsc.id}' />"><c:forEach var="sound" items="${lsc.sounds}">${sound.valueIpa}</c:forEach></a>&nbsp;</c:forEach>/
</c:forEach>
</td>
<td>
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/jsp/content/storybook/edit.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@
<c:out value="${word.text}" />
</a><c:if test="${not empty word.wordType}"> (${word.wordType})</c:if><c:out value=" ${emojisByWordId[word.id]}" /><br />
<span class="grey-text">
/<c:forEach var="lsc" items="${word.letterSoundCorrespondences}">&nbsp;<a href="<spring:url value='/content/letter-sound/edit/${lsc.id}' />"><c:forEach var="sound" items="${lsc.sounds}">${sound.valueIpa}</c:forEach></a>&nbsp;</c:forEach>/
/<c:forEach var="lsc" items="${word.letterSounds}">&nbsp;<a href="<spring:url value='/content/letter-sound/edit/${lsc.id}' />"><c:forEach var="sound" items="${lsc.sounds}">${sound.valueIpa}</c:forEach></a>&nbsp;</c:forEach>/
</span>
</c:otherwise>
</c:choose>
Expand Down
8 changes: 4 additions & 4 deletions src/main/webapp/WEB-INF/jsp/content/word/create.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
<label><fmt:message key="letter.sound.correspondences" /></label><br />

<div id="letterSoundCorrespondencesContainer">
<c:forEach var="letterSoundCorrespondence" items="${word.letterSoundCorrespondences}">
<input name="letterSoundCorrespondences" type="hidden" value="${letterSoundCorrespondence.id}" />
<c:forEach var="letterSoundCorrespondence" items="${word.letterSounds}">
<input name="letterSounds" type="hidden" value="${letterSoundCorrespondence.id}" />
<div class="chip">
<a href="#" class="letterSoundCorrespondenceDeleteLink" data-letter-sound-correspondence-id="${letterSoundCorrespondence.id}">
<i class="close material-icons">clear</i>
Expand All @@ -63,7 +63,7 @@
$(this).parent().remove();
var $hiddenInput = $('input[name="letterSoundCorrespondences"][value="' + letterSoundCorrespondenceId + '"]');
var $hiddenInput = $('input[name="letterSounds"][value="' + letterSoundCorrespondenceId + '"]');
$hiddenInput.remove();
});
});
Expand All @@ -89,7 +89,7 @@
var letterSoundCorrespondenceSounds = selectedOption.attr('data-sounds');
console.log('letterSoundCorrespondenceSounds: "' + letterSoundCorrespondenceSounds + '"');
if (letterSoundCorrespondenceId != "") {
$('#letterSoundCorrespondencesContainer').append('<input name="letterSoundCorrespondences" type="hidden" value="' + letterSoundCorrespondenceId + '" />');
$('#letterSoundCorrespondencesContainer').append('<input name="letterSounds" type="hidden" value="' + letterSoundCorrespondenceId + '" />');
$('#letterSoundCorrespondencesContainer').append('<div class="chip">"' + letterSoundCorrespondenceLetters + '"<br />↓<br />/' + letterSoundCorrespondenceSounds + '/</div>');
$(this).val("");
}
Expand Down
8 changes: 4 additions & 4 deletions src/main/webapp/WEB-INF/jsp/content/word/edit.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@
<label><fmt:message key="letter.sound.correspondences" /></label><br />

<div id="letterSoundCorrespondencesContainer">
<c:forEach var="letterSoundCorrespondence" items="${word.letterSoundCorrespondences}">
<input name="letterSoundCorrespondences" type="hidden" value="${letterSoundCorrespondence.id}" />
<c:forEach var="letterSoundCorrespondence" items="${word.letterSounds}">
<input name="letterSounds" type="hidden" value="${letterSoundCorrespondence.id}" />
<div class="chip">
<a href="#" class="letterSoundCorrespondenceDeleteLink" data-letter-sound-correspondence-id="${letterSoundCorrespondence.id}">
<i class="close material-icons">clear</i>
Expand All @@ -82,7 +82,7 @@
$(this).parent().remove();
var $hiddenInput = $('input[name="letterSoundCorrespondences"][value="' + letterSoundCorrespondenceId + '"]');
var $hiddenInput = $('input[name="letterSounds"][value="' + letterSoundCorrespondenceId + '"]');
$hiddenInput.remove();
});
});
Expand All @@ -108,7 +108,7 @@
var letterSoundCorrespondenceSounds = selectedOption.attr('data-sounds');
console.log('letterSoundCorrespondenceSounds: "' + letterSoundCorrespondenceSounds + '"');
if (letterSoundCorrespondenceId != "") {
$('#letterSoundCorrespondencesContainer').append('<input name="letterSoundCorrespondences" type="hidden" value="' + letterSoundCorrespondenceId + '" />');
$('#letterSoundCorrespondencesContainer').append('<input name="letterSounds" type="hidden" value="' + letterSoundCorrespondenceId + '" />');
$('#letterSoundCorrespondencesContainer').append('<div class="chip">"' + letterSoundCorrespondenceLetters + '"<br />↓<br />/' + letterSoundCorrespondenceSounds + '/</div>');
$(this).val("");
}
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/jsp/content/word/list.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@
</td>
<td style="font-size: 2em;">
<div id="letterSoundCorrespondencesContainer">
<c:forEach var="letterSoundCorrespondence" items="${word.letterSoundCorrespondences}">
<c:forEach var="letterSoundCorrespondence" items="${word.letterSounds}">
<input name="letterSoundCorrespondences" type="hidden" value="${letterSoundCorrespondence.id}" />
<div class="chip">
<a href="<spring:url value='/content/letter-sound/edit/${letterSoundCorrespondence.id}' />">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
<a href="<spring:url value='/content/word/edit/${word.id}#peer-review' />" target="_blank">"<c:out value="${word.text}" />"</a>
</td>
<td style="font-size: 2em;">
/<c:forEach var="lsc" items="${word.letterSoundCorrespondences}">&nbsp;<a href="<spring:url value='/content/letter-sound/edit/${lsc.id}' />"><c:forEach var="sound" items="${lsc.sounds}">${sound.valueIpa}</c:forEach></a>&nbsp;</c:forEach>/
/<c:forEach var="lsc" items="${word.letterSounds}">&nbsp;<a href="<spring:url value='/content/letter-sound/edit/${lsc.id}' />"><c:forEach var="sound" items="${lsc.sounds}">${sound.valueIpa}</c:forEach></a>&nbsp;</c:forEach>/
</td>
<td>
${word.wordType}<br />
Expand Down
2 changes: 1 addition & 1 deletion src/main/webapp/WEB-INF/jsp/contributions/most-recent.jsp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
<a class="editLink" href="<spring:url value='/content/word/edit/${word.id}' />">"${word.text}"</a>
</td>
<td>
/<c:forEach var="lsc" items="${word.letterSoundCorrespondences}">&nbsp;<a href="<spring:url value='/content/letter-sound/edit/${lsc.id}' />"><c:forEach var="sound" items="${lsc.sounds}">${sound.valueIpa}</c:forEach></a>&nbsp;</c:forEach>/
/<c:forEach var="lsc" items="${word.letterSounds}">&nbsp;<a href="<spring:url value='/content/letter-sound/edit/${lsc.id}' />"><c:forEach var="sound" items="${lsc.sounds}">${sound.valueIpa}</c:forEach></a>&nbsp;</c:forEach>/
</td>
<td>
${word.wordType}<br />
Expand Down

0 comments on commit 071901b

Please sign in to comment.