diff --git a/examples/blog/config.js b/examples/blog/config.js index 6ba8d80a..f3599973 100644 --- a/examples/blog/config.js +++ b/examples/blog/config.js @@ -256,7 +256,7 @@ template: '
', link: function (scope) { scope.displayPost = function () { - $location.path('/show/posts/' + scope.entry().values.post_id); + $location.path('/posts/show/' + scope.entry().values.post_id); }; } }; diff --git a/src/javascripts/ng-admin/Crud/column/maColumn.js b/src/javascripts/ng-admin/Crud/column/maColumn.js index 17f09a6d..234541c2 100644 --- a/src/javascripts/ng-admin/Crud/column/maColumn.js +++ b/src/javascripts/ng-admin/Crud/column/maColumn.js @@ -37,8 +37,10 @@ define(function (require) { $compile(element.contents())(scope); scope.gotoDetail = function () { this.clearRouteParams(); - var route = scope.entity().isReadOnly ? 'show' : scope.field.detailLinkRoute(); - + var route = scope.field.detailLinkRoute(); + if (route == 'edit' && !scope.entity().editionView().enabled) { + route = 'show'; + } $location.path('/' + scope.entry.entityName + '/' + route + '/' + scope.entry.identifierValue); $anchorScroll(0); }; diff --git a/src/javascripts/ng-admin/Crud/delete/batchDelete.html b/src/javascripts/ng-admin/Crud/delete/batchDelete.html index 5b2b2859..3758ef85 100644 --- a/src/javascripts/ng-admin/Crud/delete/batchDelete.html +++ b/src/javascripts/ng-admin/Crud/delete/batchDelete.html @@ -1,12 +1,12 @@{{ deleteController.description }}
+{{ ::deleteController.description }}
{{ formController.description }}
+{{ ::formController.description }}