#369: Fixed: wrong request method of links

This commit is contained in:
Vokhmin Alexey V 2015-02-06 01:54:41 +03:00
parent 21ca8dae32
commit b3881d0a28
4 changed files with 13 additions and 11 deletions

View File

@ -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}"

View File

@ -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
|  

View File

@ -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')
|  

View File

@ -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
|