Skip to content

Makes 'diff/content' partial use instance method

What does this MR do?

Changes app/views/projects/diffs/_content.html.haml to use DiffFile#viewer instance method (which has the exact same conditional)

def viewer
  rich_viewer || simple_viewer
end

I discovered this while working on a proposal for https://gitlab.com/gitlab-org/gitlab-ce/issues/52499

Does this MR meet the acceptance criteria?

Conformity

Edited by Mayra Cabrera

Merge request reports