From 29bc9ed559023a7259d3e1fec336b5ee15933253 Mon Sep 17 00:00:00 2001 From: Alexis Lahouze Date: Wed, 17 Feb 2016 08:54:44 +0100 Subject: [PATCH] Rename templates into views. Fix paths to static files. --- accountant/frontend/static/js/app.js | 6 +++--- .../frontend/static/{templates => views}/accounts.html | 0 .../frontend/static/{templates => views}/operations.html | 0 .../frontend/static/{templates => views}/scheduler.html | 0 4 files changed, 3 insertions(+), 3 deletions(-) rename accountant/frontend/static/{templates => views}/accounts.html (100%) rename accountant/frontend/static/{templates => views}/operations.html (100%) rename accountant/frontend/static/{templates => views}/scheduler.html (100%) diff --git a/accountant/frontend/static/js/app.js b/accountant/frontend/static/js/app.js index e50e671..b2dd1b8 100644 --- a/accountant/frontend/static/js/app.js +++ b/accountant/frontend/static/js/app.js @@ -54,17 +54,17 @@ angular.module('accountant', [ // Defining template and controller in function of route. $routeProvider .when('/account/:accountId/operations', { - templateUrl: 'static/templates/operations.html', + templateUrl: 'static/views/operations.html', controller: 'OperationController', controllerAs: 'operationsCtrl' }) .when('/account/:accountId/scheduler', { - templateUrl: 'static/templates/scheduler.html', + templateUrl: 'static/views/scheduler.html', controller: 'SchedulerController', controllerAs: 'schedulerCtrl' }) .when('/accounts', { - templateUrl: 'static/templates/accounts.html', + templateUrl: 'static/views/accounts.html', controller: 'AccountController', controllerAs: 'accountsCtrl' }) diff --git a/accountant/frontend/static/templates/accounts.html b/accountant/frontend/static/views/accounts.html similarity index 100% rename from accountant/frontend/static/templates/accounts.html rename to accountant/frontend/static/views/accounts.html diff --git a/accountant/frontend/static/templates/operations.html b/accountant/frontend/static/views/operations.html similarity index 100% rename from accountant/frontend/static/templates/operations.html rename to accountant/frontend/static/views/operations.html diff --git a/accountant/frontend/static/templates/scheduler.html b/accountant/frontend/static/views/scheduler.html similarity index 100% rename from accountant/frontend/static/templates/scheduler.html rename to accountant/frontend/static/views/scheduler.html