##// END OF EJS Templates
frontend: get rid of bower and nix
frontend: get rid of bower and nix

File last commit:

r84:a420e483
r180:9cfa7e43
Show More
report-view.html
482 lines | 22.0 KiB | text/html | HtmlLexer
project: initial commit
r0 <script type="text/ng-template" id="slow_call.html">
<table class="report-table">
<tr>
<td class="table-label">Type</td>
<td class="data"><strong>{{call.type}}
({{call.subtype}})
</strong></td>
</tr>
<tr>
<td class="table-label">Duration</td>
<td class="data"><strong class="textColor_1">{{call.duration}}</strong></td>
</tr>
<tr>
<td class="table-label">Start Time</td>
<td class="data">{{call.timestamp}}</td>
</tr>
<tr>
<td class="table-label">Statement</td>
<td class="data">
<pre class="word-wrap">{{call.statement}}</pre>
</td>
</tr>
<tr ng-if="call.location">
<td class="table-label">Location</td>
<td class="data">{{call.location}}</td>
</tr>
<tr>
<td class="table-label">Parameters</td>
<td class="">
<div class="var-listing" human-format vars="call.parameters"></div>
</td>
</tr>
</table>
<div ng-if="call.children.length > 0" class="subcalls p-l-8">
<p><strong>
<small>Sub-calls</small>
</strong></p>
<div class="panel panel-default">
<div ng-repeat="call in call.children" ng-include="'slow_call.html'" class="panel-body"/>
</div>
</div>
</div>
</script>
<script type="text/ng-template" id="AssignReportCtrl.html">
<div class="modal-header">
<h3>Assign users to report</h3>
</div>
<div class="modal-body">
<ng-include src="'templates/loader.html'" ng-if="ctrl.loading"></ng-include>
<div class="row" ng-if="!ctrl.loading">
<div class="col-sm-6">
<strong>Unassigned</strong>
<div class="user-assignment" ng-repeat="user in ctrl.unAssignedUsers"
ng-click="ctrl.reassignUser(user)">
<img ng-src="{{user.gravatar_url}}"/>
<strong>{{user.user_name}}</strong><br/>
{{user.name}}
<div class="clear"></div>
</div>
</div>
<div class="col-sm-6">
<strong>Assigned</strong>
<div class="user-assignment" ng-repeat="user in ctrl.assignedUsers" ng-click="ctrl.reassignUser(user)">
<img ng-src="{{user.gravatar_url}}"/>
{{user.user_name}}<br/>
{{user.name}}
<div class="clear"></div>
</div>
</div>
</div>
</div>
<div class="modal-footer">
<button class="btn btn-primary" ng-click="ctrl.ok()">OK</button>
<button class="btn btn-warning" ng-click="ctrl.cancel()">Cancel</button>
</div>
</script>
components: reports componentized
r84 <ng-include src="'templates/loader.html'" ng-if="$ctrl.is_loading.report"></ng-include>
project: initial commit
r0
components: reports componentized
r84 <div ng-if="!$ctrl.is_loading.report && $ctrl.report === null">
project: initial commit
r0 <strong>OOPS something went wrong :(</strong>
</div>
components: reports componentized
r84 <div ng-if="$ctrl.report !== null && !$ctrl.is_loading.report">
project: initial commit
r0
components: reports componentized
r84 <div ng-if="$ctrl.stateHolder.AeUser.id" class="row">
html: #3988 fixed missing div causing misalignment in log header
r25 <div class="col-lg-12">
components: reports componentized
r84 <a onclick="window.history.back()" class="btn btn-default" ng-if="$ctrl.window.history.length > 2"><span class="fa fa-arrow-circle-o-left"></span>
project: initial commit
r0 Go back</a>
components: reports componentized
r84 <a class="btn btn-default" ng-click="$ctrl.assignUsersModal()" ng-if="$ctrl.reportType == 'report'"><span
project: initial commit
r0 class="fa fa-flag"></span> Assign report
to user</a>
components: reports componentized
r84 <a class="btn {{ $ctrl.report.group.fixed ? 'btn-success' : 'btn-default'}}" ng-click="$ctrl.markFixed()"
ng-if="$ctrl.reportType == 'report'">
project: initial commit
r0 <span class="fa fa-check"></span> Mark fixed</a>
components: reports componentized
r84 <span class="dropdown" ng-if="$ctrl.report.application.integrations.length" data-uib-dropdown on-toggle="toggled(open)">
project: initial commit
r0 <a class="dropdown-toggle btn btn-default" data-uib-dropdown-toggle>
<span class="fa fa-send"></span> Integrations
</a>
<ul class="dropdown-menu">
components: reports componentized
r84 <li ng-repeat="choice in $ctrl.report.application.integrations">
<a ng-click="$ctrl.runIntegration(choice.name)">{{choice.action}}</a>
project: initial commit
r0 </li>
</ul>
</span>
components: reports componentized
r84 <a class="btn btn-default" ng-click="$ctrl.markPublic()">Make {{$ctrl.group.public ? 'private' : 'public'}}</a>
project: initial commit
r0
<span class="dropdown" data-uib-dropdown on-toggle="toggled(open)">
<a class="btn btn-danger" data-uib-dropdown-toggle><span class="fa fa-trash-o"></span> Delete</a>
<ul class="dropdown-menu">
<li><a>No</a></li>
components: reports componentized
r84 <li><a ng-click="$ctrl.delete()">Yes</a></li>
project: initial commit
r0 </ul>
</span>
html: #3988 fixed missing div causing misalignment in log header
r25 </div>
project: initial commit
r0 </div>
<div class="row">
<div class="col-lg-4">
<div class="panel panel-default m-t-1">
<div class="panel-body">
<h3 class="m-t-0">Report Information</h3>
<table class="report-table with-ellipsis">
<tr>
<td class="table-label">Occurences</td>
components: reports componentized
r84 <td class="data">{{$ctrl.report.group.occurences}}</td>
project: initial commit
r0 </tr>
components: reports componentized
r84 <tr ng-if="$ctrl.report.http_status">
project: initial commit
r0 <td class="table-label">HTTP status</td>
components: reports componentized
r84 <td class="data">{{$ctrl.report.http_status}}</td>
project: initial commit
r0 </tr>
components: reports componentized
r84 <tr ng-if="$ctrl.report.group.priority">
project: initial commit
r0 <td class="table-label">Priority</td>
components: reports componentized
r84 <td class="data">{{$ctrl.report.group.priority}}</td>
project: initial commit
r0 </tr>
components: reports componentized
r84 <tr ng-if="$ctrl.report.group.public">
project: initial commit
r0 <td class="table-label">Public URL</td>
<td class="data">
<form>
components: reports componentized
r84 <textarea class="TextAreaField form-control" id="public-url" onclick="this.select()">{{$ctrl.$state.href($ctrl.$state.current.name, $ctrl.$state.params, {absolute: true})}}</textarea>
project: initial commit
r0 </form>
</td>
</tr>
components: reports componentized
r84 <tr data-uib-tooltip="{{$ctrl.report.url}}">
project: initial commit
r0 <td class="table-label">URL</td>
components: reports componentized
r84 <td class="data ellipsis"><a href="{{$ctrl.report.url}}">{{$ctrl.report.url}}</a></td>
project: initial commit
r0 </tr>
components: reports componentized
r84 <tr ng-if="$ctrl.report.ip">
project: initial commit
r0 <td class="table-label">Remote IP</td>
components: reports componentized
r84 <td class="data">{{$ctrl.report.ip}}</td>
project: initial commit
r0 </tr>
components: reports componentized
r84 <tr ng-if="$ctrl.report.user_agent" data-uib-tooltip="{{$ctrl.report.user_agent}}">
project: initial commit
r0 <td class="table-label">User Agent</td>
components: reports componentized
r84 <td class="data ellipsis">{{$ctrl.report.user_agent}}</td>
project: initial commit
r0 </tr>
components: reports componentized
r84 <tr ng-if="$ctrl.report.message">
project: initial commit
r0 <td class="table-label">Message</td>
components: reports componentized
r84 <td class="data">{{$ctrl.report.message}}</td>
project: initial commit
r0 </tr>
components: reports componentized
r84 <tr ng-if="$ctrl.report.duration > 0">
project: initial commit
r0 <td class="table-label">Duration</td>
<td class="data">
components: reports componentized
r84 <span>{{$ctrl.report.duration}}s</span>
project: initial commit
r0 </td>
</tr>
<tr>
<td class="table-label">First occured</td>
<td class="data">
components: reports componentized
r84 <span uib-tooltip="{{$ctrl.report.group.first_timestamp}}"><iso-to-relative-time
time="{{$ctrl.report.group.first_timestamp}}"/></span>
project: initial commit
r0 </td>
</tr>
<tr>
<td class="table-label">Last occured</td>
<td class="data">
components: reports componentized
r84 <span uib-tooltip="{{$ctrl.report.group.last_timestamp}}"><iso-to-relative-time
time="{{$ctrl.report.group.last_timestamp}}"/></span>
project: initial commit
r0 </td>
</tr>
</table>
components: reports componentized
r84 <div ng-if="$ctrl.requestStats">
project: initial commit
r0 <h3>Performance stats</h3>
<div class="perf_stats">
components: reports componentized
r84 <span class="stat" ng-repeat="stat in $ctrl.requestStats"
project: initial commit
r0 ng-if="stat.calls > 0 || stat.value > 0"><strong>
<span class="{{stat.name}} bar" style="width:10px"></span> {{stat.calls}}
<span ng-if="stat.name!='main'"><small>{{stat.name}} calls</small></span>
<span ng-if="stat.name=='main'">
<span class="fa fa-question-circle"
data-uib-tooltip="Execution time that didnt get assigned to other layers"></span> Other</span>
</strong>
</span>
<div style="width: 100%; overflow:hidden">
<div class="{{stat.name}} bar" style="width:{{stat.percent}}%; height: 25px"
components: reports componentized
r84 ng-repeat="stat in $ctrl.requestStats"
project: initial commit
r0 data-uib-tooltip="{{stat.value}}s - Cumulative time spent in this request on all {{ stat.name }} calls"></div>
<div class="row">
<div class="col-xs-6 text-left">
<small>0s</small>
</div>
<div class="col-xs-6 text-right">
components: reports componentized
r84 <small>{{$ctrl.report.duration.toFixed(3)}}s</small>
project: initial commit
r0 </div>
</div>
</div>
</div>
</div>
<h3>Tags</h3>
<table class="report-table with-tags">
components: reports componentized
r84 <tr ng-repeat="(tag, value) in $ctrl.report.tags">
project: initial commit
r0 <td class="table-label" ng-switch="tag"><!--
--><span ng-switch-when="user_name">Username/UID</span><!--
--><span ng-switch-when="view_name">View Name</span><!--
--><span ng-switch-when="server_name">Server Name</span><!--
--><span ng-switch-default>{{ tag }}</span>
</td>
components: reports componentized
r84 <td class="data"><a ng-click="$ctrl.searchTag(tag, value)">{{ value }}</td>
project: initial commit
r0 </tr>
</table>
</div>
</div>
</div>
<div class="col-lg-8">
<div class="frames">
<p class="text-center">Report history</p>
components: reports componentized
r84 <div class="panel" ng-if="!$ctrl.is_loading.history">
project: initial commit
r0 <div class="panel-body">
components: reports componentized
r84 <c3chart data-domid="report_history_chart" data-data="$ctrl.reportHistoryData" data-config="$ctrl.reportHistoryConfig">
project: initial commit
r0 </c3chart>
</div>
</div>
<div class="row m-b-1">
<div class="col-sm-2 text-left">
components: reports componentized
r84 <a class="switch_detail btn btn-sm btn-default {{$ctrl.report.group.previous_report ? '' : 'disabled'}}"
ng-click="$ctrl.previousDetail()">
project: initial commit
r0 <span class="fa fa-arrow-left"></span>
Prev. detail</a>
</div>
<div class="col-sm-8 text-center">
<small>
components: reports componentized
r84 <span uib-tooltip="{{$ctrl.report.start_time|isoToRelativeTime}}" class="m-r-1">
{{$ctrl.report.start_time.replace('T', ' ')}} UTC</span>
<span class="text-muted">ID: {{$ctrl.report.request_id}}</span>
project: initial commit
r0 </small>
</div>
<div class="col-sm-2 text-right">
components: reports componentized
r84 <a class="switch_detail btn btn-sm btn-default {{$ctrl.report.group.next_report ? '' : 'disabled'}}"
ng-click="$ctrl.nextDetail()">
project: initial commit
r0 Next detail <span class="fa fa-arrow-right"></span></a>
</div>
</div>
components: reports componentized
r84 <h3 class="word-wrap">{{$ctrl.report.error}}</h3>
project: initial commit
r0
components: reports componentized
r84 <div ng-if="$ctrl.report.traceback">
project: initial commit
r0
<h3><strong>Traceback</strong></h3>
<div class="btn-group">
components: reports componentized
r84 <a ng-if="$ctrl.traceback.length-10 > 0 " ng-click="$ctrl.showLong = !$ctrl.showLong"
class="btn btn-default {{$ctrl.showLong ? 'active' : ''}}">
project: initial commit
r0 <span class="fa fa-align-left"></span>
components: reports componentized
r84 <small>Show {{$ctrl.traceback.length-10}} remaining frames</small>
project: initial commit
r0 </a>
components: reports componentized
r84 <a class="btn btn-default {{$ctrl.showRaw ? 'active' : ''}}" ng-click="$ctrl.showRaw = !$ctrl.showRaw">
project: initial commit
r0 <span class="fa fa-list"></span>
<small>Raw version</small>
</a>
</div>
components: reports componentized
r84 <div ng-if="$ctrl.showRaw" class="m-t-1">
<pre>{{$ctrl.rawTraceback}}</pre>
project: initial commit
r0 </div>
components: reports componentized
r84 <div ng-if="!$ctrl.showRaw" class="m-t-1">
project: initial commit
r0
components: reports componentized
r84 <div ng-repeat="frame in $ctrl.traceback" class="frame {{$odd ? 'odd' : 'even'}}"
ng-if="$index >= $ctrl.traceback.length-10 || $ctrl.traceback.length <= 10 || $ctrl.showLong">
project: initial commit
r0 <div class="frameline" ng-if="frame.line">
<a class="inspect_vars" ng-click="frame.showVars = !frame.showVars" ng-if="frame.vars">
<span class="fa fa-search dim btn btn-default"
uib-tooltip="Show local vars"> </span>
</a>
<span class="no-vars" ng-if="frame.vars.length == 0"></span>
<span ng-if="frame.file">
<span class="mono">File</span> <span class="file mono">{{frame.file || 'Unknown file'}}</span>,
</span>
<span ng-if="frame.module && !frame.file">
<span class="mono">Module</span> <span class="file mono">{{frame.module || 'Unknown module'}}</span>,
</span>
<span class="mono">line</span> <span class="line mono">{{frame.line || 'Unknown line'}}</span>
<span ng-if="frame.fn"><span class="mono">in</span> <strong
class="fn mono">{{frame.fn || 'Unknown function'}}</strong></span>
</div>
<div class="cline mono" ng-if="frame.cline">{{frame.cline || 'Unknown context'}}</div>
<div class="vars" ng-if="frame.showVars">
<table class="var-listing small">
<tr ng-repeat="fvar in frame.vars track by $index" class="frame {{$odd ? 'odd' : 'even'}}">
<td class="var-label">{{ fvar[0] }}</td>
<td>
<span human-format vars="fvar[1]"></span>
</td>
</tr>
</table>
</div>
</div>
</div>
</div>
<uib-tabset>
components: reports componentized
r84 <uib-tab select="$ctrl.selectedTab('slow_calls')" active="$ctrl.tabs.slow_calls">
project: initial commit
r0 <uib-tab-heading>
Slow Calls
</uib-tab-heading>
<h3><strong>Slow Calls</strong></h3>
components: reports componentized
r84 <div ng-if="$ctrl.report.slow_calls.length > 0">
<div ng-repeat="call in $ctrl.report.slow_calls" ng-include="'slow_call.html'"></div>
project: initial commit
r0 </div>
components: reports componentized
r84 <div ng-if="$ctrl.report.slow_calls.length == 0">
project: initial commit
r0 No slow calls reported
</div>
</uib-tab>
components: reports componentized
r84 <uib-tab select="$ctrl.selectedTab('request_details')" active="$ctrl.tabs.request_details">
project: initial commit
r0 <uib-tab-heading>
Request details
</uib-tab-heading>
<h3><strong>Extra</strong></h3>
components: reports componentized
r84 <div class="var-listing" human-format vars="$ctrl.report.extra"></div>
project: initial commit
r0 <h3><strong>Request details</strong></h3>
components: reports componentized
r84 <div class="var-listing" human-format vars="$ctrl.report.request"></div>
project: initial commit
r0
</uib-tab>
components: reports componentized
r84 <uib-tab select="$ctrl.selectedTab('logs')" active="$ctrl.tabs.logs">
project: initial commit
r0 <uib-tab-heading>
Logs
</uib-tab-heading>
components: reports componentized
r84 <div ng-if="$ctrl.is_loading.logs!=false" class="text-center">
project: initial commit
r0 <span class="fa fa-cog fa-spin fa-3x loader"></span>
</div>
components: reports componentized
r84 <p ng-if="$ctrl.reportLogs.length == 0"> No logs found</p>
project: initial commit
r0
components: reports componentized
r84 <table class="table table-striped log-list" ng-if="$ctrl.reportLogs.length > 0">
project: initial commit
r0
<caption>Logs</caption>
<thead>
<tr>
<th class="message">Message</th>
<th class="when">When</th>
</tr>
</thead>
<tbody>
components: reports componentized
r84 <tr ng-repeat="log in $ctrl.reportLogs track by log.log_id">
project: initial commit
r0 <td>
<a class="tag {{log.log_level|lowercase}}">
<span class="name">level:</span> {{log.log_level}}</a>
<a class="tag">
<span class="name">namespace:</span> {{log.namespace}}</a>
<a ng-repeat="(tag, value) in log.tags" class="tag">
<span class="name">{{tag}}:</span> {{value}}</a>
<div class="log">
{{log.message}}
</div>
</td>
<td class="when">
<a data-uib-tooltip="{{log.timestamp}}">
<iso-to-relative-time time="{{log.timestamp}}"/>
</a>
</td>
</tr>
</tbody>
</table>
</uib-tab>
components: reports componentized
r84 <uib-tab select="$ctrl.selectedTab('comments')" active="$ctrl.tabs.comments">
project: initial commit
r0 <uib-tab-heading>
Comments
components: reports componentized
r84 <span class="label label-info">{{$ctrl.report.comments.length}}</span>
project: initial commit
r0
</uib-tab-heading>
<h3><strong>Comments</strong></h3>
components: reports componentized
r84 <p ng-if="$ctrl.report.comments.length == 0">No comments yet - be first to add one!</p>
project: initial commit
r0
components: reports componentized
r84 <div class="comment" ng-repeat="comment in $ctrl.report.comments">
project: initial commit
r0 <p name="comment-{{comment.comment_id}}"><span class="fa fa-comment"></span>
<strong>{{comment.user_name}}</strong>
<iso-to-relative-time time="{{comment.created_timestamp}}"/>
</p>
<p class="well">{{comment.body}}</p>
</div>
components: reports componentized
r84 <form name="commentForm" ng-submit="$ctrl.addComment()">
project: initial commit
r0 <div class="form-group">
components: reports componentized
r84 <textarea type="text" class="form-control" id="$ctrl.commentForm" ng-model="$ctrl.comment" required
mentio mentio-search="$ctrl.searchMentionedPeople(term)" mentio-items="$ctrl.mentionedPeople| filter:label:typedTerm" class="form-control"></textarea>
project: initial commit
r0
</div>
<div class="form-group">
components: reports componentized
r84 <button class="btn btn-info" ng-disabled="$ctrl.commentForm.$invalid">Comment</button>
project: initial commit
r0 </div>
</form>
components: reports componentized
r84 <div ng-repeat="comment in $ctrl.report.comments" class="{{$odd ? 'odd' : 'even'}}" class="repeat-animate">
project: initial commit
r0 </div>
</uib-tab>
components: reports componentized
r84 <uib-tab select="$ctrl.selectedTab('affected_users')" active="$ctrl.tabs.affected_users">
project: initial commit
r0 <uib-tab-heading>
Affected users
components: reports componentized
r84 <span class="label label-warning">{{$ctrl.report.affected_users_count}}</span>
project: initial commit
r0
</uib-tab-heading>
<h3><strong>50 most affected users ID's by this issue:</strong></h3>
<ul class="affected-user-list">
components: reports componentized
r84 <li ng-repeat="user in $ctrl.report.top_affected_users">
project: initial commit
r0 <strong>{{user.username}}</strong> <span class="badge" uib-tooltip="occurences">{{user.count}}</span>
</li>
</ul>
</uib-tab>
</uib-tabset>
</div>
</div>
</div>
</div>