reports-browser-view.html
89 lines
| 4.3 KiB
| text/html
|
HtmlLexer
r84 | <ng-include src="'templates/loader.html'" ng-if="$ctrl.is_loading"></ng-include> | |||
r0 | ||||
r84 | <div ng-if="$ctrl.is_loading === false"> | |||
r0 | ||||
<p class="search-params"> | ||||
<strong>Search params:</strong> | ||||
r84 | <span ng-repeat="tag in $ctrl.searchParams.tags" class="tag"> | |||
r0 | <strong>{{tag.type}}</strong> | |||
r84 | {{ tag.type == 'resource' ? $ctrl.applications[tag.value].resource_name : tag.value }} | |||
r0 | ||||
r84 | <a ng-click="$ctrl.removeSearchTag(tag)"><span class="fa fa-times"></span></a> | |||
r0 | </span> | |||
</p> | ||||
<form class="form"> | ||||
<div class="typeahead-tags"> | ||||
r84 | <input type="text" id="typeAhead" ng-model="$ctrl.filterTypeAhead" placeholder="Start typing to filter reports - filter by tags, exception, priority or other properties." | |||
ng-keydown="$ctrl.typeAheadTag($event)" | ||||
uib-typeahead="tag as tag.text for tag in $ctrl.filterTypeAheadOptions | filter:$viewValue:aheadFilter" | ||||
r0 | typeahead-min-length="1" class="form-control" | |||
typeahead-template-url="templates/directives/search_type_ahead.html"> | ||||
</div> | ||||
</form> | ||||
r84 | <div class="well position-absolute increse-zindex" ng-show="$ctrl.showDatePicker" ng-model="$ctrl.pickerDate" ng-change="$ctrl.pickerDateChanged()" | |||
r0 | class="animate-show"> | |||
<uib-datepicker></uib-datepicker> | ||||
</div> | ||||
</p> | ||||
<div class="text-center"> | ||||
r84 | <uib-pagination total-items="$ctrl.itemCount" items-per-page="$ctrl.itemsPerPage" ng-model="$ctrl.page" max-size="10" | |||
r0 | class="pagination pagination-sm" boundary-links="true" direction-links="false" | |||
r84 | ng-change="$ctrl.paginationChange()" | |||
ng-show="!$ctrl.is_loading"></uib-pagination> | ||||
r0 | </div> | |||
<div class="panel panel-default"> | ||||
<!-- Default panel contents --> | ||||
r84 | <table class="table table-striped report-list" ng-show="!$ctrl.is_loading"> | |||
r0 | <caption>Reports</caption> | |||
<thead> | ||||
<tr> | ||||
<th class="c1 ordering occurences">#</th> | ||||
<th class="c2 application">Application</th> | ||||
r84 | <th class="c4 when">When <input type="checkbox" ng-model="$ctrl.notRelativeTime" | |||
ng-change="$ctrl.changeRelativeTime()" | ||||
r0 | title="Tick to see UTC time instead relative"></th> | |||
<th class="c5 error_type">Error</th> | ||||
</tr> | ||||
</thead> | ||||
<tbody> | ||||
r84 | <tr ng-repeat="report in $ctrl.reportsPage track by report.id"> | |||
r0 | <td class="c1 occurences"> | |||
<span class="priority-{{report.group.priority}}" data-uib-tooltip="Report priority">{{report.group.priority}}</span> | ||||
<span class="count {{report.presentation.className}}" data-uib-tooltip="{{report.presentation.tooltip}}"> | ||||
{{report.group.occurences|numberToThousands}} | ||||
</span> | ||||
</td> | ||||
<td class="c2 application"> | ||||
<div class="app_name">{{report.resource_name}}</div> | ||||
<span class="server">@{{report.tags.server_name}}</span></td> | ||||
<td class="c3 when"> | ||||
r84 | <span ng-show="!$ctrl.notRelativeTime"><span data-uib-tooltip="{{report.group.last_timestamp}}"><iso-to-relative-time | |||
r0 | time="{{report.group.last_timestamp}}"/></span> | |||
</span> | ||||
r84 | <span ng-show="$ctrl.notRelativeTime">{{report.group.last_timestamp.replace('T', ' ').slice(0,16)}}</span> | |||
r0 | </td> | |||
<td class="c4 report ellipsis"><a ui-sref="report.view_detail({groupId:report.group.id, reportId:report.id})" title="{{report.error}}">{{report.error || 'Unknown Exception'}}</a> <br/> | ||||
<span class="url">{{ report.tags.view_name || report.url_path}}</td> | ||||
</tr> | ||||
</tbody> | ||||
</table> | ||||
</div> | ||||
<div class="text-center"> | ||||
r84 | <uib-pagination total-items="$ctrl.itemCount" items-per-page="$ctrl.itemsPerPage" ng-model="$ctrl.page" max-size="10" | |||
r0 | class="pagination pagination-sm" boundary-links="true" direction-links="false" | |||
r84 | ng-change="$ctrl.paginationChange()" | |||
ng-show="!$ctrl.is_loading"></uib-pagination> | ||||
r0 | </div> | |||
</div> | ||||