refactor the contribution summary in candidates#show