Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion src/ServicePulse.Host/app/js/directives/moment.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,18 @@ angular.module('directives.moment', [])
return {
restrict: 'E',
link: function(scope, element, attrs) {
var minDate = "0001-01-01T00:00:00";
var timeoutId = null;
var m;

attrs.$observe('date', function (value) {
if (value) {
if (value && attrs.date !== minDate) {
m = moment(attrs.date);
element.attr('title', m.format('LLLL'));
updateText();
updateLoop();
} else {
element.text('TimeSent value unknown');
}
});

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,7 @@ <h2 class="failedMessages-header"><i class="fa fa-envelope"></i><span class="bre
<a eat-click tooltip="This only works if ServiceInsight is installed." class="btn btn-small btn-link" ng-click="debugInServiceInsight($index)"><i class="icon-service-insight"></i> Open in ServiceInsight</a>
</div>
<div class=" row-fluid">
<div class="span10 rowText" title="Message Type: {{row.message_type}}">{{row.message_type | limitTo: 90}}<span ng-show="row.message_type.length > 90">...</span></div>
<div class="span10 rowText" title="Message Type: {{row.message_type}}">{{row.message_type || 'Message Type Unknown - missing metadata EnclosedMessageTypes' | limitTo: 90}}<span ng-show="row.message_type.length > 90">...</span></div>
<div class="span2 text-right"><sp-moment date="{{row.time_sent}}" /></div>
</div>
<div class="row-fluid">
Expand Down