-
Notifications
You must be signed in to change notification settings - Fork 231
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Truncate long event messages to 1000 characters
Occasionally an event can have a long message. Limit the length to 1000 characters or 4 lines in the events table.
- Loading branch information
Showing
7 changed files
with
32 additions
and
20 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,19 @@ | ||
<span ng-if="!truncated" class="truncated-content">{{content}}</span> | ||
<span ng-if="!truncated" ng-bind-html="content | highlightKeywords : keywords" class="truncated-content"></span> | ||
<span ng-if="truncated"> | ||
<span ng-if="!toggles.expanded"> | ||
<span class="truncated-content" ng-attr-title="{{content}}">{{truncatedContent}}…</span> | ||
<span ng-attr-title="{{content}}"> | ||
<span ng-bind-html="truncatedContent | highlightKeywords : keywords" class="truncated-content"></span>… | ||
</span> | ||
<a ng-if="expandable" href="" ng-click="toggles.expanded = true" style="margin-left: 5px; white-space: nowrap;">See all</a> | ||
</span> | ||
<span ng-if="toggles.expanded"> | ||
<div ng-if="prettifyJson" class="well"> | ||
<span class="pull-right" style="margin-top: -10px;"><a href="" ng-click="toggles.expanded = false">Collapse</a></span> | ||
<span class="pretty-json truncated-content">{{content | prettifyJSON}}</span> | ||
<span ng-bind-html="content | prettifyJSON | highlightKeywords : keywords" class="pretty-json truncated-content"></span> | ||
</div> | ||
<span ng-if="!prettifyJson"> | ||
<span class="pull-right"><a href="" ng-click="toggles.expanded = false">Collapse</a></span> | ||
<span class="truncated-content">{{content}}</span> | ||
<span ng-bind-html="content | highlightKeywords : keywords" class="truncated-content"></span> | ||
</span> | ||
</span> | ||
</span> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters