errbit/errbit — pull request #358 by zetaben (2013-01-11 15:09:34+00:00)
Title: Move destroy application link from show page to edit page

It's currently very easy to destroy the whole application instead of just some problems (using "destroy" vs "delete") on apps/show page. Moreover this button is currently located between "edit" (rarely used / not dangerous) and "unresolved errs" (filter / not dangerous), since it's very dangerous and used only once this might not be the best place to have it.

Actually, mistaking those buttons already happened twice to us in production...

This pull request move the destroy link to the edit page's action bar. It also adds a test to ensure that this link includes a confirmation popup (inspired by a test from problems/show).

PS : Thanks for the awesome software :+1: