diff --git a/app/views/platforms/product_build_lists/show.html.slim b/app/views/platforms/product_build_lists/show.html.slim index f272e6fd1..f94984d05 100644 --- a/app/views/platforms/product_build_lists/show.html.slim +++ b/app/views/platforms/product_build_lists/show.html.slim @@ -110,18 +110,20 @@ .row hr - if can?(:cancel, pbl) - a.btn.btn-warning[href=cancel_platform_product_product_build_list_path(pbl.product.platform, pbl.product, pbl) - method = 'put' - data-confirm = t('layout.confirm') - ng-show = 'pbl.can_cancel' ] + a.btn.btn-warning[ + href=cancel_platform_product_product_build_list_path(pbl.product.platform, pbl.product, pbl) + data-method = 'put' + data-confirm = t('layout.confirm') + ng-show = 'pbl.can_cancel' ] = t('layout.build_lists.cancel') |   - if can?(:destroy, pbl) - a.btn.btn-danger[ href=platform_product_product_build_list_path(pbl.product.platform, pbl.product, pbl) - method = 'delete' - data-confirm = t('layout.confirm') - ng-show = 'pbl.can_destroy' ] + a.btn.btn-danger[ + href=platform_product_product_build_list_path(pbl.product.platform, pbl.product, pbl) + data-method = 'delete' + data-confirm = t('layout.confirm') + ng-show = 'pbl.can_destroy' ] = t('layout.product_build_lists.delete') .row.offset20 ng-show="pbl.status == #{ProductBuildList::BUILD_STARTED}" diff --git a/app/views/platforms/products/_list.html.slim b/app/views/platforms/products/_list.html.slim index d92659924..4c6b0d921 100644 --- a/app/views/platforms/products/_list.html.slim +++ b/app/views/platforms/products/_list.html.slim @@ -11,7 +11,7 @@ table.table.table-striped td - if can? :destroy, product a[href = platform_product_path(@platform, product) - method = 'delete' + data-method = 'delete' data-confirm = t('layout.products.confirm_delete') ] span.glyphicon.glyphicon-remove |   diff --git a/app/views/platforms/products/show.html.slim b/app/views/platforms/products/show.html.slim index 2e2a21637..4aeec3c08 100644 --- a/app/views/platforms/products/show.html.slim +++ b/app/views/platforms/products/show.html.slim @@ -17,7 +17,7 @@ |   - if can? :destroy, @product a.btn.btn-danger[ href = platform_product_path(@platform, @product) - method = 'delete' + data-method = 'delete' data-confirm = t('layout.products.confirm_delete') ] = t('layout.delete') |   diff --git a/app/views/platforms/repositories/_proj_list.html.slim b/app/views/platforms/repositories/_proj_list.html.slim index 7a1a6cb5b..4e14eae61 100644 --- a/app/views/platforms/repositories/_proj_list.html.slim +++ b/app/views/platforms/repositories/_proj_list.html.slim @@ -37,7 +37,7 @@ div ng-controller='RepositoryProjectsController' = t('layout.add') a[ng-href = '{{project.remove_path}}' ng-show = 'project.remove_path' - method = 'delete' + data-method = 'delete' data-confirm = t('layout.confirm')] span.glyphicon.glyphicon-remove |