2014-08-06 21:46:54 +00:00
|
|
|
<!doctype html>
|
|
|
|
<html ng-csp ng-app="ngHintUI">
|
|
|
|
<head>
|
|
|
|
<script src="bower_components/angular/angular.js"></script>
|
|
|
|
<script src="bower_components/angular-bootstrap/ui-bootstrap.js"></script>
|
|
|
|
<script src="bower_components/jquery/dist/jquery.js"></script>
|
|
|
|
|
2014-08-13 23:28:31 +00:00
|
|
|
<script src="hintApp.js"></script>
|
|
|
|
<script src="hintService.js"></script>
|
|
|
|
<script src="hintCtrl.js"></script>
|
2014-08-06 21:46:54 +00:00
|
|
|
|
2014-08-08 18:27:25 +00:00
|
|
|
<link rel="stylesheet" href="bower_components/angular/angular-csp.css">
|
2014-08-06 21:46:54 +00:00
|
|
|
<link rel="stylesheet" href="bower_components/bootstrap/dist/css/bootstrap.min.css">
|
|
|
|
<link rel="stylesheet" href="app.css">
|
|
|
|
|
|
|
|
</head>
|
|
|
|
<body>
|
2014-08-14 17:47:48 +00:00
|
|
|
<div ng-controller="HintController" >
|
2014-08-06 21:46:54 +00:00
|
|
|
<div class="row" style="padding:10px">
|
|
|
|
<div class="col-md-12">
|
|
|
|
<ul class="nav nav-tabs">
|
|
|
|
<li ng-class="{active: module === modName}" ng-repeat="(modName, value) in messageData" ng-click="setModule(modName)">
|
|
|
|
<a data-toggle="tab">
|
|
|
|
{{modName}}
|
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
<div class="row" style="padding: 5px 0px">
|
|
|
|
<div class="col-md-2">
|
|
|
|
<ul class="nav nav-pills nav-stacked">
|
|
|
|
<li ng-class="{active: type === label}" ng-repeat="label in labels" ng-click="setType(label)">
|
|
|
|
<a class="offsetTab">
|
2014-08-07 22:56:06 +00:00
|
|
|
{{label}}
|
2014-08-06 21:46:54 +00:00
|
|
|
</a>
|
|
|
|
</li>
|
|
|
|
</ul>
|
2014-08-13 22:53:54 +00:00
|
|
|
<div ng-show="suppressedMessagesLength">
|
|
|
|
<hr>
|
|
|
|
<h5 class="offsetTab">Suppressed Errors:</h5>
|
|
|
|
<ul class="nav nav-pills nav-stacked">
|
|
|
|
<li ng-repeat="(key,message) in suppressedMessages">
|
|
|
|
<div class="suppressedMessage">
|
|
|
|
<div class='alert alert-warning condenseAlert'>
|
|
|
|
{{message}}
|
|
|
|
<button type="button" class="close" style="margin-top:-5px" ng-click="unsuppressMessage(key)"><span aria-hidden="true">×</span><span class="sr-only">Close</span>
|
|
|
|
</button>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</li>
|
|
|
|
</ul>
|
|
|
|
</div>
|
2014-08-06 21:46:54 +00:00
|
|
|
</div>
|
|
|
|
<div class="col-md-10">
|
|
|
|
<div class="input-group">
|
|
|
|
<div class="input-group-addon"><span class="glyphicon glyphicon-search"></span></div>
|
|
|
|
<input class="form-control" type="text" placeholder="Search Messages" ng-model="search">
|
|
|
|
</div>
|
|
|
|
<table class="table table-striped table-hover" ng-show="messageData[module][type].length">
|
|
|
|
<thead>
|
|
|
|
<tr>
|
|
|
|
<th>No.</th>
|
2014-08-08 18:27:25 +00:00
|
|
|
<th ng-show="module === 'All' && type === 'All Messages' ">Module</th>
|
2014-08-06 21:46:54 +00:00
|
|
|
<th>Message</th>
|
2014-08-08 18:27:25 +00:00
|
|
|
<th ng-show="type === 'All Messages'">Type</th>
|
2014-08-13 22:53:54 +00:00
|
|
|
<th>Suppress</th>
|
2014-08-06 21:46:54 +00:00
|
|
|
</tr>
|
|
|
|
</thead>
|
|
|
|
<tbody>
|
|
|
|
<tr ng-repeat="message in messageData[module][type]| filter:search"
|
2014-08-08 18:27:25 +00:00
|
|
|
ng-class="{danger: type === 'All Messages' && message.type === 'Error Messages',
|
|
|
|
warning: type === 'All Messages' && message.type === 'Warning Messages',
|
2014-08-13 22:53:54 +00:00
|
|
|
info: type === 'All Messages' && message.type === 'Suggestion Messages'}"
|
|
|
|
ng-hide="isSuppressed(message.message)">
|
2014-08-06 21:46:54 +00:00
|
|
|
<td>{{$index+1}}</td>
|
2014-08-08 18:27:25 +00:00
|
|
|
<td ng-show="module === 'All' && type === 'All Messages'">{{message.module}}</td>
|
2014-08-06 21:46:54 +00:00
|
|
|
<td>{{message.message || message}}</td>
|
2014-08-08 18:27:25 +00:00
|
|
|
<td ng-show="type === 'All Messages'">{{message.type.split(' ')[0]}}</td>
|
2014-08-13 22:53:54 +00:00
|
|
|
<td align="center"><button type="button" class="btn btn-default btn-xs" ng-click="suppressMessage(message.message)"><span class="glyphicon glyphicon-minus-sign"></span></button></td>
|
2014-08-06 21:46:54 +00:00
|
|
|
</tr>
|
|
|
|
</tbody>
|
|
|
|
</table>
|
2014-08-12 21:46:13 +00:00
|
|
|
<div ng-show="!messageData[module][type].length">
|
|
|
|
<h3>There are no messages in this category.</h3>
|
2014-08-06 21:46:54 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</body>
|
2014-08-12 21:46:13 +00:00
|
|
|
</html>
|