All Downloads are FREE. Search and download functionalities are using the official Maven repository.

webapp.scripts.app.entities.projects.projects.js Maven / Gradle / Ivy

Go to download

Highly-available version-controlled service configuration repository based on Git, ZooKeeper and HTTP/2 (centraldogma-server)

The newest version!
'use strict';

angular.module('CentralDogmaAdmin')
    .config(function ($stateProvider, CentralDogmaConstant) {
              $stateProvider
                  .state('projects', {
                    parent: 'entity',
                    url: '/projects',
                    data: {},
                    views: {
                      'content@': {
                        templateUrl: 'scripts/app/entities/projects/projects.html',
                        controller: 'ProjectsController'
                      }
                    }
                  })
                  .state('projectNew', {
                    parent: 'entity',
                    url: '/new_project',
                    data: {
                      roles: [CentralDogmaConstant.LEVEL_USER]
                    },
                    views: {
                      'content@': {
                        templateUrl: 'scripts/app/entities/projects/project.new.html',
                        controller: 'ProjectNewController'
                      }
                    }
                  })
                  .state('project', {
                    parent: 'entity',
                    url: '/projects/:projectName',
                    data: {},
                    views: {
                      'content@': {
                        templateUrl: 'scripts/app/entities/projects/project.html',
                        controller: 'ProjectController'
                      }
                    }
                  });
            });




© 2015 - 2024 Weber Informatics LLC | Privacy Policy