Internal help: Add 'more rows' indicator for inconsistent rows

master
François-Xavier Thomas 5 years ago committed by jvoisin
parent 6c54f1f7c8
commit 50b6da075e
  1. 3
      airsonic-main/src/main/resources/org/airsonic/player/i18n/ResourceBundle_en.properties
  2. 6
      airsonic-main/src/main/webapp/WEB-INF/jsp/internalhelp.jsp

@ -313,7 +313,8 @@ internalhelp.dblogsize=Size of the internal database log
internalhelp.dblogsize.ok=The size of the database log file (db/airsonic.log) appears healthy.
internalhelp.dblogsize.warn=The size of the database log file (db/airsonic.log) is large (greater than 256M). Run a scan to clean it up.
internalhelp.tablecount=Table "{0}" count
internalhelp.mediafilesinnonpresentmusicfoldercount=Nubmer of media files in non-present music folders
internalhelp.morerows="...and {0} more."
internalhelp.mediafilesinnonpresentmusicfoldercount=Number of media files in non-present music folders
internalhelp.mediafilesinnonpresentmusicfoldercount.ok=All media files in the database have a valid music folder.
internalhelp.mediafilesinnonpresentmusicfoldercount.warn=The media file database contains files whose music folder is no longer present. Examples are below.
internalhelp.mediafileswithmusicfoldermismatchcount=Number of media files with music folder mismatch

@ -159,6 +159,9 @@
<c:forEach var="invalidFolderSample" items="${model.dbMediaFilesInNonPresentMusicFoldersSample}">
<tr><td class="ruleTableHeader">${invalidFolderSample.id}</td><td class="ruleTableCell">${invalidFolderSample.path}</td><td class="ruleTableCell">${invalidFolderSample.folder}</td></tr>
</c:forEach>
<c:if test="${model.dbMediaFilesInNonPresentMusicFoldersCount > fn:length(model.dbMediaFilesInNonPresentMusicFoldersSample)}">
<tr><td class="ruleTableCell" colspan="3"><fmt:message key="internalhelp.morerows"><fmt:param value="${model.dbMediaFilesInNonPresentMusicFoldersCount - fn:length(model.dbMediaFilesInNonPresentMusicFoldersSample)}"/></fmt:message></td></tr>
</c:if>
</c:if>
</table>
@ -186,6 +189,9 @@
<c:forEach var="mismatchSample" items="${model.dbMediaFilesWithMusicFolderMismatchSample}">
<tr><td class="ruleTableHeader">${mismatchSample.id}</td><td class="ruleTableCell">${mismatchSample.path}</td><td class="ruleTableCell">${mismatchSample.folder}</td></tr>
</c:forEach>
<c:if test="${model.dbMediaFilesWithMusicFolderMismatchCount > fn:length(model.dbMediaFilesWithMusicFolderMismatchSample)}">
<tr><td class="ruleTableCell" colspan="3"><fmt:message key="internalhelp.morerows"><fmt:param value="${model.dbMediaFilesWithMusicFolderMismatchCount - fn:length(model.dbMediaFilesWithMusicFolderMismatchSample)}"/></fmt:message></td></tr>
</c:if>
</c:if>
</table>

Loading…
Cancel
Save