diff --git a/openslides/core/static/js/core.js b/openslides/core/static/js/core.js index 2f60f596f..6b9b3990b 100644 --- a/openslides/core/static/js/core.js +++ b/openslides/core/static/js/core.js @@ -3,8 +3,6 @@ angular.module('OpenSlidesApp.core', []) .config(function($stateProvider) { // Use stateProvider.decorator to give default values to our states $stateProvider.decorator('views', function(state, parent) { - - var result = {}, views = parent(state); @@ -69,12 +67,9 @@ angular.module('OpenSlidesApp.core', []) }); }) -.config(function($stateProvider, $urlRouterProvider, $locationProvider) { +.config(function($stateProvider, $locationProvider) { // Core urls - $urlRouterProvider.otherwise('/'); - - $stateProvider - .state('dashboard', { + $stateProvider.state('dashboard', { url: '/', templateUrl: 'static/templates/dashboard.html' }); @@ -119,16 +114,6 @@ angular.module('OpenSlidesApp.core', []) }); }) -.run(function($rootScope, i18n) { - // Puts the gettext methods into each scope. - // Uses the methods that are known by xgettext by default. - methods = ['gettext', 'dgettext', 'dcgettext', 'ngettext', 'dngettext', - 'pgettext', 'dpgettext']; - _.forEach(methods, function(method) { - $rootScope[method] = _.bind(i18n[method], i18n); - }); -}) - .run(function($rootScope, Config) { // Puts the config object into each scope. // TODO: maybe rootscope.config has to set before findAll() is finished diff --git a/openslides/core/static/templates/index.html b/openslides/core/static/templates/index.html index 02e161343..10ae6ee69 100644 --- a/openslides/core/static/templates/index.html +++ b/openslides/core/static/templates/index.html @@ -22,14 +22,13 @@ {{ config('event_name') }} - {% block loginbutton %} - - {% block loginbutton %} + {% block loginbutton %}