stackviz/app/views/directives/subunit-failures.html
Tim Buckley b2fedac4fe Add service to summarize different artifact types
Currently, the home page has a hard-coded summary panel specifically
for displaying overviews of subunit artifacts, which makes it
impossible to show information on other types of artifacts. This adds
a new 'summaryService' and associated 'artifact-summary' directive
that can dynamically create summary panels depending on artifact type.

Additionally, since the summary service allows many summary panels per
type per named artifact, we can have multiple (priority-ordered)
panels for each artifact. As an example of this, the existing subunit
summary has been split into simpler 'subunit-summary' and
'subunit-errors' panels.

Change-Id: I0d075dfcb86c6aef8c697896d1728e970b62600f
2016-04-28 13:14:58 -06:00

18 lines
628 B
HTML

<div class="panel panel-danger" ng-if="stats.failures.length > 0">
<div class="panel-heading">
<h3 class="panel-title">Failures</h3>
</div>
<div class="list-group">
<a class="list-group-item"
ng-repeat="fail in stats.failures"
ui-sref="testDetails({artifactName: artifactName, test: fail.name})">
<h4 class="list-group-item-heading">
{{fail.name | split:'.' | slice:-2 | join:'.'}}
</h4>
<p ng-repeat="line in fail.details" class="list-group-item-text">
{{line}}
</p>
</a>
</ul>
</div>