#369: Fixed: wrong request method of links
This commit is contained in:
parent
21ca8dae32
commit
b3881d0a28
|
@ -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}"
|
||||
|
|
|
@ -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
|
||||
|
|
||||
|
|
|
@ -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')
|
||||
|
|
||||
|
|
|
@ -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
|
||||
|
|
||||
|
|
Loading…
Reference in New Issue