Skip to content

Commit

Permalink
Merge pull request #451 from AtlasOfLivingAustralia/feature/la-pipeli…
Browse files Browse the repository at this point in the history
…nes-#372-show-hide-passed-assertions

AtlasOfLivingAustralia/la-pipelines#372 hide passed assertions by default
  • Loading branch information
brucehyslop committed Jul 8, 2021
2 parents 75609e2 + 98a6425 commit d3816f8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
4 changes: 4 additions & 0 deletions grails-app/assets/javascripts/show.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,10 @@ $(document).ready(function() {
$('.uncheckTestResult').toggle();
});

$('#showPassedPropResult').on('click', function(e){
$('.passedPropResult').toggle();
});

$('#showMissingPropResult').on('click', function(e){
$('.missingPropResult').toggle();
});
Expand Down
9 changes: 8 additions & 1 deletion grails-app/views/occurrence/show.gsp
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,16 @@
</tr>
</g:each>

<g:if test="${record.systemAssertions.passed}">
<tr>
<td colspan="2">
<a href="javascript:void(0)" id="showPassedPropResult"><g:message code="show.tabledataqualityresults.tr04td02" default="Show/Hide"/> ${record.systemAssertions.passed.length()} passed properties</a>
</td>
</tr>
</g:if>
<g:set var="testSet" value="${record.systemAssertions.passed}"/>
<g:each in="${testSet}" var="test">
<tr>
<tr class="passedPropResult" style="display:none;">
<td><g:message code="${test.name}" default="${test.name}"/><alatag:dataQualityHelp code="${test.code}"/></td>
<td><i class="fa fa-check-circle" style="color:green;"></i> <g:message code="show.tabledataqualityresults.tr03td02" default="Passed"/></td>
<%--<td>More info</td>--%>
Expand Down

0 comments on commit d3816f8

Please sign in to comment.