}
private void initApprovals(final PatchSetPublishDetail r, final Panel body) {
ApprovalTypes types = Gerrit.getConfig().getApprovalTypes();
for (PermissionRange range : r.getLabels()) {
ApprovalType type = types.byLabel(range.getLabel());
if (type != null) {
// Legacy type, use radio buttons.
initApprovalType(r, body, type, range);
} else {
// TODO Newer style label.