Footer for frontend and report errors link.

This commit is contained in:
baldo 2016-06-26 22:00:58 +02:00
parent 124f330895
commit fa2a047370
10 changed files with 128 additions and 14 deletions
app/scripts/directives

View file

@ -0,0 +1,16 @@
'use strict';
angular.module('ffffng')
.directive('fFooter', function ($http) {
var ctrl = function ($scope) {
$scope.version = '?';
$http.get('/api/version')
.then(function (result) { $scope.version = result.data.version; })
};
return {
'controller': ctrl,
'restrict': 'E',
'templateUrl': 'views/directives/footer.html'
};
});