123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172 |
- (function () {
- 'use strict';
- angular
- .module('fehlerberichtApp', [
- 'ngAnimate',
- 'ngCookies',
- 'ngResource',
- 'ngRoute',
- 'ngSanitize',
- 'ngTouch'
- ])
- .directive('popover', function() {
- return {
- restrict: 'EA',
- link: function(scope, element, attrs){
- $(element).popover({
- html : true,
- content: function() {
- return scope.getCommentsInfo($(element).attr('data-popover'));
- }
- });
- $(element).hover(function(){
- $(element).popover('show');
- }, function(){
- $(element).popover('hide');
- });
- }
- };
- })
- .config(function ($routeProvider) {
- $routeProvider
- .when('/overview/:customer/:date/:status', {
- templateUrl: 'views/overview.html',
- controller: 'OverviewCtrl'
- })
- .when('/calendar', {
- templateUrl: 'views/calendar.html',
- controller: 'CalendarCtrl'
- })
- .when('/customers', {
- templateUrl: 'views/customers.html',
- controller: 'CustomersCtrl'
- })
- .when('/stats/:customer', {
- templateUrl: 'views/stats.html',
- controller: 'StatsCtrl'
- })
- .when('/config/:customer/:date', {
- templateUrl: 'views/config.html',
- controller: 'ConfigCtrl'
- })
- .when('/config', {
- templateUrl: 'views/config.html',
- controller: 'ConfigCtrl'
- })
- .otherwise({
- redirectTo: '/overview/all/today/errors'
- });
- });
- moment.locale('de', {
- calendar: {
- lastDay: "[Gestern]",
- lastWeek: "[letzten] dddd",
- nextDay: "[Morgen]",
- nextWeek: "dddd",
- sameDay: "[Heute]",
- sameElse: "L"
- }
- });
- })();
|