diff --git a/assets/js/controllers.js b/assets/js/controllers.js index eafad61..548a6bc 100644 --- a/assets/js/controllers.js +++ b/assets/js/controllers.js @@ -75,6 +75,10 @@ mailhogApp.controller('MailCtrl', function ($scope, $http, $sce, $timeout) { return e; } + $scope.messagesDisplayed = function() { + return $('#messages-container table tbody tr').length + } + $scope.refresh = function() { var e = $scope.startEvent("Loading messages", null, "glyphicon-download"); $http.get('/api/v1/messages').success(function(data) { diff --git a/assets/templates/layout.html b/assets/templates/layout.html index 388d84e..720104c 100644 --- a/assets/templates/layout.html +++ b/assets/templates/layout.html @@ -84,6 +84,14 @@ MailHog +