Skip to content

Commit

Permalink
include previous incidents in alertstate partial
Browse files Browse the repository at this point in the history
  • Loading branch information
kylebrandt committed Oct 3, 2018
1 parent d1407ba commit 1574dfa
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 21 deletions.
44 changes: 23 additions & 21 deletions cmd/bosun/web/static.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 9 additions & 0 deletions cmd/bosun/web/static/partials/alertstate.html
Expand Up @@ -45,6 +45,15 @@ <h4 class="panel-title">
<a ng-href="/incident?id={{state.Id}}">Incident (#<span ng-bind="state.Id"/>)</a>
</div>
</div>
<div class="row">
<div class="col-sm-3">
<p><strong>Previous Incidents ({{ state.PreviousIds ? state.PreviousIds.length : 0 }}):</strong></p>
</div>
<div class="col-sm-9">
<a ng-repeat="id in state.PreviousIds | limitTo:5" ng-href="/incident?id={{encode(id)}}">#{{id}} </a>
<p ng-hide="state.PreviousIds">None</p>
</div>
</div>
</div>
<div class="col-sm-6">
<div class="row">
Expand Down

0 comments on commit 1574dfa

Please sign in to comment.