rose bush: improve listing page

Fix style. More efficient DB query to determine whether there are failed
tasks in a suite.