body class set to index|detail depending on resource