c094c27eff
This is the groundwork for the community results listing page and the test run report page. The report page is fairly basic, primarily showing how results stack up against defcore capabilities. Design is subject to change, but this gets the ball rolling. A config.json.sample was also added. The UI now expects a config.json in the root which will contain the Refstack API URL. Change-Id: Id7a376d0bccda5cbb5daf05e52a2c174ad40b497
83 lines
3.0 KiB
HTML
83 lines
3.0 KiB
HTML
<h3>Community Results</h3>
|
|
<p>The most recently uploaded community test results are listed here. Currently, these results are anonymous.</p>
|
|
|
|
<div class="result-filters">
|
|
<h4>Filters</h4>
|
|
<div class="row">
|
|
<div class="col-md-3">
|
|
<label for="cpid">Start Date</label>
|
|
<p class="input-group">
|
|
<input type="text" class="form-control"
|
|
datepicker-popup="{{format}}"
|
|
ng-model="startDate" is-open="startOpen"
|
|
datepicker-options="dateOptions"
|
|
close-text="Close" />
|
|
<span class="input-group-btn">
|
|
<button type="button" class="btn btn-default" ng-click="open($event, 'startOpen')">
|
|
<i class="glyphicon glyphicon-calendar"></i>
|
|
</button>
|
|
</span>
|
|
</p>
|
|
</div>
|
|
<div class="col-md-3">
|
|
<label for="cpid">End Date</label>
|
|
<p class="input-group">
|
|
<input type="text" class="form-control"
|
|
datepicker-popup="{{format}}"
|
|
ng-model="endDate" is-open="endOpen"
|
|
datepicker-options="dateOptions"
|
|
close-text="Close" />
|
|
<span class="input-group-btn">
|
|
<button type="button" class="btn btn-default" ng-click="open($event, 'endOpen')">
|
|
<i class="glyphicon glyphicon-calendar"></i>
|
|
</button>
|
|
</span>
|
|
</p>
|
|
</div>
|
|
<div class="col-md-3"style="margin-top:24px;">
|
|
<button type="submit" class="btn btn-primary" ng-click="update()">Filter</button>
|
|
<button type="submit" class="btn btn-primary btn-danger" ng-click="clearFilters()">Clear</button>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
|
|
<div cg-busy="{promise:resultsRequest,message:'Loading'}"></div>
|
|
<div ng-show="data" class="results-table">
|
|
<table ng-show="data" class="table table-striped table-hover">
|
|
<thead>
|
|
<tr>
|
|
<th>Upload Date</th>
|
|
<th>Test Run ID</th>
|
|
</tr>
|
|
</thead>
|
|
|
|
<tbody>
|
|
<tr ng-repeat="result in data.results">
|
|
<td>{{result.created_at}}</td>
|
|
<td><a ui-sref="resultsDetail({testID: result.test_id})">{{result.test_id}}</a></td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
|
|
<div class="pages">
|
|
<pagination
|
|
total-items="totalItems"
|
|
ng-model="currentPage"
|
|
items-per-page="itemsPerPage"
|
|
max-size="maxSize"
|
|
class="pagination-sm"
|
|
boundary-links="true"
|
|
rotate="false"
|
|
num-pages="numPages"
|
|
ng-change="update()">
|
|
</pagination>
|
|
</div>
|
|
</div>
|
|
|
|
<div ng-show="showError" class="alert alert-danger" role="alert">
|
|
<span class="glyphicon glyphicon-exclamation-sign" aria-hidden="true"></span>
|
|
<span class="sr-only">Error:</span>
|
|
{{error}}
|
|
</div>
|
|
|