angular.module('dockerui', [
    'dockerui.templates',
    'ngRoute',
    'dockerui.services',
    'dockerui.filters',
    'masthead',
    'footer',
    'dashboard',
    'container',
    'containers',
    'containersNetwork',
    'images',
    'image',
    'pullImage',
    'startContainer',
    'sidebar',
    'info',
    'builder',
    'containerLogs',
    'containerTop',
    'events',
    'stats',
    'network',
    'networks',
    'volumes'])
    .config(['$routeProvider', function ($routeProvider) {
        'use strict';
        $routeProvider.when('/', {
            templateUrl: 'app/components/dashboard/dashboard.html',
            controller: 'DashboardController'
        });
        $routeProvider.when('/containers/', {
            templateUrl: 'app/components/containers/containers.html',
            controller: 'ContainersController'
        });
        $routeProvider.when('/containers/:id/', {
            templateUrl: 'app/components/container/container.html',
            controller: 'ContainerController'
        });
        $routeProvider.when('/containers/:id/logs/', {
            templateUrl: 'app/components/containerLogs/containerlogs.html',
            controller: 'ContainerLogsController'
        });
        $routeProvider.when('/containers/:id/top', {
            templateUrl: 'app/components/containerTop/containerTop.html',
            controller: 'ContainerTopController'
        });
        $routeProvider.when('/containers/:id/stats', {
            templateUrl: 'app/components/stats/stats.html',
            controller: 'StatsController'
        });
        $routeProvider.when('/containers_network', {
            templateUrl: 'app/components/containersNetwork/containersNetwork.html',
            controller: 'ContainersNetworkController'
        });
        $routeProvider.when('/images/', {
            templateUrl: 'app/components/images/images.html',
            controller: 'ImagesController'
        });
        $routeProvider.when('/images/:id*/', {
            templateUrl: 'app/components/image/image.html',
            controller: 'ImageController'
        });
        $routeProvider.when('/info', {templateUrl: 'app/components/info/info.html', controller: 'InfoController'});
        $routeProvider.when('/events', {
            templateUrl: 'app/components/events/events.html',
            controller: 'EventsController'
        });
        $routeProvider.otherwise({redirectTo: '/'});
    }])
    // This is your docker url that the api will use to make requests
    // You need to set this to the api endpoint without the port i.e. http://192.168.1.9
    .constant('DOCKER_ENDPOINT', 'dockerapi')
    .constant('DOCKER_PORT', '') // Docker port, leave as an empty string if no port is requred.  If you have a port, prefix it with a ':' i.e. :4243
    .constant('UI_VERSION', 'v0.9.0-beta');

@@ -497,16 +497,33 @@
 ovider',
+ '$httpProvider',
  functio
@@ -539,16 +539,31 @@
 Provider
+, $httpProvider
 ) %7B%0D%0A   
@@ -2531,24 +2531,659 @@
 tTo: '/'%7D);%0D
+%0A%0D%0A        // The Docker API likes to return plaintext errors, this catches them and disp%0D%0A        $httpProvider.interceptors.push(function() %7B%0D%0A            return %7B%0D%0A                'response': function(response) %7B%0D%0A                    if (typeof(response.data) === 'string' && response.data.startsWith('Conflict.')) %7B%0D%0A                        $.gritter.add(%7B%0D%0A                            title: 'Error',%0D%0A                            text: response.data,%0D%0A                            time: 10000%0D%0A                        %7D);%0D%0A                    %7D%0D%0A                    return response;%0D%0A                %7D%0D%0A            %7D;%0D%0A        %7D);%0D
 %0A    %7D%5D)%0D%0A  
@@ -3539,16 +3539,16 @@
  :4243%0D%0A
+
     .con
@@ -3582,10 +3582,8 @@
 -beta');
-%0D%0A

Add a global interceptor to catch 'conflict.' API responses.