diff --git a/src/main/resources/js/client-side/src/feature/content/ShContentCtrl.js b/src/main/resources/js/client-side/src/feature/content/ShContentCtrl.js index 2f1b9305e..213d048de 100644 --- a/src/main/resources/js/client-side/src/feature/content/ShContentCtrl.js +++ b/src/main/resources/js/client-side/src/feature/content/ShContentCtrl.js @@ -8,6 +8,7 @@ shioharaApp.controller('ShContentCtrl', [ "$window", function($scope, $http, $rootScope, $location, shAPIServerService, $state,$window) { + $rootScope.principal = null; var authenticate = function(credentials) { var headers = credentials ? { @@ -15,28 +16,13 @@ shioharaApp.controller('ShContentCtrl', [ + btoa(credentials.username + ":" + credentials.password) } : {}; - - $http.get(shAPIServerService.get().concat("/v2"), { - headers : headers - }).then(function(response) { - if (response.data.product) { - $rootScope.authenticated = true; - $state.go('content.home'); - } else { - $rootScope.authenticated = false; - $state.go('content.login'); - } - - }, function() { - $rootScope.authenticated = false; - $state.go('content.login'); - }); } // authenticate(); if (!$rootScope.authenticated) { - $http.get(shAPIServerService.get().concat("/v2/user/current")).then(function(response) { - if (response.data.product) { + $http.get(shAPIServerService.get().concat("/v2/user/current")).then(function(response) { + if (response.data.username) { + $rootScope.principal = response.data.firstName; $rootScope.authenticated = true; $state.go('content.home'); } else { diff --git a/src/main/resources/public/template/breadcrumb/breadcrumb-list.html b/src/main/resources/public/template/breadcrumb/breadcrumb-list.html new file mode 100644 index 000000000..d444b3ca1 --- /dev/null +++ b/src/main/resources/public/template/breadcrumb/breadcrumb-list.html @@ -0,0 +1,19 @@ +
+
+ +
+
+ + View Site Site Properties +
+
diff --git a/src/main/resources/public/template/breadcrumb/breadcrumb.html b/src/main/resources/public/template/breadcrumb/breadcrumb.html index dafc6324d..b87da7a8d 100644 --- a/src/main/resources/public/template/breadcrumb/breadcrumb.html +++ b/src/main/resources/public/template/breadcrumb/breadcrumb.html @@ -1,11 +1,14 @@ - +
+
+ +
+
diff --git a/src/main/resources/public/template/navigation/navigation.html b/src/main/resources/public/template/navigation/navigation.html index 534759532..0e8f6495d 100644 --- a/src/main/resources/public/template/navigation/navigation.html +++ b/src/main/resources/public/template/navigation/navigation.html @@ -27,9 +27,15 @@ style="padding-top: 8px; padding-bottom: 14px; padding-right: 18px; padding-left: 18px;">Modeling
  • Documentation
  • -
  • Logout
  • + diff --git a/src/main/resources/public/template/object/object-children.html b/src/main/resources/public/template/object/object-children.html index 280d8bfac..d10c9137c 100644 --- a/src/main/resources/public/template/object/object-children.html +++ b/src/main/resources/public/template/object/object-children.html @@ -1,22 +1,23 @@ -
    -
    -
    - -
    -
    -
    - - +
    +
    +
    +
    {{shSite.description}}
    +
    +
    +
    +
    +
    +
    + + 112 commits
    -
    - View Site Site Properties +
    + + 1 contributor
    -
    -
    +
    +
    @@ -112,8 +113,8 @@

    It is also possible ...

    Upload - file + ui-sref="content.post-type-item-by-name.post-item-new({folderId: shCurrentFolder.id, postTypeName: 'PT-FILE'})">Upload + file