=link_to'Submit as spam',mark_as_spam_namespace_project_issue_path(@project.namespace,@project,@issue),method: :post,class: 'btn-spam',title: 'Submit as spam'
=link_to'Submit as spam',mark_as_spam_namespace_project_snippet_path(@project.namespace,@project,@snippet),method: :post,class: 'btn btn-grouped btn-spam',title: 'Submit as spam'