def delete_link(path, options = {})
      return unless ndr_can?(:delete, path)

      defaults = {
        icon: 'trash icon-white', title: 'Delete', path: path,
        class: 'btn btn-xs btn-danger', method: :delete,
        'data-confirm': I18n.translate(:'ndr_ui.confirm_delete', locale: options[:locale])
      }

      link_to_with_icon(defaults.merge(options))
    end
def delete_link(path, options = {})
      return unless ndr_can?(:delete, path)

      defaults = {
        icon: 'trash icon-white', title: 'Delete', path: path,
        class: 'btn btn-xs btn-danger', method: :delete,
        'data-confirm': I18n.translate(:'ndr_ui.confirm_delete', locale: options[:locale])
      }

      link_to_with_icon(defaults.merge(options))
    end
Creates a Boostrap 'Delete' link.

 ==== Signatures

   delete_link(path, options = {})

 ==== Examples

   <%= delete_link('#') %>
   # => <a title="Delete" class="btn btn-xs btn-danger" rel="nofollow" href="#"
           data-method="delete" data-confirm="Are you sure?">
          <span class="glyphicon glyphicon-trash icon-white"></span>
        </a>'