Create getters for some internal logic for diff comment row templates

Everyone can contribute. Help move this issue forward while earning points, leveling up and collecting rewards.

Follow up issue for this discussion https://gitlab.com/gitlab-org/gitlab-ce/merge_requests/20445#note_88164524

Edited by 🤖 GitLab Bot 🤖